# Need help with State nodes. Trying to get the state of a Shelly 1 detached switch as trigger for a flow

**URL:** https://discourse.nodered.org/t/need-help-with-state-nodes-trying-to-get-the-state-of-a-shelly-1-detached-switch-as-trigger-for-a-flow/65025
**Category:** General
**Tags:** home-assistant
**Created:** [13 July 2022 00:25 UTC](https://discourse.nodered.org/t/need-help-with-state-nodes-trying-to-get-the-state-of-a-shelly-1-detached-switch-as-trigger-for-a-flow/65025 "2022-07-13T00:25:20Z")
**Posts on this page:** 1
**Showing post:** 17

<div class="post-metadata">

### Author: ![craigcurtin](https://avatars.discourse-cdn.com/v4/letter/c/94ad74/32.png) [@craigcurtin](https://discourse.nodered.org/u/craigcurtin)
#### Post date: [16 July 2022 04:52 UTC](https://discourse.nodered.org/t/need-help-with-state-nodes-trying-to-get-the-state-of-a-shelly-1-detached-switch-as-trigger-for-a-flow/65025/17 "2022-07-16T04:52:45Z")

</div>

Here is what it would look like

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/2/72b634a00307541008ed9177648d57d0b18d8284.png)

Note if you go to the Boolean Ultimate site he has some good examples to explain and demonstrate how to use the nodes (there is also a good inject node there for testing stuff like this)

> **[GitHub - Supergiovane/node-red-contrib-boolean-logic-ultimate: Enhanced...](https://github.com/Supergiovane/node-red-contrib-boolean-logic-ultimate)**
>
> Enhanced boolean logic with persistent values after reboot and more - GitHub - Supergiovane/node-red-contrib-boolean-logic-ultimate: Enhanced boolean logic with persistent values after reboot and more

And a good Youtube Video

https://www.youtube.com/embed/sYc6L5QQrTw?feature=oembed&wmode=opaque&list=PL9Yh1bjbLAYoRH4IyQB7EL5srHAihiKpy

Craig

---

_[View the full topic](https://discourse.nodered.org/t/need-help-with-state-nodes-trying-to-get-the-state-of-a-shelly-1-detached-switch-as-trigger-for-a-flow/65025)._
