Hello,
I have a generic thermostat card that is used in parallel with a BroadLink IR Blaster and there’s a small issue in this setup: (in my case it is used for a cooler, and it has a snowflake instead of the flame)
Let’s say I turn on the AC via Siri/Lovelace UI… the node-red flow checks the status of the entity and based on that, the IR Blaster sends the specific command to turn on the AC, the AC turns on and the generic thermostat switches to Cooling (the snowflake turns blue) - Same thing applies for the “turn off” (the snowflake turns grey) - everything fine till now.
Here’s the tricky situation:
I’ve set up some other node-red flows, that turn on/off the AC based on some constrains (ex: when I am away, and the AC is still on, turn it off by sending IR command).
In those situations, when the AC is turned on/off by the IR Blaster, via node-red, the generic thermostat card does not update the snowflake/turn off buttons - and I am unable to use Siri anymore (because it doesn’t know in what state it is) - I need to go to Lovelace and manually turn on/off…
So I was thinking if there’s a way to manually override the snowflake/turn off buttons of the generic thermostat card whenever the IR Blaster sends those commands. It might be related to those two attributes of the entity, but I am not sure.
I tried changing the “state” of this entity through the developer tools tab and it works as it should: when it’s state is set to “cool”, the snowflake turns blue, the AC turns on, and vice-versa for “off”. I’ve also tried parsing a msg.payload with {“state”:“off”} (WHICH WORKS) but it clears all other attributes and the current temperature, slider, etc disappear (until the HA entity refreshes and brings those attributes back)
What flow should I use, and what should it do, that whenever the IR Blaster turns the AC on or off, that entity updates as well?
Thanks!