Test multiple values in a scene and act accordingly

I think what I want to do is impossible in a single scene.
If that’s the case, it’s really a pity.

The Renault API sends the charging status using 8 values :
NOT_IN_CHARGE = 0.0
WAITING_FOR_A_PLANNED_CHARGE = 0.1
CHARGE_ENDED = 0.2
WAITING_FOR_CURRENT_CHARGE = 0.3
ENERGY_FLAP_OPENED = 0.4
CHARGE_IN_PROGRESS = 1.0
CHARGE_ERROR = -1.0
UNAVAILABLE = -1.1

I would like to get on my dashboard the charging status as a message and a history or graph of charge start and end.

I think I should use this:

But I’m afraid I’ll need one scene per value.
A « case » function would be welcome
If I have « 0.0 » Then Send to the dashboard « not charging »
If I have …

Or maybe by using a variable that would contain the value, but I don’t know which trigger to use

What if you set a trigger that’s always true? Temperature greater than -100°C, for example.
You then retrieve all your variables, etc. Feasible?

Ok for the trigger on « hot water tank temperature > -100°C » (not very pretty, but oh well)

After, I do a
Retrieve the last state

Then, the most logical is
Continue only if

But I can only test one value out of the

Ah yes, I hadn’t understood.
I don’t see any other solutions than

  • Node-RED
  • Eight scenes (by duplicating them, it’s not insurmountable :innocent: )

I have the same need for my heating.

At the moment it’s controlled by Z-Wave (Qubino pilot

1 Like