Created
September 9, 2020 15:08
-
-
Save Frdnspnzr/b8c2bf7aefb315c0eba9bd7be168f0d6 to your computer and use it in GitHub Desktop.
I just debugged these automations I copied from the living room for about twenty minutes and wondered why the light seemingly acted randomly. 😬
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- id: light_dining_room_main_normal | |
alias: "Esszimmer - Licht auf Normal schalten" | |
trigger: | |
- platform: state | |
entity_id: input_select.state_dining_room | |
from: 'An' | |
action: | |
- service: light.turn_on | |
data: | |
entity_id: light.dining_room_main | |
brightness_pct: 100 | |
transition: 3 | |
- id: light_dining_room_main_dimmed | |
alias: "Esszimmer - Licht auf Gedämmt schalten" | |
trigger: | |
- platform: state | |
entity_id: input_select.state_dining_room | |
from: 'Gedaemmt' | |
action: | |
- service: light.turn_on | |
data: | |
entity_id: light.dining_room_main | |
brightness_pct: 75 | |
transition: 3 | |
- id: light_dining_room_main_occupied_day | |
alias: "Esszimmer - Licht auf Bewohnt schalten (Tag)" | |
trigger: | |
- platform: state | |
entity_id: input_select.state_dining_room | |
from: 'Bewohnt' | |
- platform: state | |
entity_id: sun.sun | |
to: 'below_horizon' | |
condition: | |
- condition: not | |
conditions: | |
- condition: state | |
entity_id: input_select.state_house | |
state: 'Nacht' | |
- condition: state | |
entity_id: sun.sun | |
state: 'below_horizon' | |
action: | |
- service: light.turn_on | |
data: | |
entity_id: light.dining_room_main | |
brightness_pct: 50 | |
transition: 3 | |
- id: light_dining_room_main_occupied_night | |
alias: "Esszimmer - Licht auf Bewohnt schalten (Nacht)" | |
trigger: | |
- platform: state | |
entity_id: input_select.state_dining_room | |
from: 'Bewohnt' | |
condition: | |
- condition: state | |
entity_id: input_select.state_house | |
state: 'Nacht' | |
action: | |
- service: light.turn_on | |
data: | |
entity_id: light.dining_room_main | |
brightness_pct: 10 | |
transition: 3 | |
- id: light_dining_room_main_off | |
alias: "Esszimmer - Licht ausschalten" | |
trigger: | |
- platform: state | |
entity_id: input_select.state_dining_room | |
from: 'Leer' | |
action: | |
- service: light.turn_off | |
data: | |
entity_id: light.dining_room_main | |
transition: 3 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment