1
1
home-automation-home-assistant/config/automations/livingroom.yaml

110 Zeilen
2.2 KiB
YAML

- alias: Christmas-Tree on
trigger:
- platform: time
at:
- "05:30:00"
- "16:00:00"
- platform: zone
entity_id:
- person.jenny
zone: zone.home
event: enter
action:
service: light.turn_on
data:
entity_id:
- light.weihnachtsbaum
- alias: Christmas-Tree off morning
trigger:
- platform: time
at:
- "08:00:00"
condition:
condition: not
conditions:
- condition: zone
entity_id: person.jenny
zone: zone.home
action:
service: light.turn_off
data:
entity_id:
- light.weihnachtsbaum
- alias: Christmas-Tree off evening
trigger:
- platform: time
at:
- "23:00:00"
action:
service: light.turn_off
data:
entity_id:
- light.weihnachtsbaum
- alias: Christmas-Tree off Presence
trigger:
- platform: zone
entity_id:
- person.jenny
- person.florian
zone: zone.home
event: leave
condition:
- condition: zone
entity_id:
- person.jenny
- person.florian
zone: zone.not_home
action:
service: light.turn_off
data:
entity_id:
- light.weihnachtsbaum
- alias: Ambilight HDMI
2019-01-16 12:47:15 +00:00
trigger:
platform: state
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
to: 'on'
2019-01-16 12:47:15 +00:00
action:
service: light.turn_on
data:
entity_id: light.ambilight
effect: HDMI
2019-01-16 12:47:15 +00:00
- alias: Musik an
2019-01-16 12:47:15 +00:00
trigger:
platform: state
entity_id: switch.harmony_music_bt
to: 'on'
2019-01-16 12:47:15 +00:00
action:
- service: script.livingroom_music_scenario_on
- alias: Musik aus
trigger:
platform: state
entity_id: switch.harmony_music_bt
to: 'off'
action:
- service: script.livingroom_music_scenario_off
2019-01-16 12:47:15 +00:00
- alias: Ambilight aus
trigger:
platform: state
entity_id: switch.harmony_firetv, switch.harmony_steamlink, switch.harmony_playstation
to: 'off'
action:
service: light.turn_off
data:
entity_id: light.ambilight
- alias: Ambilight aus wird zu an und schwarz
trigger:
platform: state
entity_id: light.ambilight
to: 'off'
2019-01-16 12:47:15 +00:00
action:
- service: script.ambilight_off