Current State false not working

I'm trying to create an automation where when I press a button I toggle 2 lights. This is easily done. However, if one is on and the other isn't, my switch toggles them back and forth.

so in node-red I go... and I come up with this flow... but it's not working. after about a good 30 minutes, I notice that my automation never goes through the "false" route from my 1st "current state"

if you have a look at my picture, current state for "Dan's bulb off?" True will go, but the False never reaches "Mimi's bulb on" regardless of the bulb is on or off.

am I doing something wrong? or not understanding how it works?
I've only had node-red for a week now.

[{"id":"8a52a161.b460a","type":"api-current-state","z":"ea71e47f.67eb18","name":"Dan bulb's in OFF?","server":"cd7bc65d.3014a8","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.dan_s_bedroom_lamp_bulb","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1210,"y":360,"wires":[["937c9fe5.da5ce"],["90e4bd9d.37c72"]]},{"id":"937c9fe5.da5ce","type":"api-current-state","z":"ea71e47f.67eb18","name":"Mimi bulb's in OFF?","server":"cd7bc65d.3014a8","version":1,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.mimi_s_bedroom_lamp_bulb","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1460,"y":320,"wires":[["4963e078.e1cdb","8c3e9bc6.eb7308"],["4963e078.e1cdb"]]},{"id":"90e4bd9d.37c72","type":"api-current-state","z":"ea71e47f.67eb18","name":"Mimi bulb's in ON?","server":"cd7bc65d.3014a8","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"light.mimi_s_bedroom_lamp_bulb","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":1450,"y":400,"wires":[["8c3e9bc6.eb7308","4963e078.e1cdb"],["8c3e9bc6.eb7308"]]},{"id":"4963e078.e1cdb","type":"api-call-service","z":"ea71e47f.67eb18","name":"Mimi bulb Toggle","server":"cd7bc65d.3014a8","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.mimi_s_bedroom_lamp_bulb","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1830,"y":400,"wires":[[]]},{"id":"8c3e9bc6.eb7308","type":"api-call-service","z":"ea71e47f.67eb18","name":"dan bulb Toggle","server":"cd7bc65d.3014a8","version":1,"debugenabled":false,"service_domain":"light","service":"toggle","entityId":"light.dan_s_bedroom_lamp_bulb","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1800,"y":300,"wires":[[]]},{"id":"cd7bc65d.3014a8","type":"server","z":"","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":false}]
1 Like

Add debug nodes to find out which node is not working as you expect. Give the debug nodes names so it is easier to read the debug panel.

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