Hello everybody.
I am desperate. I’m trying to create my own sensor, which should update itself in dependence of the time. I have already read all about it, but I can’t find a solution.
I have configured the time_date platform. I add the sensor.time entity to refresh the sensor. Now I want to create a senor, which always shows me the current minute. Unfortunately the value does not update.
sensor:
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
- 'date_time_utc'
- 'date_time_iso'
- 'time_date'
- 'time_utc'
- 'beat'
- platform: template
sensors:
test_value:
entity_id: sensor.time
value_template: '{{ now().minute }}'
friendly_name: 'TestValue'
When I restart home assistant, I look at the current states in the developer tools. However, the value does not change after the restart and remains at the minute I restarted. Can somebody help me?