# Current State false not working

**URL:** https://discourse.nodered.org/t/current-state-false-not-working/22463
**Category:** General
**Created:** [2 March 2020 03:16 UTC](https://discourse.nodered.org/t/current-state-false-not-working/22463 "2020-03-02T03:16:05Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![GoBooth](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gobooth/32/17452_2.png) [@GoBooth](https://discourse.nodered.org/u/GoBooth)
#### Post date: [2 March 2020 03:16 UTC](https://discourse.nodered.org/t/current-state-false-not-working/22463/1 "2020-03-02T03:16:06Z")

</div>

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/f/afc6a45a92df89f5e8db6fe08f3cc29bc26ab4d2.png)

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.

```auto
[{"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}]

```

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [2 March 2020 07:33 UTC](https://discourse.nodered.org/t/current-state-false-not-working/22463/2 "2020-03-02T07:33:53Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [1 May 2020 07:33 UTC](https://discourse.nodered.org/t/current-state-false-not-working/22463/3 "2020-05-01T07:33:56Z")

</div>

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