# House Mode - Am I doing this right?

**URL:** <https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206>\
**Category:** Developing Nodes\
**Created:** [19 November 2020 18:12 UTC](https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206 "2020-11-19T18:12:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kreene1987](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/kreene1987/32/32260_2.png) [@kreene1987](https://discourse.nodered.org/u/kreene1987)\
**Post date:** [19 November 2020 18:13 UTC](https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206/1 "2020-11-19T18:13:00Z")

</div>

BRAND new to Node Red, coming from ST and webcore but moving quickly into HA + NR. Glad to be here.

Is this an efficient way of programming the smarthome "mode" similar to ST's home mode. I have binary\_sensor's in HA that then trigger scenes via automations.

Just wanted to get some feedback on my first flow:

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

Couple questions:

1. Is there a way to have 2 inputs into a node that can turn on if true or turn off if false?
2. Is there a more efficient way to track individuals/guests for first in/last out node flagging true?
3. Any recommendations on reducing/perfecting the flow?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [19 November 2020 20:55 UTC](https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206/2 "2020-11-19T20:55:17Z")

</div>

To answer your first question, I'm not sure what you mean by inputting true or false. I'm not aware of a node that has two inputs but there are nodes that will do boolean operations. Nodes that will take information from two sources and determine an output. Just posting a picture is tough to determine what is going on if you want to post the flow maybe someone would be willing to take a look at it.

---

<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:** [18 January 2021 20:55 UTC](https://discourse.nodered.org/t/house-mode-am-i-doing-this-right/36206/3 "2021-01-18T20:55:17Z")

</div>

Closed on 18 January 2021 20:55 UTC

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