Hi Guys just wanted to share my
(children’s) nightlight/clock
Based on ESPHome inside the cheap 5 euro Ikea light.
It has a clock whose light intensity is controlled by home assistant.
With a light ring
TM1637 0.56"
SK6812 Ledring
It is set to get green based on a schedule so she knows she can come out of bed.
time_format 24hr use : “%H.%M”
time_format 12hr use: “%I.%M” time_format 12hr with leading zero removed use: “%-l:%M%p”
edit - not working in esp home … the test in the script worked like charme
12hr format is easier to read for younger children
As a script it works, but from ESPHome the screen remains black.
tried several thing.
sorry man
i know values can be shown on the display so my next thing to try is to put the time in to a sensor or an input_number so the time 02:34 will become 2.34 as a value.
this will take me some time as my experience is not that far
Now we will use this value to show the time
we start writing the time lower than 10 from the second digit on the display
and set the value fixed as a 2 decimal digit .2f"
equal or higher from the first digit. Compared to the time as sensor