Hi.
I want to set an input_boolean true, if any of the lights in the house turns on (Can be turned on from hue/app or directly from IHC)
And only turn input_boolean off if all lights are turned off.
Plan was to use it with presence detection and bayesian sensor.
So far i only have the following snippet
[{"id":"6c585494.81915c","type":"server-state-changed","z":"c23742bb.eb16a8","name":"Gang On","server":"c07167d6.bc6238","version":1,"entityidfilter":"light.gang_1520219","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":120,"y":520,"wires":[["8629a056.aff69"],[]]},{"id":"220bd539.2e6bda","type":"server-state-changed","z":"c23742bb.eb16a8","name":"Forgang On","server":"c07167d6.bc6238","version":1,"entityidfilter":"light.forgang_1513819","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":130,"y":560,"wires":[["8629a056.aff69"],[]]},{"id":"4d4171f0.90ca9","type":"server-state-changed","z":"c23742bb.eb16a8","name":"Spisestue On","server":"c07167d6.bc6238","version":1,"entityidfilter":"light.spiseplads_1521755","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":130,"y":600,"wires":[["8629a056.aff69"],[]]},{"id":"1e31d8e3.d86527","type":"server-state-changed","z":"c23742bb.eb16a8","name":"Køkken On","server":"c07167d6.bc6238","version":1,"entityidfilter":"light.kitchen","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":120,"y":640,"wires":[["8629a056.aff69"],[]]},{"id":"1a02da93.cab165","type":"server-state-changed","z":"c23742bb.eb16a8","name":"Emhette On","server":"c07167d6.bc6238","version":1,"entityidfilter":"light.emhette_2486107","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":130,"y":680,"wires":[["8629a056.aff69"],[]]},{"id":"8629a056.aff69","type":"api-call-service","z":"c23742bb.eb16a8","name":"Er lyset tændt","server":"c07167d6.bc6238","version":1,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.erlystaendt","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":410,"y":580,"wires":[["476bc73f.07c3b8"]]},{"id":"c07167d6.bc6238","type":"server","z":"","name":"Home Assistant","legacy":false,"hassio":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":false}]