Did not find one in the states list, however I just looked at their wiki page and they show to correct the issue… Thanks again for the quick reply and for reference if anyone else sees this and is curious here is what it says
Home Assistant 115.x breaking changes - “remove entity_id option from your templates, as it is now deprecated.”
An easy fix is to create a group of your alexa devices and then use a template sensor to evaluate the group.
Hi all, I also have this error in my logs and I have found which template sensor is causing the issue.
Please see below code (it’s a sensor to display all unavailable items). The sensor is still working, but it is still showing my blacklisted items since this error.
If I remove entity_id, the sensor is not updated anymore. I tried to find the answer elsewhere, but couldn’t find it. Can anyone please help me with this one. Thanks!
Indeed. Although I use a similar sensor and once a minute isn’t good enough, so I use an automation that triggers on every state change in the system, with a condition that the state change was either from or to ‘unavailable’, ‘unknown’ or ‘none’ and an action that calls update_entity. Works well.
Well his template uses states which is throttled to at least once a minute. So if he has states that are changing all the time, it’ll pretty much update once a minute.
Ha, I can’t help but think we’re talking cross purposes for some reason.
He’s saying that he wanted it to update every minute.
He then said that if he removed entity_id it wouldn’t, which is false.
You corrected him by saying that it will continue to update once a minute, which is true.
I was adding to both of you that this sensor actually should be updated every time the states change otherwise it’s not actually doing what it’s designed to do (ie - monitor entities that go unavailable) so to achieve that goal you need an automation.
If the sensor updates every minute, you could have entities going unavailable for 59 seconds at a time without it ever registering on the sensor.
Really sorry for the late reply. I have been a bit busy with a newborn . So if I understand correctly, if I remove entity id it will still update when a state will change? Even if it does not use a sensor time? Thanks!
Logger: homeassistant.components.template.binary_sensor
Source: helpers/config_validation.py:749
Integration: template (documentation, issues)
First occurred: 3:50:50 PM (4 occurrences)
Last logged: 4:03:31 PM
The 'entity_id' option is deprecated, please remove it from your configuration
…but I don’t have entity_id anywhere in my configuration.yaml file. The log references some template sensors. I have three (not four) and they each look like this: