Wallmote - toggle PC light

This commit is contained in:
2021-05-26 11:00:23 +03:00
parent 22b5c79787
commit 88b7af2655
2 changed files with 4 additions and 12 deletions
@@ -212,7 +212,7 @@ cards:
icon: mdi:light-switch
entities:
- automation.wallmote_living_room_1_tap_toggle_lights
- automation.wallmote_living_room_1_hold_dim_lights
- automation.wallmote_living_room_1_toggle_pc_light
- automation.wallmote_living_room_2_tap_toggle_music
- automation.wallmote_living_room_2_hold_play_music
- automation.wallmote_living_room_3_tap_toggle_main_lights
@@ -12,7 +12,7 @@ automation:
- service: light.toggle
entity_id: light.living_room
- alias: Wallmote · Living room · 1 · Hold · Dim lights
- alias: Wallmote · Living room · 1 · Toggle · PC Light
trigger:
platform: event
event_type: zwave.scene_activated
@@ -22,16 +22,8 @@ automation:
scene_id: 1
scene_data: 1
action:
- service: light.turn_on
entity_id: light.living_room
data_template:
brightness: >
{% if state_attr('light.living_room_main', 'brightness') < 255 %}
255
{% else %}
120
{% endif %}
- service: light.toggle
entity_id: light.pc
- alias: Wallmote · Living room · 2 · Tap · Toggle Music
trigger: