How can I receive a notification if the UV lamp in the basement stops working?
Problem
The UV lamp in the water purification station is stopping randomly and no one knows about it.
Solution
I've got an idea to create a small IoT project based on ESPEasy as I used it a couple of years ago for another project.
I bought Wemos D1 mini pro chips to flash ESPEasy into them. Then, I configured them to use my WiFi network and my dad's as a backup to be sure that it would work for him, too.
Except for Wemos D1, I also bought a photoresistor chip which I soldered to this board.
When I programmed the whole thing to work on my WiFi and provide the expected state of light intensity (honestly, it was pretty easy - only needed to remember to PullUp input pin in board configuration), I started with the configuration of notifications.
I thought about a couple of solutions, but there were some limitations - my dad does not have a public IP address, and I do not want to expose Wemos D1 to the whole internet. So, I played a bit with Cloudflare Pages and was able to create a small project which retrieved HTTP requests from Wemos D1. In controllers of Wemos D1, I added a new HTTP Client and sent all the information about state change to the Cloudflare Pages endpoint.
I had some experience before with Pushover notifications, so I decided to send requests from Cloudflare Pages directly to Pushover which will send notifications to my dad's and mine smartphone.
The design of the whole infrastructure looks like this:
Story
Once, the dad asked me if I had any idea how to check if the lamp in a water purifier was on or not. He had a problem that the lamp stopped working and he did not know about it. It was crucial to have this lamp working as without it, water could contain bacteria.
He mentioned that there is a small space to place some sensors to check that. So I got an idea to play again with ESPEasy and photoresistor.
After a couple of months, it is still working fine!
Diagram created with Google Gemini