Events: state - AND

Hi.
Is it possible to check these entities below with the AND and not OR?
I'd like to have a check for this condition and the return true or false only if ALL OF THESE ENTITIES are OFF.
Thanks.

image

I do not use HA, but alot of the nodes allow JSONata expressions. My be the if stae has a J: option. If not you could do it in a change node after the event node, with something like true in $$.payload.* true could also be "on" or "off", depending on the output payload from the event state node, that may need adjusting.

Have a look in the forum last week - there was a long thread where i was helping someone with almost the same needs in Home Assistant

Craig

Maybe this one?

https://discourse.nodered.org/t/need-help-with-state-nodes-trying-to-get-the-state-of-a-shelly-1-detached-switch-as-trigger-for-a-flow/65025/17?u=gregolin

Yep thats it

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.