Hi
I have home assistant yellow
And I can’t get this to work as it should
As you can see on screen shots that the sensors are discovered but the automations don’t work although the logbook shows something
Please help me
y
Hi
I have home assistant yellow
And I can’t get this to work as it should
As you can see on screen shots that the sensors are discovered but the automations don’t work although the logbook shows something
Please help me
I’m not familiar with your sensors, but it looks as if you are using a device trigger. With my Hue sensors there is a binary sensor associated with the device, and you would use a state change to kick things off. Something like:
trigger:
- platform: state
entity_id:
- binary_sensor.bathroom_motion_sensor_motion
to: "on"
It’s quite difficult for other people to follow your thinking if you post screen shots. Please paste yaml as preformatted text (</> in the toolbar). To find the code, click on the “Edit in YAML” option in the automation editing UI.
alias: Bedroom occupied
description: ""
trigger:
- type: opened
platform: device
device_id: removed
entity_id: binary_sensor.heiman_hs8os_ef1_3_0_opening_2
domain: binary_sensor
- type: occupied
platform: device
device_id: removed
entity_id: binary_sensor.heiman_hs8os_ef1_3_0_occupancy_2
domain: binary_sensor
condition: []
action:
- type: turn_on
device_id: removed
entity_id: light.bedroom
domain: light
brightness_pct: 100
flash: short
mode: single
Please have a look
Thanks for your help
So… would this work?
trigger:
- platform: state
entity_id:
- binary_sensor.heiman_hs8os_ef1_3_0_opening_2
- binary_sensor.heiman_hs8os_ef1_3_0_occupancy_2
to: "on"
It is now working without any modifications
Looks like one of the home assistant updates fixed that
Now the sensor turns light on when it detects a human
What if I’m sleeping how to prevent the light from opening while I’m on the room I guess there is a complex automation for that