-
-
Notifications
You must be signed in to change notification settings - Fork 30.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automations stopped working #114402
Comments
Please add more context. The automation yaml and any logs. What entities are you using for the trigger and what integration are you using for that? |
The trigger-device is Hue Motion through Zigbee2MQTT Here is my yaml: alias: Kontorlampe tænd/sluk
description: ""
trigger:
- type: motion
platform: device
device_id: 50818e03847dc2a6963edd367e05764c
entity_id: binary_sensor.motion_sensor_kontor_occupancy
domain: binary_sensor
condition:
- type: is_illuminance
condition: device
device_id: 1ba2259b8418d29d3a33f7e16ca0f42d
entity_id: sensor.lyssensor_kontor_illuminance_lux
domain: sensor
below: 50
action:
- type: turn_on
device_id: 6eba6aa388bad821211eb4f97f0622e1
entity_id: light.bordlampe_kontor
domain: light
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- type: is_no_motion
condition: device
device_id: 50818e03847dc2a6963edd367e05764c
entity_id: binary_sensor.motion_sensor_kontor_occupancy
domain: binary_sensor
- type: turn_off
device_id: 6eba6aa388bad821211eb4f97f0622e1
entity_id: light.bordlampe_kontor
domain: light
mode: restart And the log says: Logger: homeassistant.components.automation Automation with alias 'Kontorlampe tænd/sluk' failed to setup actions and has been disabled: Integration 'binary_sensor' does not support device automation actions |
Anything in the logs? |
Only this:
|
Its hitting this exception |
There is no binary_sensor device_action
|
Maybe I'm missing something, but that looks a bit suspect in the |
@bdraco Your hint helped a lot. alias: Kontorlampe tænd/sluk
description: ""
trigger:
- type: motion
platform: device
device_id: 50818e03847dc2a6963edd367e05764c
entity_id: binary_sensor.motion_sensor_kontor_occupancy
domain: binary_sensor
condition:
- type: is_illuminance
condition: device
device_id: 1ba2259b8418d29d3a33f7e16ca0f42d
entity_id: sensor.lyssensor_kontor_illuminance_lux
domain: sensor
below: 50
action:
- type: turn_on
device_id: 6eba6aa388bad821211eb4f97f0622e1
entity_id: light.bordlampe_kontor
domain: light
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- type: is_no_motion
condition: device
device_id: 50818e03847dc2a6963edd367e05764c
entity_id: binary_sensor.motion_sensor_kontor_occupancy
domain: binary_sensor
- type: turn_off
device_id: 6eba6aa388bad821211eb4f97f0622e1
entity_id: light.bordlampe_kontor
domain: light
mode: restart And the the same automation which is working: alias: Kontorlampe tænd/sluk
description: ""
trigger:
- type: motion
platform: device
device_id: 50818e03847dc2a6963edd367e05764c
entity_id: binary_sensor.motion_sensor_kontor_occupancy
domain: binary_sensor
condition:
- type: is_illuminance
condition: device
device_id: 1ba2259b8418d29d3a33f7e16ca0f42d
entity_id: sensor.lyssensor_kontor_illuminance_lux
domain: sensor
below: 50
action:
- type: turn_on
device_id: 6eba6aa388bad821211eb4f97f0622e1
entity_id: light.bordlampe_kontor
domain: light
- delay:
hours: 0
minutes: 5
seconds: 0
milliseconds: 0
- if:
- type: is_no_motion
condition: device
device_id: 50818e03847dc2a6963edd367e05764c
entity_id: 9a44e50854a3a3e2c4d24ae5607dfbb0
domain: binary_sensor
then:
- type: turn_off
device_id: 6eba6aa388bad821211eb4f97f0622e1
entity_id: 5750c0f8b598d8f383440f7b7ecd0d02
domain: light
mode: restart So it is not a bug but just a new way of doing things. I will close the issue |
It turns out this was a bug which I just fixed in #114825 When |
The problem
Automation with alias 'Kontorlampe tænd/sluk' failed to setup actions and has been disabled: Integration 'binary_sensor' does not support device automation actions
What version of Home Assistant Core has the issue?
2024.4.0b0
What was the last working version of Home Assistant Core?
2024.3
What type of installation are you running?
Home Assistant OS
Integration causing the issue
No response
Link to integration documentation on our website
No response
Diagnostics information
Automation with alias 'Kontorlampe tænd/sluk' failed to setup actions and has been disabled: Integration 'binary_sensor' does not support device automation actions
Example YAML snippet
No response
Anything in the logs that might be useful for us?
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: