mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-08 10:38:44 +00:00
Add master bedroom aqara switch
This commit is contained in:
@@ -38,6 +38,7 @@ The `speech` module uses [partial templates](https://github.com/GeorgeSG/sarah/t
|
||||
|
||||
- [Aqara Temperature and Humidity Sensor](https://www.aqara.com/us/temperature_humidity_sensor.html)
|
||||
- [Aqara Door and Window Sensor](https://www.aqara.com/us/door_and_window_sensor.html)
|
||||
- [Aqara Wireless Mini Switch](https://www.aqara.com/en/smart_wireless_mini_switch.html)
|
||||
|
||||
**Lights:**
|
||||
|
||||
|
||||
@@ -11,10 +11,12 @@ cards:
|
||||
- entity: automation.security_door_opened_while_away
|
||||
- entity: automation.coming_home
|
||||
- entity: automation.leaving_home
|
||||
- entity: automation.master_bedroom_bedside_light_on_bedside_switch_single_click
|
||||
- entity: automation.cube_knock
|
||||
- entity: automation.cube_shake
|
||||
- entity: automation.enable_guest_mode
|
||||
- entity: automation.disable_guest_mode
|
||||
- entity: automation.sleep_toggle_on_switch_tap
|
||||
- entity: automation.enable_sleep_mode
|
||||
- entity: automation.disable_sleep_mode
|
||||
- entity: automation.domestina_automate_start
|
||||
@@ -33,4 +35,5 @@ cards:
|
||||
- entity: sensor.bedroom_right_window_power
|
||||
- entity: sensor.bedroom_weather_power
|
||||
- entity: sensor.cube_power
|
||||
- entity: sensor.master_bedroom_bedside_switch_power
|
||||
show_header_toggle: false
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -21,6 +21,19 @@ light:
|
||||
- light.living_room_all_lights
|
||||
- light.bedside_light
|
||||
|
||||
automation:
|
||||
- id: master_bedroom_bedside_light_on_bedside_switch_single_click
|
||||
alias: "Lighting · Toggle master bedroom bedside light on bedisde switch single click"
|
||||
trigger:
|
||||
- platform: event
|
||||
event_type: zha_event
|
||||
event_data:
|
||||
device_ieee: !secret master_bedroom_bedside_switch_ieee
|
||||
command: single
|
||||
action:
|
||||
- service: light.toggle
|
||||
entity_id: light.bedside_light
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
light.living_room_1:
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
homeassistant:
|
||||
customize:
|
||||
sensor.master_bedroom_bedside_switch_power:
|
||||
friendly_name: Master Bedroom bedside switch power
|
||||
|
||||
sensor.master_bedroom_bedside_switch_multistate_input:
|
||||
friendly_name: Master Bedroom bedside switch raw input
|
||||
Reference in New Issue
Block a user