218 lines
5.1 KiB
YAML
218 lines
5.1 KiB
YAML
- alias: Oben Wohnzimmer IR key_red next scene
|
|
trigger:
|
|
platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_red
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
action:
|
|
service: counter.increment
|
|
entity_id: counter.licht_szene_oben_counter
|
|
|
|
|
|
- alias: Oben Wohnzimmer IR key_green prev scene
|
|
trigger:
|
|
platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_green
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
action:
|
|
service: counter.decrement
|
|
entity_id: counter.licht_szene_oben_counter
|
|
|
|
- alias: Oben Wohnzimmer IR Licht heller
|
|
trigger:
|
|
platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_channelup
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
action:
|
|
service: dimmer.dim
|
|
data:
|
|
offset: 30
|
|
entity_id: light.lampe_ersterstock
|
|
|
|
- alias: Oben Wohnzimmer IR Licht dunkler
|
|
trigger:
|
|
platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_channeldown
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
action:
|
|
service: dimmer.dim
|
|
data:
|
|
offset: -30
|
|
entity_id: light.lampe_ersterstock
|
|
|
|
- alias: Oben Wohnzimmer IR Licht aus
|
|
trigger:
|
|
- platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_green
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
- platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_blue
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
- platform: event
|
|
event_type: ir_command_received
|
|
event_data:
|
|
button_name: key_yellow
|
|
repeat_counter: 0
|
|
host: musikserverWohnzimmerOben.fritz.box
|
|
action:
|
|
service: light.turn_off
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
|
|
|
|
# --------------------------------- Szenen -------------------
|
|
|
|
- alias: Oben Szene 0
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 0 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
color_temp: 492
|
|
|
|
|
|
- alias: Oben Szene 1
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 1 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.5794
|
|
- 0.3752
|
|
|
|
|
|
- alias: Oben Szene 2
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 2 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.5535
|
|
- 0.4104
|
|
|
|
- alias: Oben Szene 3
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 3 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.4662
|
|
- 0.3252
|
|
|
|
- alias: Oben Szene 4
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 4 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.3423
|
|
- 0.2252
|
|
|
|
|
|
- alias: Oben Szene 5
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 5 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.346
|
|
- 0.394
|
|
|
|
- alias: Oben Szene 6
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 6 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.4119
|
|
- 0.3671
|
|
|
|
|
|
- alias: Oben Szene 7
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 7 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
xy_color:
|
|
- 0.408
|
|
- 0.517
|
|
|
|
|
|
- alias: Oben Szene 8
|
|
trigger:
|
|
platform: state
|
|
entity_id: counter.licht_szene_oben_counter
|
|
condition:
|
|
condition: template
|
|
value_template: "{{ states('counter.licht_szene_oben_counter')|int % 9 == 8 }}"
|
|
action:
|
|
service: light.turn_on
|
|
data:
|
|
entity_id: light.lampe_ersterstock
|
|
color_temp: 202
|
|
|