# Presence sensor with plugs and lights

**URL:** <https://community.homey.app/t/presence-sensor-with-plugs-and-lights/159106>\
**Category:** Questions & Help\
**Created:** [September 3, 2026, 8:33am UTC](https://community.homey.app/t/presence-sensor-with-plugs-and-lights/159106 "2026-09-03T08:33:31Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![SunBeech](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/sunbeech/32/111391_2.png) [@SunBeech](https://community.homey.app/u/SunBeech)\
**Post date:** [September 3, 2026, 10:05am UTC](https://community.homey.app/t/presence-sensor-with-plugs-and-lights/159106/5 "2026-09-03T10:05:29Z")

</div>

Indeed, the order does not matter.

Just FYI: Athom once [explained](https://community.homey.app/t/how-homey-implements-sunset-and-sunrise/151358/18) how the sunset/sunrise flowcards work and thus when the ‘it is after sunset’ and ‘it is after sunrise’ flowcards return true of false. Or at least, that is how it should work.

Since the sunset/sunrise conditions go beyond the current day and continue into the next day, this might result into some unexpected results when creating flows.

I created a picture, based on Athom’s linked explanation, on when the two conditions are true/false:

 ![Sunset v Sunrise](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/b/8b32139c97a4bcd7217801d6ab141b8b8ab9429a.png)

---

_[View the full topic](https://community.homey.app/t/presence-sensor-with-plugs-and-lights/159106)._
