mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-08 10:38:44 +00:00
More bedroom scenes and switch automation
This commit is contained in:
@@ -0,0 +1,39 @@
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
name: "Bedroom wall switch battery"
|
||||
state_topic: "z2m_deconz/bedroom_wall_switch"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
unit_of_measurement: "%"
|
||||
device_class: "battery"
|
||||
value_template: "{{ value_json.battery }}"
|
||||
- platform: mqtt
|
||||
name: "Bedroom wall switch LQI"
|
||||
state_topic: "z2m_deconz/bedroom_wall_switch"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
|
||||
automation:
|
||||
- alias: Bedroom · Aqara Switch
|
||||
use_blueprint:
|
||||
path: aqara_switch.yaml
|
||||
input:
|
||||
z2m_topic: "z2m_deconz/bedroom_wall_switch"
|
||||
click:
|
||||
- service: script.apply_bedroom_pink
|
||||
- service: script.music_play
|
||||
data:
|
||||
playlist: "Songs for a Romantic Evening"
|
||||
volume: 0.1
|
||||
shuffle: false
|
||||
- service: script.sonos_volume_10
|
||||
|
||||
double_click:
|
||||
- service: scene.turn_on
|
||||
entity_id: scene.bedroom_default
|
||||
|
||||
hold:
|
||||
- service: media_player.media_play_pause
|
||||
entity_id: media_player.master_bedroom
|
||||
Reference in New Issue
Block a user