Sorry I don’t know what section to put this in. Please feel free to move to the correct place.
Updated and went for a walk, upon returning home none of my automations were working. Have fully restarted to no avail and I can’t really understand the logs.
Did you clear your browse cache ?
I can if you think that will help, however I don’t think that would explain none of the automations working in the house
What do the logs say ?
Logger: homeassistant.setup
Source: setup.py:426
First occurred: 18:28:38 (1 occurrence)
Last logged: 18:28:38
Error during setup of component automation: ‘NoneType’ object is not callable
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 426, in _async_setup_component
result = await task
^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 257, in async_setup
await _async_process_config(hass, config, component)
File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 1066, in _async_process_config
entities = await _create_automation_entities(hass, updated_automation_configs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 947, in _create_automation_entities
cond_func = await _async_process_if(hass, name, config_block)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/src/homeassistant/homeassistant/components/automation/init.py”, line 1112, in _async_process_if
if_action = await condition.async_conditions_from_config(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
hass, if_configs, LOGGER, name
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
)
^
File “/usr/src/homeassistant/homeassistant/helpers/condition.py”, line 978, in async_conditions_from_config
await async_from_config(hass, condition_config)
File “/usr/src/homeassistant/homeassistant/helpers/condition.py”, line 249, in async_from_config
return cast(ConditionCheckerType, factory(config))
~~~~~~~^^^^^^^^
TypeError: ‘NoneType’ object is not callable
Don’t seem obvious reason. The only way to search for the error is the hard way :
rename your automations.yaml to automations.bak
create an empty automations.yaml
restart HA
copy one for one an automation from automations.bak to automations.yaml, and from developer tools reload automations, until you find the offending automation.
Thank you, I’ll try that now.
Do I just copy the entire contents and manually copy across the text automations 1 at a time?
1 at a time, and reload automations after each
Thank you! Got it!
Weirdly malformed by a full ui created automation.
Same problem here (after update ‘Entity Progress Card Update 1.47 > 1.48)
Not sure if that update had something todo with it, at that moment I see my automatizations where completely gone and after reading this problem solving I thought OMG … NO WAY … ALL THAT WORK HAVING TODO !!!
So after some thinking I decide to ‘undo’ my last few handlings by put back the last automated BACKUP from about 6 hours earlier and lucky for me I spare me a LOT of work.
The strange thing I see it was exactly the same error as @deedubs had with the same error lines in it : 257, 1066, 947, 1112.
So clearly something else was go wrong during the update, I’ll just wait with updating until maybe more gets clear about this error.
GreetZzz John