dgthomson / nodered-shellrecharge

A subflow for Nodered to control Shell Recharge car charging equipment.
GNU General Public License v3.0
20 stars 7 forks source link

Chargings status entity is not changing from idle to charging or vice versa #20

Closed Marc1200 closed 10 months ago

Marc1200 commented 10 months ago

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')

image

dgthomson commented 10 months ago

That code is wrong. Try:

$boolean($.payload) = true ? "Charging " & $now('[H#1]:[m01]','+0100') : "Idle " & $now('[H#1]:[m01]','+0100')

Marc1200 commented 10 months ago

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 image

dgthomson commented 10 months ago

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.

Marc1200 commented 10 months ago

okay i will try

Marc1200 commented 10 months ago

this is now working after restarting the chargings station