core: Automations with ZHA triggers don't work in 0.107
The problem
After updating to 0.107 all my automations that were triggered by events from ZHA devices(mostly Xiaomi wall switches) stopped working.
HASS starts up with the following notificaiton:
The following integrations and platforms could not be set up:
- automation
In log I see a bunch of similar lines:
[homeassistant.config] Invalid config for [automation]: (See /config/configuration.yaml, line 16).
Environment
- Home Assistant release with the issue: 0.107.1
- Last working Home Assistant release (if known): 0.106.0
- Operating environment (Hass.io/Docker/Windows/etc.): ArchLinux repo installation, reproduced in Docker
- Integration causing this issue: Automation
- Link to integration documentation on our website: https://www.home-assistant.io/docs/automation/
Problem-relevant configuration.yaml
- alias: Toggle hall light on switch press
trigger:
- device_id: 323f65f38ef74ac0a74cb45b3469a774
domain: zha
platform: device
subtype: button_1
type: remote_button_short_press
action:
- service: light.toggle
data:
entity_id: light.ikea_of_sweden_tradfri_bulb_e27_ws_opal_1000lm_23de36fe_level_light_color_on_off
Traceback/Error logs
[homeassistant.config] Invalid config for [automation]: (See /config/configuration.yaml, line 16).
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 39 (38 by maintainers)
the problem is with ZHA loading the devices after the ZHA platform is setup, but automation tries to validate those prior the zha device gets actually loaded
Haven’t checked it yet, sorry.
0.107.3 now
Try 0.107.2 it has a fix which might fix your issue too
in my tests on 107.1, I can only reproduce the problem if the
device_idis wrong. But even the, the start is fine, it is the reload where it fails.~hrm another question… Is the ZHA component itself even loaded? Or are there other tracebacks in the log?~ Missed the first response… I’m assuming that means ZHA is working.