Getting past a get_entities node with 'No Results'

How would I get the flow to continue past the get_entities node? Even though no lights are on, I want it to continue so that “night mode green” gets set.

[{"id":"8fb537a8.828378","type":"tab","label":"Flow 3","disabled":false,"info":""},{"id":"21caa85f.22dd68","type":"ha-get-entities","z":"8fb537a8.828378","server":"ab3e2c53.e3491","name":"Get Lights That are On","rules":[{"property":"entity_id","logic":"starts_with","value":"light.","valueType":"str"},{"property":"entity_id","logic":"does_not_include","value":"light.lamp1,light.kitchen_sink, light.porch, light.master_bedroom_light, light.master_bathroom_light","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"split","output_empty_results":false,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":360,"y":200,"wires":[["b6acfce6.394f"]]},{"id":"b70c6174.a32ce","type":"server-state-changed","z":"8fb537a8.828378","name":"Night mode on?","server":"ab3e2c53.e3491","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.night_mode","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":120,"y":200,"wires":[["21caa85f.22dd68"],[]]},{"id":"b6acfce6.394f","type":"api-call-service","z":"8fb537a8.828378","name":"Turn Them Off","server":"ab3e2c53.e3491","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"{{payload.entity_id}}","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":200,"wires":[["30653e15.95b972"]]},{"id":"30653e15.95b972","type":"api-call-service","z":"8fb537a8.828378","name":"Night mode green","server":"ab3e2c53.e3491","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.night_mode_green","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":790,"y":200,"wires":[[]]},{"id":"ab3e2c53.e3491","type":"server","name":"AvilaSmartHomeRpi","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
[{"id":"d5433176.9f2a9","type":"ha-get-entities","z":"4ac10e17.5454e","server":"","name":"Get Lights That are On","rules":[{"property":"entity_id","logic":"starts_with","value":"light.","valueType":"str"},{"property":"entity_id","logic":"does_not_include","value":"light.lamp1,light.kitchen_sink, light.porch, light.master_bedroom_light, light.master_bathroom_light","valueType":"str"},{"property":"state","logic":"is","value":"on","valueType":"str"}],"output_type":"array","output_empty_results":true,"output_location_type":"msg","output_location":"payload","output_results_count":1,"x":388,"y":192,"wires":[["5cf3a70d.2e6828"]]},{"id":"5ce9cf87.7a945","type":"server-state-changed","z":"4ac10e17.5454e","name":"Night mode on?","server":"","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.night_mode","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","haltifstate":"true","halt_if_type":"bool","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"x":176,"y":192,"wires":[["d5433176.9f2a9"],[]]},{"id":"c90ec681.7fea98","type":"api-call-service","z":"4ac10e17.5454e","name":"Turn Them Off","server":"","version":1,"debugenabled":false,"service_domain":"light","service":"turn_off","entityId":"","data":"{\"entity_id\": $join(payload.entity_id,\",\")}","dataType":"jsonata","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":720,"y":192,"wires":[["19ba929.f83a26d"]]},{"id":"19ba929.f83a26d","type":"api-call-service","z":"4ac10e17.5454e","name":"Night mode green","server":"","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_on","entityId":"input_boolean.night_mode_green","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":922,"y":192,"wires":[[]]},{"id":"5cf3a70d.2e6828","type":"switch","z":"4ac10e17.5454e","name":"","property":"payload.length","propertyType":"msg","rules":[{"t":"gt","v":"0","vt":"num"},{"t":"else"}],"checkall":"true","repair":false,"outputs":2,"x":562,"y":192,"wires":[["c90ec681.7fea98"],["19ba929.f83a26d"]]}]
1 Like

@Kermit you da man!