Hello,
i would like to use a wemos d1 mini in combination with a ws2812b led strip in ESPhome to indicate what day of the month it is.
This would mean 1 set of 7 lights to indicate monday-sunday. One set of 31 lights for the days, and one set of lights indicating the month.
I have 2 sensors:
- sensors:
dayoftheweek:
value_template: "{{ ['Mo','Tu','We','Th','Fr','Sa','Su'][now().weekday()] }}"
entity_id: sensor.day
- sensors:
months:
value_template: "{{ ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Okt','Nov','Dec'][now().month-1] }}"
entity_id: sensor.month
im missing 1 more for the day, which i dont know how to make yet.
So my overall question would be how would i write the code part in Esphome, and how to put this in a automation in HA?
Any help would be appreciated.