Add master bedroom aqara switch

This commit is contained in:
2020-03-09 20:37:33 +02:00
parent a46273fd83
commit 9e9dce04b0
5 changed files with 41 additions and 0 deletions
+1
View File
@@ -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 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 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:** **Lights:**
+3
View File
@@ -11,10 +11,12 @@ cards:
- entity: automation.security_door_opened_while_away - entity: automation.security_door_opened_while_away
- entity: automation.coming_home - entity: automation.coming_home
- entity: automation.leaving_home - entity: automation.leaving_home
- entity: automation.master_bedroom_bedside_light_on_bedside_switch_single_click
- entity: automation.cube_knock - entity: automation.cube_knock
- entity: automation.cube_shake - entity: automation.cube_shake
- entity: automation.enable_guest_mode - entity: automation.enable_guest_mode
- entity: automation.disable_guest_mode - entity: automation.disable_guest_mode
- entity: automation.sleep_toggle_on_switch_tap
- entity: automation.enable_sleep_mode - entity: automation.enable_sleep_mode
- entity: automation.disable_sleep_mode - entity: automation.disable_sleep_mode
- entity: automation.domestina_automate_start - entity: automation.domestina_automate_start
@@ -33,4 +35,5 @@ cards:
- entity: sensor.bedroom_right_window_power - entity: sensor.bedroom_right_window_power
- entity: sensor.bedroom_weather_power - entity: sensor.bedroom_weather_power
- entity: sensor.cube_power - entity: sensor.cube_power
- entity: sensor.master_bedroom_bedside_switch_power
show_header_toggle: false show_header_toggle: false
+17
View File
@@ -24,3 +24,20 @@ automation:
to: "off" to: "off"
action: action:
- service: script.routine_waking_up - 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
+13
View File
@@ -21,6 +21,19 @@ light:
- light.living_room_all_lights - light.living_room_all_lights
- light.bedside_light - 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: homeassistant:
customize: customize:
light.living_room_1: light.living_room_1:
+7
View File
@@ -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