Updated to 115.1 HASS extremely slow. Problem is templates

Very very slow some things go on timeout. Nothing particular in the log. Any hint?

EDIT

solved deleting all templating

Yeah, I’m hitting this as well. The new templating stuff is grinding my instance to a crawl.

Not sure if it’s just a lack of specific entity_id monitoring (I’ve got some dynamic templates that loop through states. to filter on the fly.

Trying to break my config down piece-by-piece but it doesn’t seem like it’s a specific section – just the number of templates in use.

With 0.115 when you do this in a template it will listen for all state changes and evaluate your template whenever any entity changes state, whereas previously when you had entity_id in the template config, it only attached a listener to the entities mentioned in entity_id and evaluated the template when the specified entities changed state.

It slowed down a NUC i5 with 16Gb of RAM, I guess something big changed in the way templating works.

Since I have no time to dig into I cancelled all templating, I think a number between 5 and 10 (so not many)

5-10 templates extremly slow down a i5 NUC? This doesn’t sound normal to me. Can you please post these templates?

Mmhh I cancelled them, is a bit time consuming to get them back (old backup or copy paste from a website where I took them but can’t remember which). They were working with previous versions of HASS though

Ok, then they were not really important :wink: otherwise you would’ve just commented them out.

I have exactly the same problem. But I have a lot of templates … sensors, briefings etc. When I downgrade my Home Assistant back to 114.4 it works perfect. When I updated to 115.x (5/6) it extremely slow down my instance. I already changed all my template with included entity_id: and removed this section. But the problem still there. I have to many templates to delete them all. Have anyone a idea what’s going on in v.0.115.x?

The problem is the following.

Let’s say you have a template sensor that loops through all entities and checks if they are unavailable. Before 0.115, you could add an entity_id and it would only evaluate the template when this entity changes. After 0.115, it will evaluate the template whenever any entity changes state and if you have a lot of entities, this will be extremly often.

Identify all Template Sensors that use states. For example, a template that starts with:

 {{ states | selectattr ('state', etc .. 

Try to redesign the template so it doesn’t use states. For example, you can create a group containing only the entities you require and then use it with the expand function:

 {{ expand ('group.my_group') | selectattr ('state', etc .. 
1 Like

Oh, thanks … I will check my templates for this. I certainly have similar templates and I thing a lot of them :sweat_smile:. I will check this and give you a feedback if it works.

If you paste the template into the Template Editor, it will tell you which entities Home Assistant will monitor for changes. If it reports that it will use all entities, that’s a template you should optimize.

If it says it will monitor all entities, it means your template will be evaluated every time any entity in your system changes state.

1 Like

Puh this was a lot of changes …
I removed/changed all template sensors with “{{ states |” … and the system runs better. But unfortunately not so good (fast) as before (114.4) :disappointed_relieved: CPU usage is more than 52% I have a Intel NUC i5 with 16GB RAM. So I think there is still something in my configuration that blocks since 0.115.x

I found this in my log.

2020-10-01 12:19:18 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at http://bit.ly/2ogP58T : homekit, notify.telegram, homeassistant, notify, fan.template, sensor.coronavirus, device_tracker.unifi, alarm_control_panel.manual, webostv, discovery, map, configurator, binary_sensor.workday, sensor.openweathermap, group, cover.velux, notify.file, notify.ios, input_boolean, binary_sensor.template, sensor.esphome, api, scene.velux, sensor.hacs, frontend, system_log, input_text, notify.mobile_app, sensor.ipp, default_config, onboarding, openweathermap, media_player, influxdb, weather.openweathermap, proximity, sensor.homematic, media_player.cast, binary_sensor.homematic, binary_sensor.esphome, light.switch, cover.homematic, sensor.unifi, hassio, esphome, velux, zone, met, weather.met, camera, scene, alarm_control_panel, sensor.time_date, persistent_notification, image, sensor.integration, sun, ipp, switch.template, sensor.systemmonitor, switch.homematic, webhook, binary_sensor, light, switch, stream, media_player.webostv, tag, sensor.season, wake_on_lan, lock, media_source, spotify, input_number, history, input_datetime, sensor.circadian_lighting, media_player.sonos, search, calendar, cover, sensor.garbage_collection, device_tracker.mobile_app, config, input_select, light.mqtt, hacs, light.group, switch.command_line, sensor.mqtt, binary_sensor.mobile_app, cast, scene.homeassistant, python_script, notify.group, cloud, lock.nuki, sensor.uptime, utility_meter, calendar.garbage_collection, remote_homeassistant, notify.webostv, websocket_api, switch.unifi, recorder, sensor.version, mqtt, device_tracker, updater, google, fan, sensor.template, system_health, switch.circadian_lighting, logbook, binary_sensor.updater, ffmpeg, alexa, garbage_collection, http, person, tts, mobile_app, weather, switch.mqtt, lovelace, sensor.fritzbox_callmonitor, cover.template, ssdp, binary_sensor.mqtt, sensor, auth, automation, script, circadian_lighting, sensor.min_max, zeroconf, telegram_bot, sensor.utility_meter, homematic, calendar.google, sensor.mobile_app, ios, device_automation, coronavirus, sonos, sensor.ios, unifi

and this is the complete one

2020-10-01 12:18:35 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for circadian_lighting which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-01 12:18:35 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for garbage_collection which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-01 12:18:44 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for remote_homeassistant which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-01 12:18:44 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-01 12:18:46 ERROR (MainThread) [homeassistant.components.frontend] Please remove javascript_version from your frontend config. It is no longer supported
2020-10-01 12:18:46 WARNING (MainThread) [pyvlx] Connecting to KLF 200.
2020-10-01 12:18:47 WARNING (SyncWorker_8) [pyhomematic._hm] Skipping init for homeassistant-ccu3
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.binary_sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.binary_sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.binary_sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.binary_sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.binary_sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:48 WARNING (MainThread) [homeassistant.components.template.switch] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 ERROR (MainThread) [homeassistant.components.weather] The openweathermap platform for the weather integration does not support platform setup. Please remove it from your config.
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:49 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:50 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for icloud3 which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant.
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:51 WARNING (MainThread) [homeassistant.components.template.sensor] The 'entity_id' option is deprecated, please remove it from your configuration
2020-10-01 12:18:53 WARNING (MainThread) [pyvlx] Connected to: KLF 200: Software version: 0.2.0.0.71.0, hardware version: 6, protocol version: 3.14
2020-10-01 12:18:53 ERROR (MainThread) [frontend.js.latest.202009182] http://192.168.1.4:8123/local/community/custom-header/custom-header.js:146:49227 TypeError: null is not an object (near '..."ha-panel-lovelace").shadowRoot.querySel...')
2020-10-01 12:18:59 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform homematic is taking over 10 seconds.
2020-10-01 12:18:59 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform homematic is taking over 10 seconds.
2020-10-01 12:19:01 WARNING (MainThread) [homeassistant.components.switch] Setup of switch platform homematic is taking over 10 seconds.
2020-10-01 12:19:01 WARNING (MainThread) [homeassistant.components.binary_sensor] Setup of binary_sensor platform homematic is taking over 10 seconds.
2020-10-01 12:19:16 ERROR (MainThread) [homeassistant.components.hassio.handler] Timeout on /discovery request
2020-10-01 12:19:16 ERROR (MainThread) [homeassistant.components.hassio.discovery] Can't read discover info: 
2020-10-01 12:19:18 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned 
2020-10-01 12:19:18 WARNING (MainThread) [homeassistant.core] Something is blocking Home Assistant from wrapping up the start up phase. We're going to continue anyway. Please report the following info at http://bit.ly/2ogP58T : homekit, notify.telegram, homeassistant, notify, fan.template, sensor.coronavirus, device_tracker.unifi, alarm_control_panel.manual, webostv, discovery, map, configurator, binary_sensor.workday, sensor.openweathermap, group, cover.velux, notify.file, notify.ios, input_boolean, binary_sensor.template, sensor.esphome, api, scene.velux, sensor.hacs, frontend, system_log, input_text, notify.mobile_app, sensor.ipp, default_config, onboarding, openweathermap, media_player, influxdb, weather.openweathermap, proximity, sensor.homematic, media_player.cast, binary_sensor.homematic, binary_sensor.esphome, light.switch, cover.homematic, sensor.unifi, hassio, esphome, velux, zone, met, weather.met, camera, scene, alarm_control_panel, sensor.time_date, persistent_notification, image, sensor.integration, sun, ipp, switch.template, sensor.systemmonitor, switch.homematic, webhook, binary_sensor, light, switch, stream, media_player.webostv, tag, sensor.season, wake_on_lan, lock, media_source, spotify, input_number, history, input_datetime, sensor.circadian_lighting, media_player.sonos, search, calendar, cover, sensor.garbage_collection, device_tracker.mobile_app, config, input_select, light.mqtt, hacs, light.group, switch.command_line, sensor.mqtt, binary_sensor.mobile_app, cast, scene.homeassistant, python_script, notify.group, cloud, lock.nuki, sensor.uptime, utility_meter, calendar.garbage_collection, remote_homeassistant, notify.webostv, websocket_api, switch.unifi, recorder, sensor.version, mqtt, device_tracker, updater, google, fan, sensor.template, system_health, switch.circadian_lighting, logbook, binary_sensor.updater, ffmpeg, alexa, garbage_collection, http, person, tts, mobile_app, weather, switch.mqtt, lovelace, sensor.fritzbox_callmonitor, cover.template, ssdp, binary_sensor.mqtt, sensor, auth, automation, script, circadian_lighting, sensor.min_max, zeroconf, telegram_bot, sensor.utility_meter, homematic, calendar.google, sensor.mobile_app, ios, device_automation, coronavirus, sonos, sensor.ios, unifi
2020-10-01 12:19:19 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.living_room_2st_floor_couch_ambiance, light.living_room_2st_floor_tv_left_ambiance, light.living_room_2st_floor_tv_right_ambiance
2020-10-01 12:19:19 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.kitchen_kitchen_block_ambiance, light.kitchen_kitchen_in_block_ambiance
2020-10-01 12:19:19 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities light.stairs_up_ambiance
2020-10-01 12:19:32 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:19:32 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.living_room_2st_floor_tv is taking over 10 seconds
2020-10-01 12:19:35 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:19:35 ERROR (MainThread) [metno] https://aa015h6buqvih86i1.api.met.no/weatherapi/locationforecast/2.0/complete returned 
2020-10-01 12:19:56 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:20:38 WARNING (MainThread) [asyncio] socket.send() raised exception.
2020-10-01 12:21:50 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:21:53 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:21:53 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:21:53 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:21:53 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:21:54 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:21:54 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:22:02 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:24:53 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:25:02 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.living_room_2st_floor_tv is taking over 10 seconds
2020-10-01 12:25:17 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:25:17 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-10-01 12:25:25 WARNING (MainThread) [homeassistant.components.automation.areas_turn_on_ipad_when_motion_is_detected] [areas] - turn on ipad when motion is detected: Already running
2020-10-01 12:25:32 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPushNotification
2020-10-01 12:25:40 ERROR (MainThread) [homeassistant.components.ipp] Error fetching ipp data: Invalid response from API: Timeout occurred while connecting to IPP server.
2020-10-01 12:25:44 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:25:51 WARNING (MainThread) [homeassistant.components.automation.areas_turn_on_ipad_when_motion_is_detected] [areas] - turn on ipad when motion is detected: Already running
2020-10-01 12:25:58 ERROR (MainThread) [homeassistant.components.mobile_app.notify] Timeout sending notification to https://mobile-apps.home-assistant.io/api/sendPushNotification
2020-10-01 12:26:37 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:26:37 WARNING (MainThread) [homeassistant.helpers.entity] Update of media_player.living_room_2st_floor_tv is taking over 10 seconds
2020-10-01 12:26:52 WARNING (MainThread) [homeassistant.components.automation.garden_lights_off] garden_lights_off: Already running
2020-10-01 12:26:59 WARNING (MainThread) [homeassistant.components.sensor] Updating systemmonitor sensor took longer than the scheduled update interval 0:00:30
2020-10-01 12:27:02 WARNING (MainThread) [homeassistant.components.media_player] Updating webostv media_player took longer than the scheduled update interval 0:00:10
2020-10-01 12:27:06 WARNING (MainThread) [homeassistant.components.automation.stairs_down_lights_off_motion] stairs_down_lights_off_motion: Already running
2020-10-01 12:27:08 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:28:35 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:28:35 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch
2020-10-01 12:28:47 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.fibaro_system_fgs222_double_relay_switch_2x1_5kw_switch

is this sensor template ok for 0.115.x?

platform: template
sensors:
  bathroom_1st_floor_motion_luminance:
    entity_id: sensor.000c1be98e0871_illumination
    friendly_name: "Bad Erdgeschoss Bewegungsmelder Beleuchtungsstärke"
    device_class: illuminance
    unit_of_measurement: 'lx'
    value_template: "{{ states('sensor.000c1be98e0871_illumination')|float | round(1) }}"
    attribute_templates:
      indoor: >-
        {{ true }}
      location: >-
        {{ '2st_floor' }}

Did you read the logs you posted?

The log tells you that the entity_id option has been depracted multiple times. You need to remove entity_id: xxxx.xxxxx from all your template sensors.

How many sensors do you have? (I have a NUC like yours and havent upgraded to 0.115 yet).

I thought the entity_id in templates are only ignored from v.0.115.x on. I’ll remove them all and see if it gets better.

They will be ignored, but that they are ignored has an impact on your templates.

Previously when you had a template that did not reference any entity in the value_template (meaning the template will never be evaluated as there is no entity to listen for), you were able to add entity_id and then the sensor would evaluate every time the entity changes. Now, it will be ignored and if you don’t have an entity in the value_template the template will never be evaluated. A workaround is to add a line like this:
{% set x = sensor.xxx %} with the entity you want to use to evaluate the template sensor.

1 Like

After I changed all my template sensors and marcos my instance under v.0.115.6 works fine (CPU usage 4 … 10% :slightly_smiling_face:). Thanks for all your help. @mcarty I have 874 sensors in my system.

After removing the “entity_id:” part a lot of my template sensors and -binary_sensors are no longer updating :frowning: