gONZOOOOx
(gONZOOOOx)
January 22, 2025, 10:21am
1
Hi together,
unfortunately, I do not know how to solve the following problem using a single automation.
I want to open five shutters, we call them shutters 1-4, when the sun rises. So far so good. Now I want the 5th roller shutter to open only when device X is switched on.
This works easily with two automations, but I would like to have this in a single one.
Can anyone help me?
BR
Troon
(Troon)
January 22, 2025, 10:21am
2
Post the YAML code for your two existing automations, formatted correctly .
gONZOOOOx
(gONZOOOOx)
January 22, 2025, 10:30am
3
Automation 1:
alias: Sonnenaufgang
description: ""
mode: single
triggers:
- event: sunrise
offset: "00:00:00"
trigger: sun
conditions: []
actions:
- device_id: ba19b3f7f239513e4d84045133738d80
domain: cover
entity_id: cover.buro
type: set_position
position: 100
- device_id: c657988920e07c7891b84f204883607a
domain: cover
entity_id: cover.kuche
type: set_position
position: 100
- device_id: b7d1457bd4e25eb87848b81ca97426a2
domain: cover
entity_id: cover.esszimmer
type: set_position
position: 100
- device_id: 265ae3bfe1f94f062c678f70c840bcb5
domain: cover
entity_id: cover.terasse
type: set_position
position: 100
Automation 2:
alias: Sonnenaufgang TV
description: ""
mode: single
triggers:
- event: sunrise
offset: "00:00:00"
trigger: sun
conditions:
- condition: device
type: is_off
device_id: dc8ba4dba31f3df8da8f256bf74963d0
entity_id: switch.tv_steckdose_socket_1
domain: switch
actions:
- device_id: 9a60a49cf566edd42859ec1ce079829c
domain: cover
entity_id: cover.wohnzimmer
type: set_position
position: 100
Troon
(Troon)
January 22, 2025, 10:38am
4
alias: Sonnenaufgang
description: ""
mode: single
triggers:
- event: sunrise
offset: "00:00:00"
trigger: sun
conditions: []
actions:
- device_id: ba19b3f7f239513e4d84045133738d80
domain: cover
entity_id: cover.buro
type: set_position
position: 100
- device_id: c657988920e07c7891b84f204883607a
domain: cover
entity_id: cover.kuche
type: set_position
position: 100
- device_id: b7d1457bd4e25eb87848b81ca97426a2
domain: cover
entity_id: cover.esszimmer
type: set_position
position: 100
- device_id: 265ae3bfe1f94f062c678f70c840bcb5
domain: cover
entity_id: cover.terasse
type: set_position
position: 100
- if:
- condition: state
entity_id: switch.tv_steckdose_socket_1
state: 'off'
then:
- device_id: 9a60a49cf566edd42859ec1ce079829c
domain: cover
entity_id: cover.wohnzimmer
type: set_position
position: 100
gONZOOOOx
(gONZOOOOx)
January 22, 2025, 12:15pm
5
thanks, i will try this tomorrow
edit: tried it diretctly. It works fine.
THANKS
1 Like