# How to run a simple on off from home-assisant controlling HomeSeer device

**URL:** <https://discourse.nodered.org/t/how-to-run-a-simple-on-off-from-home-assisant-controlling-homeseer-device/84718>\
**Category:** General\
**Tags:** home-assistant\
**Created:** [19 January 2024 10:28 UTC](https://discourse.nodered.org/t/how-to-run-a-simple-on-off-from-home-assisant-controlling-homeseer-device/84718 "2024-01-19T10:28:55Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_automation1](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mr\_automation1](https://discourse.nodered.org/u/mr_automation1)\
**Post date:** [19 January 2024 10:28 UTC](https://discourse.nodered.org/t/how-to-run-a-simple-on-off-from-home-assisant-controlling-homeseer-device/84718/1 "2024-01-19T10:28:55Z")

</div>

Still a newby in NodeRed.  
I'm using HA (home-assistant) to control some (z-wave) devices which are in HomeSeer. So I created a Flow which switch On or Off the device when the Inject button is pressed in NodeREd.  
Now I'm struggling how to get the On Off (Injected) from HomeAssistant (switch or button).

 ![Scherm­afbeelding 2024-01-18 om 16.55.04](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/9/a9d247528c2d73d54b2b878dbb3e0e78d68edc91.png)  
So the On Off injection works. The switch will work only If I have one part in it (the on or off part) How to get the switch to also use or do the second part (Off)?

 ![Scherm­afbeelding 2024-01-19 om 11.27.29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/7/17e1609a62d7e9fe99f4193d7f908aaa42428d62.png)

---

<div class="post-metadata">

**Author:** ![marcus-j-davies](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/marcus-j-davies/32/103435_2.png) [@marcus-j-davies](https://discourse.nodered.org/u/marcus-j-davies)\
**Post date:** [19 January 2024 18:37 UTC](https://discourse.nodered.org/t/how-to-run-a-simple-on-off-from-home-assisant-controlling-homeseer-device/84718/2 "2024-01-19T18:37:20Z")

</div>

Welcome to the forums @mr_automation1

I feel the reason no one has been able to provide an answer, is the fact you are using too many layers, before Node RED is involved.

I think you will be better of seeking assistance from the HA and /or HS communities.

Most here do not use any of those platforms, and use Node RED in a stand alone/native manner.

---

<div class="post-metadata">

**Author:** ![mr\_automation1](https://avatars.discourse-cdn.com/v4/letter/m/5fc32e/32.png) [@mr\_automation1](https://discourse.nodered.org/u/mr_automation1)\
**Post date:** [20 January 2024 10:07 UTC](https://discourse.nodered.org/t/how-to-run-a-simple-on-off-from-home-assisant-controlling-homeseer-device/84718/3 "2024-01-20T10:07:28Z")

</div>

Ok. Will try that also.

---

<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:** [20 March 2024 10:08 UTC](https://discourse.nodered.org/t/how-to-run-a-simple-on-off-from-home-assisant-controlling-homeseer-device/84718/4 "2024-03-20T10:08:06Z")

</div>

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