I am trying to use a date sensor like this https://www.home-assistant.io/components/sensor.template/#working-with-dates but it is not updating, today (th 16th) the senor says 11/15/18. How do I get this to update?
- platform: template
sensors:
todaysdate:
value_template: "{{as_timestamp(now()) | timestamp_custom('%D') }}"
entity_id: sensor.date
What’s the date showing on the actual date sensor?
I guess that may be my issue, I have to set up a sensor.date?
The components page says " Useful entities to choose might be sensor.date
which update once per day, or sensor.time
which updates once per minute." so I assumed it would just know.
I assume I need this then https://www.home-assistant.io/components/sensor.time_date/
Probably wise seeing as you’re wanting to reference it in your template sensor.
I can’t just type in lock.front_door to my configuration and never use a key again, I have to integrate a lock component ![:slight_smile: :slight_smile:](https://community.home-assistant.io/images/emoji/twitter/slight_smile.png?v=9)