07-26-2024 06:15 AM
Hi, can someone help me with how to write and implement an automation for coming home? The idea is to add a condition to the standard coming home automation (turning on the lights) so that the lights only turn on from evening until sunrise — for example: starting 30 minutes before sunset and ending 30 minutes after sunrise. I use the Google Home app on iOS. How can I implement such a code? Additionally, is there a way to reduce the presence detection area? The standard one is a bit too large for me.