# Auto light on based on sunset AND presence

**URL:** https://discourse.nodered.org/t/auto-light-on-based-on-sunset-and-presence/71186
**Category:** General
**Tags:** home-assistant
**Created:** [24 November 2022 13:54 UTC](https://discourse.nodered.org/t/auto-light-on-based-on-sunset-and-presence/71186 "2022-11-24T13:54:58Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![jbudd](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@jbudd](https://discourse.nodered.org/u/jbudd)
#### Post date: [24 November 2022 14:15 UTC](https://discourse.nodered.org/t/auto-light-on-based-on-sunset-and-presence/71186/2 "2022-11-24T14:15:32Z")

</div>

![Untitled 1](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/1/f1847f896e768f4ef461fe86c5a167f6a151f79e.jpeg)  
Ouch! I think that's a record for importing a flow full of unknown nodes!

You might find some hints in [this thread](https://discourse.nodered.org/t/control-an-electric-heater/71097/9) but it's all Node-red and devoid of Home Assistant.

ps

> I tried everything... Nothing helps.

It must be impossible then? 😉

---

_[View the full topic](https://discourse.nodered.org/t/auto-light-on-based-on-sunset-and-presence/71186)._
