In the documentation for the Tasmota software I did find a referense to å clockmode. I did need to find out what it was. It was a analog clock on an WS2812 string. Here is my project to put it into use.
When it is physical finished, I also plan to use it to give me some urgent messages, maybe blink the whole clock red if someone rings the doorbell?
Today i have tested the clock from mqtt and node-red
cmnd/Clock∕Dimmer 100 sets full power, value from 0 to 100.
cmnd/Clock/Color 00F000 sets bright green color (RRGGBB)
cmnd/Clock/Scheme 0 switches mode so the selected color is shown
cmnd/Clock/Scheme 2 switches back to normal clock display
Doorbell has gotten a golden color for a minute.
Bright red is reserved for the day when i get the fire alarm conected
and at the moment a message via Telegram app to my house bot will light the clock green. That is only for test, maybe it will become useful for something. The telegram bot was already set up to sen me a picture from outdoor surveillance cam when somebody is ringing the doorbell.
The board is very simple. It is a 3.3V regulator for the ESP. A diode from the output pin and a pull up from the diode to 5V. This is to lift the signal level before putting it in to the led strip.
Some capacitors may be a good idea. My clock is working fine without, using only the caps in the PSU and the module itself. It could also be nice with a resistor to vcc (3.3V) from gpio0 to prevent the module going into programming mode.
The blue rectangle on the schematics indicate the direction of the esp01 module. The three pin connector to the left is the connection to the led strip. 5v at top. Signal in middle and gnd at bottom
2: Program the ESP
Follow the instructions on the github page for the tasmota software.
There are precompiled binaries that is easy to use, but as i live in Norway and we have summer and winter time i had to adjust the parameters for the summer/winter time in the user_config file before i uploaded the software from the arduino ide.
I also put my network credentials in the config file.
There are many ways to do this, so check the instructions from Tasmota.
3: 3d print
I have 2 stl files. One for the electonics enclosure / hanger, and one for the clip to fasten the enclosure to the clock face.
The clip and enclosure has 3 holes. I glued in 3 pins from a pinheader. the two that is in line is there to hold the clip in place. the third is going to go trough the clock face.