Closed Marc1200 closed 10 months ago
That code is wrong. Try:
$boolean($.payload) = true ? "Charging " & $now('[H#1]:[m01]','+0100') : "Idle " & $now('[H#1]:[m01]','+0100')
Still not working it stays both in idle mode when charging It looks like the boolean is not changing in the subflow.
the standard green charging status node is also not changing to charging
below the settings of the home assistant sensor entity
I don't know why this doesn't work for you.
internally, the charging ouput is true if the status is "Charging", otherwise it is false. It's no more complicated than that.
You could use the output of 'poll' in your flow directly with your own nodes to get round this.
okay i will try
this is now working after restarting the chargings station
The green charging status entity stays on Idle, it don't change to Charging. It looks like the boolean msg.payload does not change.
$boolean(msg.payload) = true ? "Charging " & $now('[H#1]:[m01]','+0100') : "Idle " & $now('[H#1]:[m01]','+0100')