Send timer program to pool filter controller
-
Hi all,
I want to replace the simple timer controller of the pool with an arduino based using a real time clock and communicating with home assistant using mysensors/mqtt.
Right now I am able to control the filter relay with the arduino/mysensors like a simple switch. However I want to send a timer program, a list of times to turn on/off the filter per day, and then the arduino will work in autonomous mode.
How can I perform such a communication with mysensors?thanks in advance
-
@Vasilis-Vlachoudis well, normally, I would realize this by a timer in HA and just sending the ON and OFF commands to the switch.
Alternatively, you could use a custom variable and use a format like this in your message:+0800-1000+1400-1900
. On your arduino, you need to write an interpreter for this format and see if your output matches the requirement of the current time frame.
If you want to controll it from the Arduino, be sure to often request time from the controller. I already got some cheep Arduino Nanos from Ali with a 1% clock accuracy... This may not sound like much but in worst case, this is a quarter of an hour per day!
Regards, Edi
-
Thank you @eiten for you suggestion. I will try it.
I wanted to be independent from HA, just as a fail safe in case of problems.
I am not relying on the time keeping of the arduino, but on a real time clock module.
Suggested Topics
-
Update RF24 library to latest version
Bug Reports • 23 Mar 2014, 23:37 • andriej 24 Mar 2014, 22:52 -
ESP-NOW
General Discussion • 22 Apr 2018, 05:58 • NeverDie 17 Feb 2025, 22:24 -
Why is the output of ACS712 current measurement module unchanged?
General Discussion • 19 Jul 2021, 09:09 • Tessie T 12 days ago -
No merge into master in the last 5 years, should we use development?
General Discussion • 23 Sept 2024, 17:48 • kiesel 16 days ago -
Code Garage to the rescue.
General Discussion • 11 Jan 2025, 11:25 • skywatch 23 Feb 2025, 14:57 -
Email notifications received twice
General Discussion • 6 Feb 2023, 16:15 • Jodaille 15 days ago