A "I quit smoking" sensor

Thanks for your explanation.

I get the warning
Template sensor xxxxx has no entity ids configured to track nor were we able to extract the entities to track from the value template(s). This entity will only be able to be updated manually.

I read some posts for this problem:

but how can I change my config to avoid the warning`?

  - platform: template
        value_template: '{{ (( as_timestamp(now()) - as_timestamp(strptime("08.01.2012", "%d.%m.%Y")) ) / 86400 ) | round(2) }}'
        friendly_name: 'Tage zusammen'  
        unit_of_measurement: "Tage"

Look here. You have to add an entity to update the sensor. Use sensor.date like in the official docs: https://www.home-assistant.io/components/sensor.template/#working-without-entities

1 Like

what does the daily report report switch do? can you share it also

Daily report triggers a xmpp notification every morning. Looks like this: https://twitter.com/_HailEris/status/1016643765057064960

Just wanted to say congrats. It is almost a year for me and I feel great.

1 Like