You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please also notice that one of the timestamps is not the one in the database. The wrong one seems to change every request.
But I can't find it at all in the database.
In the javascript adapter i experience the same issue:
getHistory
(
'sql.0',
{
id: "openknx.0.Kontakte.OG.Büro_Fenster_geöffnet"
},
(err, result) =>
{
if (err) console.error(err);
if (result)
{
for (let i = 0; i < result.length; i++)
{
console.log(result[i]);
}
}
}
);
The issue is inside the aggregation to "average": it destroys the boolean values and sets them to null.
P.S.: I personally would set a non-delivered aggregate option to "none" but this is up to you, of course. I got my workaround for now. I will just add average: none to my requests.
Thank you for the info! WIll speed up a fix hopefully. Changing that default fallback might be breaking, so I might not touch it but make sure it is documented in Readme
Dear developers!
I am experiencing an issue with boolean typed states in a mariadb history. Number typed states seem to work as intended.
The values stored in the table seem correct:
So I would expect to get
1710254347427 : true
and
1710254349379 : false
when i ask for the history. The history in the admin panel is working as expected.
but when i use the REST API, I don't get those values:
I used the /getHistory Command with those parameters:
{ "id": "openknx.0.Kontakte.OG.Büro_Fenster_geöffnet", "options": { } }
Result:
Please also notice that one of the timestamps is not the one in the database. The wrong one seems to change every request.
But I can't find it at all in the database.
In the javascript adapter i experience the same issue:
produces:
Kind regards and thanks for looking into this!
The text was updated successfully, but these errors were encountered: