What’s Connected
The project exits off:
• Arduino UNO
• W5100 LAN module
• 433-module
• RTC-module (DS3231)
• Self-learning power switches
Added functionality:
• Daylight Saving Time for CET
• Sunset/Sunrise calculation
The RTC-module (DS3231) is added for two reasons.
• Unaware if the time can be retrieved from Cheyenne
• Store in the alarm if we are on DST-time or not
Some lines are set to comment, you can use this section to reset your RTC-module and/or to set a new time.
In this section you also “give the “DTS_check the initial correct value; DST in CET is calculated a bit odd).
Triggers & Alerts
The Present time, sunrise and sunset are used to calculate if it is night time or not:
if (time_now >= time_sunset or time_now <= time_sunrise) {
and saved as a digital sensor. This sensor is used in a trigger to switch light on/off at sunset/sunrise.
Scheduling
Sunset and sunrise is calculted daily at 2 AM.
Some lights will switch off at pumkin time (others on sunrise done with a trigger).
Dashboard Screenshots
The dashboard:
Trigger:
Original links:
- https://community.mydevices.com/t/home-automation-with-self-learning-433-power-switches/1879
- https://community.mydevices.com/t/home-automation-with-self-learning-433-power-switches-revised/2671
Relational links:
- https://www.hackster.io/WJ4IoT/home-automation-with-self-learning-433-power-switches-9d52dd
- https://create.arduino.cc/projecthub/WJ4IoT/home-automation-with-self-learning-433-power-switches-9d52dd
COMMENTS