# Mark lamp as "Don't turn me off"

**URL:** https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731
**Category:** Flows
**Created:** [October 26, 2021, 5:31am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731 "2021-10-26T05:31:04Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![christian-alares](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian-alares/32/45782_2.png) [@christian-alares](https://community.homey.app/u/christian-alares)
#### Post date: [October 26, 2021, 5:31am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/1 "2021-10-26T05:31:04Z")

</div>

Hi! I just thought of something. Is it possible in some way to mark one or more lamps as temporarily “detached” from any flow. It may sound complicated but sometimes I want to turn on a certain light bulb and don’t let them turn off by any “good night”, “leaving home” or “inactive zone”. The “turn off all lamps” in an entire room or even entire home is great but it would be nice to have “turn off all lights except …”. If we have that maybe this could be achieved with variables or such.

Thanks  
Christian

---

<div class="post-metadata">

### Author: ![Henk\_Renting](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/henk_renting/32/87634_2.png) [@Henk\_Renting](https://community.homey.app/u/Henk_Renting)
#### Post date: [October 26, 2021, 8:22am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/2 "2021-10-26T08:22:11Z")

</div>

Not a real solution perhaps, but…  
If the lamp is connected by a smart plug you might be able to mark it as “always on” in advanced device settings.

 ![SmartSelect_20211026-102046_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/0/0082e559801f7128c3d7e3744d92f36f3896d4b9.jpeg)  
(dutch language setting)

But you have to enable/disable it by hand. I see no possibilities to do this by a flow i.e.

---

<div class="post-metadata">

### Author: ![Ronald\_de\_Boer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronald_de_boer/32/13873_2.png) [@Ronald\_de\_Boer](https://community.homey.app/u/Ronald_de_Boer)
#### Post date: [October 27, 2021, 12:57pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/3 "2021-10-27T12:57:57Z")

</div>

Hi,

For me the best solution was first to decide when I wanted to turn all the lights off and when I wanted to keep some on.  
With this in mind try to find which conditions or triggers you can use for each situation.  
Then put these in two different flows, one to turn all lights off and one to leave some lights on.  
For all lights you can indeed use “turn all lamps off” for the other one just select all the lights you want to turn off seperately and use the card to turn them off.

For me it works like a charm.

---

<div class="post-metadata">

### Author: ![christian-alares](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/christian-alares/32/45782_2.png) [@christian-alares](https://community.homey.app/u/christian-alares)
#### Post date: [October 27, 2021, 1:09pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/4 "2021-10-27T13:09:48Z")

</div>

Interesting! Would you mind sharing your flows for a better visualization?

/Christian

---

<div class="post-metadata">

### Author: ![Edwin\_D](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/edwin_d/32/136417_2.png) [@Edwin\_D](https://community.homey.app/u/Edwin_D)
#### Post date: [October 27, 2021, 2:01pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/5 "2021-10-27T14:01:57Z")

</div>

Instead of switching those lights directly in flows, you could create flows to turn a particular light on or off, and call those from your scene flow. In the on/off flow for a specific light you can then test on a boolean logic variable. Or you could just turn the flow itself on or off (I recommend the latter, as you can see that the flow is disabled at first glance)

---

<div class="post-metadata">

### Author: ![Ronald\_de\_Boer](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/ronald_de_boer/32/13873_2.png) [@Ronald\_de\_Boer](https://community.homey.app/u/Ronald_de_Boer)
#### Post date: [October 27, 2021, 3:04pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/6 "2021-10-27T15:04:16Z")

</div>

Hi,

Of course I can share.  
Small difference is that I use it for turning lights on.  
And I made different flows which are started by other flows for the lights. So when I want to change something, I only want to do it one time.  
Here are some small examples.  
[https://homey.app/f/xteh2P](https://homey.app/f/xteh2P)  
[https://homey.app/f/oarh2P](https://homey.app/f/oarh2P)  
And  
[https://homey.app/f/TfIh2P](https://homey.app/f/TfIh2P)  
[https://homey.app/f/5iRh2P](https://homey.app/f/5iRh2P)

Hope this will give you some ideas 💡

---

<div class="post-metadata">

### Author: ![Dennisvandergraaf](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dennisvandergraaf/32/34156_2.png) [@Dennisvandergraaf](https://community.homey.app/u/Dennisvandergraaf)
#### Post date: [October 31, 2021, 10:51pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/7 "2021-10-31T22:51:59Z")

</div>

Potentially I do not fully get the question, but I use for each room a different variable. For example a variable name “Living Room Light on”. Whenever a flow from Homey tries to turn lights off then it must check if this variable is stating yes, if so then Homey is allowed to turn the lights off otherwise skip.

So when I turn on a light manually this variable is not set to yes, and when Homey turns on a light it does set this variable to yes, and no when homey turns on the lights. In the flow that turns on lights you simply add a check that it should only execute if some or maybe all lights are already on.

Let me know if this makes sense, otherwise I can post some screen shots of an example.

---

<div class="post-metadata">

### Author: ![DidierVU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/didiervu/32/12458_2.png) [@DidierVU](https://community.homey.app/u/DidierVU)
#### Post date: [November 3, 2021, 9:56am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/8 "2021-11-03T09:56:41Z")

</div>

This would indeed be easier to control the lights. For example: the lights in the driveway shouldn’t go off when you make a flow that turns all lights off. You can then select all zones where they should go off but it would be much easier if we can just say “turn all lights off except this zone or this light”

---

<div class="post-metadata">

### Author: ![Cuprum](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/cuprum/32/41409_2.png) [@Cuprum](https://community.homey.app/u/Cuprum)
#### Post date: [November 4, 2021, 5:40am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/9 "2021-11-04T05:40:21Z")

</div>

From my side one idea for current problem: There is a “switch” for flows to. It’s possible to disable a flow. So, may-be to group the lights into different flows, and the special-handling lights are in flow, which one is then enabled or disabled.

Another just an idea: _IF_ the devices (lights) have a (user defined, multiple) tags, then it’s quite easy in script select all devices with specific tag and manage (only)them. For example:

- switchOffAll(“night-home-empty”)
- switchOffAll(“night-home-somesleeper”)

PS. Additional pluss is the easy-to-manage. When adding/removing/resetting device it’s not required to check all flows, but just add a tag(s) to new device. Also, if “someone is lost”, then there is no command for him.

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [January 24, 2022, 8:38am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/10 "2022-01-24T08:38:19Z")

</div>

> [@DidierVU](#):
>
> it would be much easier if we can just say “turn all lights off except this zone or this light”

Agreed!  
I do it a bit “dirty”:  
If…  
Blah  
Then…  
Turn off all lights  
And then…  
Turn on zone Y and Z after 1s  
(Or: turn on Lamp Y and Z after 1s).

---

<div class="post-metadata">

### Author: ![DidierVU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/didiervu/32/12458_2.png) [@DidierVU](https://community.homey.app/u/DidierVU)
#### Post date: [January 24, 2022, 4:29pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/11 "2022-01-24T16:29:34Z")

</div>

“And then” 😅

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [January 24, 2022, 8:02pm UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/12 "2022-01-24T20:02:37Z")

</div>

Whats the fun?

---

<div class="post-metadata">

### Author: ![DidierVU](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/didiervu/32/12458_2.png) [@DidierVU](https://community.homey.app/u/DidierVU)
#### Post date: [January 25, 2022, 5:59am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/13 "2022-01-25T05:59:46Z")

</div>

That’s another flow right?

---

<div class="post-metadata">

### Author: ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)
#### Post date: [January 25, 2022, 11:22am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/14 "2022-01-25T11:22:34Z")

</div>

No. I just meant this with:  
Then…  
blah  
And then…  
blah

 ![Screenshot_20220125-121721_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f9488a41d9bd7068989a86881ab587b18958899.jpeg)

---

<div class="post-metadata">

### Author: ![Russell\_Ebbing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/russell_ebbing/32/79404_2.png) [@Russell\_Ebbing](https://community.homey.app/u/Russell_Ebbing)
#### Post date: [June 1, 2024, 6:22am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/15 "2024-06-01T06:22:17Z")

</div>

Use mood! In my case, turn off all lights but the nightlight. So instead of turning off all nightlight set up a mood that sets all the lights off but the nightlight…

---

<div class="post-metadata">

### Author: ![Rrrr](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rrrr/32/629_2.png) [@Rrrr](https://community.homey.app/u/Rrrr)
#### Post date: [June 3, 2024, 11:26am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/16 "2024-06-03T11:26:43Z")

</div>

Alternatively, use \< Groups \>

---

<div class="post-metadata">

### Author: ![Russell\_Ebbing](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/russell_ebbing/32/79404_2.png) [@Russell\_Ebbing](https://community.homey.app/u/Russell_Ebbing)
#### Post date: [June 8, 2024, 12:43am UTC](https://community.homey.app/t/mark-lamp-as-dont-turn-me-off/53731/17 "2024-06-08T00:43:37Z")

</div>

Another good idea! I have water sensors throughout my hous and use \< groups \> to them all down as if only one sensor covering the entire house.
