Continue if at least one entity has specific value

I have 5 sensors, all of them can has a number value starting from 0 and up.

I want to check if at least one of them has the value of “1” and then continue if that is true. If non of them are “1”, then don’t contunue.

Inject->

If
sensor.a = "1"
or
sensor.b = "1"
or
sensor.c = "1"
or
sensor.d = "1"
or
sensor.e = "1"
then
Continue->
else
Not Continue

Create a min/max entity with the 5 sensors and use that for your condition.

Use the current state node with a value for the “If state” setting to get two outputs.

[{"id":"15f4e8b704444cfe","type":"api-current-state","z":"be03f9025a1f137a","name":"sensor.a = 1","server":"","version":3,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.a","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1555,"y":405,"wires":[["a478fca636ef5a7a"],["66c4ebc284f68c8f"]]},{"id":"66c4ebc284f68c8f","type":"api-current-state","z":"be03f9025a1f137a","name":"sensor.b = 1","server":"","version":3,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.b","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1555,"y":465,"wires":[["a478fca636ef5a7a"],["23e88af2e698b011"]]},{"id":"23e88af2e698b011","type":"api-current-state","z":"be03f9025a1f137a","name":"sensor.c = 1","server":"","version":3,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.c","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1555,"y":525,"wires":[["a478fca636ef5a7a"],["ed56a9978007d234"]]},{"id":"ed56a9978007d234","type":"api-current-state","z":"be03f9025a1f137a","name":"sensor.d = 1","server":"","version":3,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.d","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1555,"y":585,"wires":[["a478fca636ef5a7a"],["b72a76d28f88a3c8"]]},{"id":"b72a76d28f88a3c8","type":"api-current-state","z":"be03f9025a1f137a","name":"sensor.e = 1","server":"","version":3,"outputs":2,"halt_if":"1","halt_if_type":"str","halt_if_compare":"is","entity_id":"sensor.e","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":1555,"y":645,"wires":[["a478fca636ef5a7a"],["ecc471cd36803f0e"]]},{"id":"a478fca636ef5a7a","type":"debug","z":"be03f9025a1f137a","name":"Atleast one sensor = 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1855,"y":405,"wires":[]},{"id":"ecc471cd36803f0e","type":"debug","z":"be03f9025a1f137a","name":"No senosrs = 1","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1850,"y":630,"wires":[]},{"id":"d85e53d64cfb50ad","type":"server-state-changed","z":"be03f9025a1f137a","name":"sensor.a","server":"","version":5,"outputs":1,"exposeAsEntityConfig":"","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1320,"y":405,"wires":[["15f4e8b704444cfe"]]},{"id":"27abf8c069b002de","type":"server-state-changed","z":"be03f9025a1f137a","name":"sensor.b","server":"","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1320,"y":465,"wires":[["15f4e8b704444cfe"]]},{"id":"e51ba00401df56ee","type":"server-state-changed","z":"be03f9025a1f137a","name":"sensor.c","server":"","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1320,"y":525,"wires":[["15f4e8b704444cfe"]]},{"id":"b75a23507b7fdb5b","type":"server-state-changed","z":"be03f9025a1f137a","name":"sensor.d","server":"","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1320,"y":585,"wires":[["15f4e8b704444cfe"]]},{"id":"3b863fe53a9e53a5","type":"server-state-changed","z":"be03f9025a1f137a","name":"sensor.e","server":"","version":5,"outputs":1,"exposeAsEntityConfig":"","entityId":"","entityIdType":"exact","outputInitially":false,"stateType":"str","ifState":"","ifStateType":"str","ifStateOperator":"is","outputOnlyOnStateChange":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":1320,"y":645,"wires":[["15f4e8b704444cfe"]]}]

Thanks for suggestions.
I got this working with the “get entities” node suggested by Kermit in this thread.

[{"id":"70c33be17290d834","type":"ha-get-entities","z":"49abe2a263c909c4","name":"","server":"fee63bd.14801c8","version":1,"rules":[{"property":"entity_id","logic":"includes","value":"sensor.avfallsor_metal_xxx,sensor.avfallsor_mixed_xxx,sensor.avfallsor_paper_xxx,sensor.avfallsor_plastic_xxx","valueType":"str"},{"property":"state","logic":"is","value":"1","valueType":"str"}],"outputType":"array","outputEmptyResults":false,"outputLocationType":"msg","outputLocation":"payload","outputResultsCount":1,"x":290,"y":160,"wires":[["8815d0917c4cfc30"]]},{"id":"fee63bd.14801c8","type":"server","name":"Home Assistant","addon":true}]