laurgh
December 26, 2024, 4:35pm
1
I have created a very simple automation in order to switch ON/OFF the lights in my kitchen: It’s kind of a strange combination, I know, but still. So, I have 5 Shelly bulbs, 4 HUE bulbs one Shelly mini switch witch controls an LED light and one HUE socket switch witch controls another LED light. All of them are controlled by one HUE switch (the new one, not the one with I/O). All HUE devices are connected to Home Assistant through the HUE hub, the other ones, Shelly devices, are connected directly through Wi-Fi.
The automation is very simple, if the ON/OFF button is pressed, I am checking if any of the devices (with an OR): if any is ON I am turning the light OFF, if any is OFF I am turning ON.
Everything works fine but the problem is that some times it happens that only part of lights are switching ON or OFF or they are switching ON or OFF all but with a visible delay. I fully understand that there can be a delay caused by the fact that they are connected differently to HA but still, some times it happens that only part of Shelly devices are switched ON or OFF.
Can somebody give me a hint how to improve my automation?
Thanks
Nope. Both a disaster.
Copy your yaml and post it into the forum as preformatted text (</> in the cogwheel menu).
laurgh
December 26, 2024, 5:47pm
6
ok. once again. hope is better…
alias: Intrerupator_Bucatarie
description: ""
triggers:
- trigger: state
entity_id:
- event.bucatarieswitch_1_button_1
attribute: event_type
from: short_release
conditions: []
actions:
- if:
- condition: or
conditions:
- condition: device
type: is_on
device_id: 016bb23356b2635f5301371284379818
entity_id: d30f4a63dbffaeb6e7b140d877459783
domain: light
- condition: device
type: is_on
device_id: fe28871c05e0e577fdd58d13f5e75e09
entity_id: 810527eebb7e55560e8b049eb4b5e9c0
domain: light
- condition: device
type: is_on
device_id: 1e08e6696086445d76eba48bfffb3aad
entity_id: ab182b9f1c037592e5c035f5c2c2551b
domain: light
- condition: device
type: is_on
device_id: 46480790158f9c93f954888eed5928f3
entity_id: 378c58edc99c4c788b8ec689d9ae209b
domain: light
- condition: device
type: is_on
device_id: c2192b5ce871e999676e5b71e44a814c
entity_id: c614353a2bbd07239d8cfda987a2a158
domain: light
- condition: device
type: is_on
device_id: 881ed5654b2f9370d63c1a5e5ec1948a
entity_id: 3123f097c5b5b8b74809d3dccee3634d
domain: light
- condition: device
type: is_on
device_id: f7fa6e76f8f08cd32640c60f74968d10
entity_id: efa453cfeca9534d2a056819031a318b
domain: switch
- condition: device
type: is_on
device_id: 3cf9bd95755b4c13dec8873059074f7b
entity_id: 77ec8749973b0f7a7346ef368830cb3a
domain: light
- condition: device
type: is_on
device_id: ccea7456909c9212e13aab1bc38dce03
entity_id: 43e4c7a5a08cb8db4ea49e124a1fe764
domain: light
- condition: device
type: is_on
device_id: 1cfe67ed269f2beb1a4266a3e9e92667
entity_id: 318ae361052db95da34cdcc8c1f8bad4
domain: light
- condition: device
type: is_on
device_id: ed3b390e5846a375eb80fa8c074f1ebd
entity_id: 6715d23ee0b02d0f1c90702187db24df
domain: light
then:
- type: turn_off
device_id: 016bb23356b2635f5301371284379818
entity_id: d30f4a63dbffaeb6e7b140d877459783
domain: light
- type: turn_off
device_id: fe28871c05e0e577fdd58d13f5e75e09
entity_id: 810527eebb7e55560e8b049eb4b5e9c0
domain: light
- type: turn_off
device_id: 1e08e6696086445d76eba48bfffb3aad
entity_id: ab182b9f1c037592e5c035f5c2c2551b
domain: light
- type: turn_off
device_id: 46480790158f9c93f954888eed5928f3
entity_id: 378c58edc99c4c788b8ec689d9ae209b
domain: light
- type: turn_off
device_id: c2192b5ce871e999676e5b71e44a814c
entity_id: c614353a2bbd07239d8cfda987a2a158
domain: light
- type: turn_off
device_id: 881ed5654b2f9370d63c1a5e5ec1948a
entity_id: 3123f097c5b5b8b74809d3dccee3634d
domain: light
- type: turn_off
device_id: f7fa6e76f8f08cd32640c60f74968d10
entity_id: efa453cfeca9534d2a056819031a318b
domain: switch
- type: turn_off
device_id: 3cf9bd95755b4c13dec8873059074f7b
entity_id: 77ec8749973b0f7a7346ef368830cb3a
domain: light
- type: turn_off
device_id: ccea7456909c9212e13aab1bc38dce03
entity_id: 43e4c7a5a08cb8db4ea49e124a1fe764
domain: light
- type: turn_off
device_id: 1cfe67ed269f2beb1a4266a3e9e92667
entity_id: 318ae361052db95da34cdcc8c1f8bad4
domain: light
- type: turn_off
device_id: ed3b390e5846a375eb80fa8c074f1ebd
entity_id: 6715d23ee0b02d0f1c90702187db24df
domain: light
else:
- type: turn_on
device_id: 016bb23356b2635f5301371284379818
entity_id: d30f4a63dbffaeb6e7b140d877459783
domain: light
brightness_pct: 100
- type: turn_on
device_id: fe28871c05e0e577fdd58d13f5e75e09
entity_id: 810527eebb7e55560e8b049eb4b5e9c0
domain: light
brightness_pct: 100
- type: turn_on
device_id: 1e08e6696086445d76eba48bfffb3aad
entity_id: ab182b9f1c037592e5c035f5c2c2551b
domain: light
brightness_pct: 100
- type: turn_on
device_id: 46480790158f9c93f954888eed5928f3
entity_id: 378c58edc99c4c788b8ec689d9ae209b
domain: light
brightness_pct: 100
- type: turn_on
device_id: c2192b5ce871e999676e5b71e44a814c
entity_id: c614353a2bbd07239d8cfda987a2a158
domain: light
- type: turn_on
device_id: 881ed5654b2f9370d63c1a5e5ec1948a
entity_id: 3123f097c5b5b8b74809d3dccee3634d
domain: light
- type: turn_on
device_id: f7fa6e76f8f08cd32640c60f74968d10
entity_id: efa453cfeca9534d2a056819031a318b
domain: switch
- type: turn_on
device_id: 3cf9bd95755b4c13dec8873059074f7b
entity_id: 77ec8749973b0f7a7346ef368830cb3a
domain: light
- type: turn_on
device_id: ccea7456909c9212e13aab1bc38dce03
entity_id: 43e4c7a5a08cb8db4ea49e124a1fe764
domain: light
- type: turn_on
device_id: 1cfe67ed269f2beb1a4266a3e9e92667
entity_id: 318ae361052db95da34cdcc8c1f8bad4
domain: light
- type: turn_on
device_id: ed3b390e5846a375eb80fa8c074f1ebd
entity_id: 6715d23ee0b02d0f1c90702187db24df
domain: light
mode: single
1 Like
laurgh
December 26, 2024, 5:52pm
7
why the device id and entity id it is shown in that way? I know for sure I did not write it in that way…