# Preserve light state+setting after event?

**URL:** <https://community.homey.app/t/preserve-light-state-setting-after-event/140653>\
**Category:** Questions & Help\
**Tags:** flow, homey-pro\
**Created:** [July 29, 2025, 5:15am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653 "2025-07-29T05:15:40Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jocke\_Wallen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jocke_wallen/32/76525_2.png) [@Jocke\_Wallen](https://community.homey.app/u/Jocke_Wallen)\
**Post date:** [July 29, 2025, 5:15am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/1 "2025-07-29T05:15:40Z")

</div>

I’m trying to figure out if following scenario is possible, two variations:

1. 

Light is **on** (say 75%) , an event is triggered (i.e. motion sensor) that flashes same lamp 3 times.  
Light returns to previous state, on 75%.

1. 

Light is **off** , an event is triggered (i.e. motion sensor) that flashes same lamp 3 times.  
Light returns to previous state, off.

Is it possible to save state+setting and re-use them after event?  
Example anywhere available?

---

<div class="post-metadata">

**Author:** ![Andy\_Henderson](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/andy_henderson/32/80642_2.png) [@Andy\_Henderson](https://community.homey.app/u/Andy_Henderson)\
**Post date:** [July 29, 2025, 7:31am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/2 "2025-07-29T07:31:58Z")

</div>

My Tuya-controlled lights retain their settings if you turn them on and off via Homey. Have you checked if yours do the same? If they do, you just need to detect the on/off state in the flow and either execute three off/on steps or three off/on steps depending on the state.

---

<div class="post-metadata">

**Author:** ![Jocke\_Wallen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jocke_wallen/32/76525_2.png) [@Jocke\_Wallen](https://community.homey.app/u/Jocke_Wallen)\
**Post date:** [July 29, 2025, 8:05am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/3 "2025-07-29T08:05:24Z")

</div>

How do You determine if lights are on or off before the event starts?  
After lights has “blinked” three times the last command is turn off the lamp?  
And after that the lamp, if turned on before event, should be turned on again.

Or am I just overthinking this or missing something obvious?

---

<div class="post-metadata">

**Author:** ![Niclas](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/niclas/32/13339_2.png) [@Niclas](https://community.homey.app/u/Niclas)\
**Post date:** [July 29, 2025, 8:16am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/4 "2025-07-29T08:16:27Z")

</div>

Perhaps [Zone Memory](https://homey.app/sv-se/app/com.sdn.zone-memory/Zone-Memory/) could be of use?

---

<div class="post-metadata">

**Author:** ![Rmb](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rmb/32/79135_2.png) [@Rmb](https://community.homey.app/u/Rmb)\
**Post date:** [July 29, 2025, 11:54am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/5 "2025-07-29T11:54:14Z")

</div>

You can use variables. And usually you can check if the lamp is on or off with a Logic card and the right tag.

---

<div class="post-metadata">

**Author:** ![Jocke\_Wallen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jocke_wallen/32/76525_2.png) [@Jocke\_Wallen](https://community.homey.app/u/Jocke_Wallen)\
**Post date:** [July 29, 2025, 12:38pm UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/6 "2025-07-29T12:38:07Z")

</div>

Thanks!  
I’ll try try to figure out how to use variables without creating a spaghetti chaos.

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [July 30, 2025, 10:58pm UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/7 "2025-07-30T22:58:54Z")

</div>

Like Niclas sais, use the app [Zone Memory App för Homey | Homey](https://homey.app/sv-se/app/com.sdn.zone-memory/Zone-Memory/)

---

<div class="post-metadata">

**Author:** ![Jocke\_Wallen](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jocke_wallen/32/76525_2.png) [@Jocke\_Wallen](https://community.homey.app/u/Jocke_Wallen)\
**Post date:** [July 31, 2025, 2:55am UTC](https://community.homey.app/t/preserve-light-state-setting-after-event/140653/8 "2025-07-31T02:55:18Z")

</div>

OK, thanks, gonna try that as well.

Just trying to avoid installing too many apps….
