mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 10:18:44 +00:00
Add master bedroom aqara switch
This commit is contained in:
@@ -24,3 +24,20 @@ automation:
|
||||
to: "off"
|
||||
action:
|
||||
- service: script.routine_waking_up
|
||||
|
||||
- id: sleep_toggle_on_switch_tap
|
||||
alias: Sleep mode · Toggle on bedside switch single click
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_ieee: !secret master_bedroom_bedside_switch_ieee
|
||||
command: double
|
||||
action:
|
||||
- service_template: >-
|
||||
{% if now().strftime('%H')|int > 20 or now().strftime('%H')|int < 6 %}
|
||||
input_boolean.turn_on
|
||||
{% else %}
|
||||
input_boolean.turn_off
|
||||
{% endif %}
|
||||
entity_id: input_boolean.sleep_mode
|
||||
|
||||
Reference in New Issue
Block a user