#The code to display it only with number
1 messages · Page 1 of 1 (latest)
Update (Still not working tho):
I've created a sensor like:
platform: template
sensors:
month:
friendly_name: "Month of the year"
value_template: >
{{ now().strftime('%b') }}
And in the ESP device:
time:
- platform: homeassistant
id: homeassistant_time
on_time:
- seconds: 0
minutes: /1
then:
- lambda: id(disp1).set_component_text_printf("Home.time", "%02i:%02i", id(homeassistant_time).now().hour, id(homeassistant_time).now().minute);
- lambda: id(disp1).set_component_text_printf("Home.date", "%02i, %s", id(homeassistant_time).now().day_of_month, id(month).state.c_str());
And a TextSensor
text_sensor:
- platform: homeassistant
id: month
entity_id: sensor.month
attribute: state