Easiest way to get "day" sensor up to date?

I have sensor:

  - platform: template
    sensors:
     x1:
      value_template: "{{now().day}}"
      entity_id: sensor.time_date
     x2:
      value_template: "{{now().month}}"
      entity_id: sensor.time_date



  - platform: time_date
    display_options:
     - 'date_time'

but x1 and x2 sensors are not updating automatically. Why? And how to fix it?

does the entity “sensor.time_date” exist?

In your “time_date” platform configuration you only have “date_time” not “time_date”.

thanks… I checked it several times but i didn’t see it :slight_smile: