poldim
January 22, 2018, 5:03am
1
Received this error:
The 'entity_id' option (with value 'sensor.time') is deprecated, please remove it from your configuration.
The only place I’m using it is:
binary_sensor:
- platform: template
sensors:
garage_door_open_for_15mins:
value_template: '{{ is_state("cover.garage_door", "open") and (as_timestamp(now()) - as_timestamp(states.cover.garage_door.last_changed) > 15 * 60 ) }}'
entity_id: sensor.time
I tried ‘sensor.time_date’, that did not help.
Ernst
(Ernst)
January 22, 2018, 6:25am
2
In my case it was in one of my Automations. Did you check there?
You can remove the entity_id from your template sensors, just like the warning says.
Just when I think things are starting to fall into place with the vast amount of knowledge it takes to get a HA system up and running. I upgraded today and now get a bunch of these warnings:
The ‘entity_id’ option (with value ‘lock.basement_door_locked’) is deprecated, please remove it from your configuration.
11:47 AM helpers/config_validation.py (WARNING)
The ‘entity_id’ option (with value ‘zwave.basement_door’) is deprecated, please remove it from your configuration.
11:47 AM helpers/con…
petro
(Petro)
January 22, 2018, 6:46pm
4
its telling you to remove the line: entity_id: sensor.time from your config.
d0nnae
January 25, 2018, 12:05pm
5
I am getting the same error, I have it in a sensor aswell:
cal_alert_time:
entity_id: sensor.date__time
value_template: '{{ (as_timestamp(states.calendar.abfallkalender.attributes.start_time) - as_timestamp(now()) ) }}'
friendly_name: 'Alert Time'
The warning disappears when I take the “entity_id” out and the sensor still shows up, BUT it does not update anymore and is therefore useless for me. Any help is appreciated.
Kallb123
(Kallum Burgin)
January 25, 2018, 12:20pm
6
See my post here: How to replace entity_id in template sensors
Basically remove the now() and insert a date, that means the sensor will update whenever the date/time updates.
1 Like
d0nnae
January 25, 2018, 12:53pm
7
Thank you, that seems to work according to the dev-templates. I will give it a shot, cheers!