Good morning everybody,
I am currently trying to feed a line chart with the values from an iobroker device. It is either true or false. I want to display the state in the line chart so I can see if the device was turned on to a specified time or not.
So I inject with an interval every minute, read the value from the iobroker object. I receive true or false and pass it through a switch. Case true: change payload to "Number": 1, case false: "Number" 0.
These numbers get passed into the line chart. Debug node shows 1 or 0 is arriving fine. Unfortunately there is no time in the line chart. It always shows that the values are arriving at: 00:00:00
When I inject the "change" nodes and just send 1 or 0 the times get passed correctly.
Anything I can do about it?
I already created a function node and tried setting the timestamp as shown in the documentation.
{topic: "Heat ground floor", payload: 1,timestamp: timestamp }
This also shows all the values at timestamp 0.
Any hints about that?
Best regards