mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-06-15 17:12:59 +00:00
Wallmote - toggle PC light
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user