# (Hue) light back to old state

**URL:** <https://community.homey.app/t/hue-light-back-to-old-state/63777>\
**Category:** Questions & Help\
**Tags:** flow\
**Created:** [May 18, 2022, 9:28am UTC](https://community.homey.app/t/hue-light-back-to-old-state/63777 "2022-05-18T09:28:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jasper01](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jasper01/32/47915_2.png) [@Jasper01](https://community.homey.app/u/Jasper01)\
**Post date:** [May 18, 2022, 9:28am UTC](https://community.homey.app/t/hue-light-back-to-old-state/63777/1 "2022-05-18T09:28:42Z")

</div>

Hi all,

Maybe you guys can help me out.

I would like to make a flow (script?) We’re I can turn my (hue) light back in his previous state.

For example. When the garage door opens. A sensor detects the gap and the light turns to red. When I close the door the light should go back to his previous state. So when the light was off its should go back to off. When it was purple it should go back to purple.

So I think I have to read out the light status before changing it, store this so I can reuse this again. Or maybe there is a better solution?

Is there a way to do this?

With kind regards,

Jasper

---

<div class="post-metadata">

**Author:** ![DirkG](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkg/32/118897_2.png) [@DirkG](https://community.homey.app/u/DirkG)\
**Post date:** [May 18, 2022, 9:32am UTC](https://community.homey.app/t/hue-light-back-to-old-state/63777/2 "2022-05-18T09:32:39Z")

</div>

Don’t understand exactly you’re use case, but maybe this app can be helpful:

> **[Zone Memory](https://homey.app/en-us/app/com.sdn.zone-memory/Zone-Memory/)**
>
> Save and restore settings of devices or whole zones

---

<div class="post-metadata">

**Author:** ![Jasper01](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jasper01/32/47915_2.png) [@Jasper01](https://community.homey.app/u/Jasper01)\
**Post date:** [May 18, 2022, 11:22am UTC](https://community.homey.app/t/hue-light-back-to-old-state/63777/3 "2022-05-18T11:22:50Z")

</div>

Hi!

Thnx! That did the job! 😄

Regards, Jasper
