i have
input_boolean.sleep_mode_livingroom_real
input_boolean.sleep_mode_livingroom_proxy
how to make a regex to use this variable “input_boolean.sleep_mode_livingroom_” ONLY with “real” or “proxy” at the end.
Will be used with current state node if it matters.
The entity names I don’t think can be used as variables like that. To be clear, you have a total of 4 possible states based on 2 booleans (00, 11, 01, and 10), but then it sounds like you may only need a binary output… something like either “real” or “proxy”?
What is the actual application of this… are the 2 booleans really needed, or would a customized binary_sensor work for you (ie, on = real, off=proxy)?
In the end, does your node-red automations in question only have to respond to those 2 booleans (ie 4 possible states to handle differently)?