mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-11-03 19:28:43 +00:00
Wallmote - toggle PC light
This commit is contained in:
@@ -212,7 +212,7 @@ cards:
|
|||||||
icon: mdi:light-switch
|
icon: mdi:light-switch
|
||||||
entities:
|
entities:
|
||||||
- automation.wallmote_living_room_1_tap_toggle_lights
|
- 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_tap_toggle_music
|
||||||
- automation.wallmote_living_room_2_hold_play_music
|
- automation.wallmote_living_room_2_hold_play_music
|
||||||
- automation.wallmote_living_room_3_tap_toggle_main_lights
|
- automation.wallmote_living_room_3_tap_toggle_main_lights
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ automation:
|
|||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.living_room
|
entity_id: light.living_room
|
||||||
|
|
||||||
- alias: Wallmote · Living room · 1 · Hold · Dim lights
|
- alias: Wallmote · Living room · 1 · Toggle · PC Light
|
||||||
trigger:
|
trigger:
|
||||||
platform: event
|
platform: event
|
||||||
event_type: zwave.scene_activated
|
event_type: zwave.scene_activated
|
||||||
@@ -22,16 +22,8 @@ automation:
|
|||||||
scene_id: 1
|
scene_id: 1
|
||||||
scene_data: 1
|
scene_data: 1
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.toggle
|
||||||
entity_id: light.living_room
|
entity_id: light.pc
|
||||||
data_template:
|
|
||||||
brightness: >
|
|
||||||
|
|
||||||
{% if state_attr('light.living_room_main', 'brightness') < 255 %}
|
|
||||||
255
|
|
||||||
{% else %}
|
|
||||||
120
|
|
||||||
{% endif %}
|
|
||||||
|
|
||||||
- alias: Wallmote · Living room · 2 · Tap · Toggle Music
|
- alias: Wallmote · Living room · 2 · Tap · Toggle Music
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
Reference in New Issue
Block a user