Any ideas on how to fix this? Iâve changed logging to be fatal only for now to stop the slowdowns I am seeing.
17-02-23 20:37:25 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback async_track_point_in_utc_time.<locals>.point_in_time_listener(<Event time_c....501454-06:00>) at /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/event.py:108
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
self._callback(*self._args)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/event.py", line 124, in point_in_time_listener
hass.async_run_job(action, now)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py", line 234, in async_run_job
target(*args)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/automation/state.py", line 78, in state_for_listener
async_remove_state_for_cancel()
TypeError: 'NoneType' object is not callable
If itâs on startup, itâs because your sensor evaluates attributes before theyâre valued/exist. You can wrap that value template in an âifâ to prevent. If itâs recurring, not sure what the issue is.
I believe you need an âandâ. To make sure you catch both entities. But I donât think that states.climate.state is right.You need to use the real entity_idâs. Find them on the states dev tab. Test your template with the template dev tab.
I updated my value template to this and it still works. However, I still have the original error. These are repeating errors and not just on startup.
"{{ is_state_attr('climate.downstairs', 'away_mode', 'on') and is_state_attr('climate.upstairs', 'away_mode', 'on') }}"
Any thoughts on how to wrap this in an âifâ?
17-02-24 11:02:58 ERROR (MainThread) [homeassistant.core] Error doing job: Exception in callback async_track_state_change.<locals>.state_change_listener(<Event state_...651431-06:00>>) at /srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/event.py:59
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/events.py", line 120, in _run
self._callback(*self._args)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/helpers/event.py", line 79, in state_change_listener
event.data.get('new_state'))
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/core.py", line 234, in async_run_job
target(*args)
File "/srv/homeassistant/homeassistant_venv/lib/python3.4/site-packages/homeassistant/components/automation/state.py", line 87, in state_for_cancel_listener
async_remove_state_for_listener()
TypeError: 'NoneType' object is not callable
I guess I just donât understand fully what to change. I changed the value template to this but still receiving the errors. Iâll just disable error logging for now
value_template: "{% if states.climate.downstairs.attributes.away_mode and states.climate.upstairs.attributes.away_mode %}{{ is_state_attr('climate.downstairs', 'away_mode', 'on') and is_state_attr('climate.upstairs', 'away_mode', 'on') }}{% endif %}"