I wanted status from my Hayward SWG, and read somewhere that someone wasn't getting status over the RS485 interface. For whatever reason, the Hayward didn't set the bits like it should.
So I decided to build an optical sensor to read the LEDs.
Project link Still working on this page, but gives some basic information on what I did. I'll be adding more pictures and some details.
This is intended to help someone that already understands things like Pi's, ESP32's, and how to use them in a smart home setup.
I will describe what I did recently, but I already have a pretty extensive smart home system using Home Assistant (HA) and Node Red.
This project uses an ESP32 to read the LEDs with photo transistors, then sends the values to a Pi running HA over MQTT. I use HA to figure convert the value to on or off, and then display status of four LEDs.
I need to add some logic to Node Red to send alerts if I have flow or check cell LEDs.
Figured this might help a few hardcore diy types who want to get status from some LEDs somewhere.
Since the Hayward is in a metal case with a door, its dark when you close the door so it makes sensing the LEDs easy. Lots of difference between on and off. If you have ambient light it would be harder. Might need to shield the light and play with a resistor that sets sensitivity.
Screenshot was when I was testing if Flow would come on if I turned off pump for a min.
Randy
So I decided to build an optical sensor to read the LEDs.
Project link Still working on this page, but gives some basic information on what I did. I'll be adding more pictures and some details.
This is intended to help someone that already understands things like Pi's, ESP32's, and how to use them in a smart home setup.
I will describe what I did recently, but I already have a pretty extensive smart home system using Home Assistant (HA) and Node Red.
This project uses an ESP32 to read the LEDs with photo transistors, then sends the values to a Pi running HA over MQTT. I use HA to figure convert the value to on or off, and then display status of four LEDs.
I need to add some logic to Node Red to send alerts if I have flow or check cell LEDs.
Figured this might help a few hardcore diy types who want to get status from some LEDs somewhere.
Since the Hayward is in a metal case with a door, its dark when you close the door so it makes sensing the LEDs easy. Lots of difference between on and off. If you have ambient light it would be harder. Might need to shield the light and play with a resistor that sets sensitivity.
Screenshot was when I was testing if Flow would come on if I turned off pump for a min.
Randy