#Automations conflicts
1 messages · Page 1 of 1 (latest)
OK NP.
This one unlocks both doors if one is manually unlocked.
description: ""
trigger:
- platform: state
entity_id:
- lock.back_door_lock
from: locked
to: unlocked
- platform: state
entity_id:
- lock.garage_door_lock
from: locked
to: unlocked
condition:
- condition: sun
before: sunset
after: sunrise
- condition: zone
entity_id: person.jack
zone: zone.home
action:
- service: lock.unlock
target:
device_id:
- 72610fb4983a8bc7e66b6dcbb75b5775
- d44f533b648262b6fe1335f05b8fe3af
data: {}
mode: single```
This one unlocks both doors if I press a button.
description: ""
trigger:
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
condition: []
action:
- service: lock.unlock
target:
device_id:
- 72610fb4983a8bc7e66b6dcbb75b5775
- d44f533b648262b6fe1335f05b8fe3af
data: {}
mode: single
This one unlocks both doors and opens the main garage door if the button is double pressed.
Someone advised to use queue mode as this one has been having some issues.
description: ""
trigger:
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
condition:
- condition: or
conditions:
- condition: zone
entity_id: person.anna
zone: zone.home
- condition: zone
entity_id: person.jack
zone: zone.home
action:
- service: cover.open_cover
target:
device_id: 6e4d8cfb8b199bed1a423709101c48f5
data: {}
- service: lock.unlock
target:
device_id:
- 72610fb4983a8bc7e66b6dcbb75b5775
- d44f533b648262b6fe1335f05b8fe3af
data: {}
mode: queued
max: 10
and lastly, this one controls the lights.
The camera triggers didn't seem to work so lets not worry about them... I'll have to figure them out separately.
description: ""
trigger:
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
- platform: state
entity_id:
- camera.back_door_doorbell
to: recording
- platform: state
entity_id:
- camera.back_door_doorbell
to: streaming
- platform: state
entity_id:
- lock.back_door_lock
- lock.garage_door_lock
to: unlocked
condition:
- condition: sun
after: sunset
before: sunrise
action:
- service: switch.turn_on
data: {}
target:
device_id: 94ab24703813173d14acec90eb5c65b2
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- service: switch.turn_off
data: {}
target:
device_id: 94ab24703813173d14acec90eb5c65b2
mode: restart
I'll come back to you tomorrow.
2.5 hours livestream just ended.
ME = DEAD 😄
Lol, yeah np.
Interesting your automations look clean
I mean ... We could change them a bit to be device centric but they seem clean enought already 🤔
Can you explain me on this one why you unlock doors (The action) when .. doors are unlocked (The triggers)?
They are not the same doors?
yeah, so it's the same doors. The idea is during the day, if I'm home. If someone unlocks one of the doors by hand, it unlocks the other door.
We have a walk way between the back door and the garage and pretty much, any time you go out the back door, you are going to the garage.
I reworked a bit your automation but I am not really sure it's going to help.
I spend a bit of time looking at them and see no issues of conflicts :/
This is what I was telling you by device centric automation.
HEre are 3 automation that (hopefully 😬 - I did everything by hand - please review before calling it a day) that are doing the same thing.
The only diff is how the logic is splitted.
- One (And only one) controls the Lights : This one a copy paste of yours as it was already the case
- One (and only one) controls the garage door
- ONe (and only one) controls the locks
alias: Walkway Light Controller
description: ""
trigger:
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
- platform: state
entity_id:
- camera.back_door_doorbell
to: recording
- platform: state
entity_id:
- camera.back_door_doorbell
to: streaming
- platform: state
entity_id:
- lock.back_door_lock
- lock.garage_door_lock
to: unlocked
condition:
- condition: sun
after: sunset
before: sunrise
action:
- service: switch.turn_on
data: {}
target:
device_id: 94ab24703813173d14acec90eb5c65b2
- delay:
hours: 0
minutes: 30
seconds: 0
milliseconds: 0
- service: switch.turn_off
data: {}
target:
device_id: 94ab24703813173d14acec90eb5c65b2
mode: restart
alias: Garage Door Controller
description: ""
trigger:
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
condition:
- condition: or
conditions:
- condition: zone
entity_id: person.anna
zone: zone.home
- condition: zone
entity_id: person.jack
zone: zone.home
action:
- service: cover.open_cover
target:
device_id: 6e4d8cfb8b199bed1a423709101c48f5
data: {}
mode: single
alias: Back doors Controller
description: ""
trigger:
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
id: remote_button_short_press
- platform: state
entity_id:
- lock.back_door_lock
- lock.garage_door_lock
from: locked
to: unlocked
id: doors_unlocked
- device_id: 6c749bf184ad7bb7b158e77df31c45b9
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
id: remote_button_double_press
condition: []
action:
- choose:
- conditions:
- condition: or
conditions:
- condition: trigger
id: "remote_button_short_press"
- condition: and
conditions:
- condition: trigger
id: "doors_unlocked"
- condition: sun
before: sunset
after: sunrise
- condition: zone
entity_id: person.jack
zone: zone.home
- condition: and
conditions:
- condition: trigger
id: "remote_button_double_press"
- condition: or
conditions:
- condition: zone
entity_id: person.anna
zone: zone.home
- condition: zone
entity_id: person.jack
zone: zone.home
sequence:
- service: lock.unlock
target:
device_id:
- 72610fb4983a8bc7e66b6dcbb75b5775
- d44f533b648262b6fe1335f05b8fe3af
data: {}
mode: single
But as I said...
I am not confident it's going to solve your issues, your automations seems clean.
You ahve nothing on the logs when you see lights or locks mis behaving?
Thanks, I'll take a look today.
So not really seeing anything with the logs, it's just the device is not responding. In the trace I'm getting the “Stopped because only a single execution is allowed” error.
However, I'm getting that error even when nothing else has been triggered.
Yeah that's more a warning -
It's just one of the executing mode of an automation
We have 4
Single (the default) means that if a second trigger comes while a esquence of action is already running : It;s going to be ignored (But the first sequence of action will continue)
Restart stops the current sequecne of action and restart (That's why you have restart on the light... it's a good idea, your ligths will be on for 30 minutes after the last trigger... if during these 30 minute one of your camera detects something, or if the doorbell rings, it's another 30 minutes added)
queued queues the different sequences of actions, usefull sometimes
parallel runs the sequence of actions in parallel
Finally had time to set everything up. So far so good. Ill let you know if I have any other issues
OH great! With my automations you mean?
yeah. And it did kinda help. But I did also find out that the lock company broke the firmware and it's been removed from Works with HA. SOOOOOOO not really an automation problem. :/