Introduce magic cube modes

This commit is contained in:
2020-04-25 01:03:12 +03:00
parent a219a4f398
commit f49aed614f
5 changed files with 120 additions and 68 deletions
-37
View File
@@ -21,40 +21,3 @@ script:
entity_id: media_player.master_bedroom
source: "{{ playlist | default('Evening Chill') }}"
automation:
- alias: Music · Play/Pause on Magic Cube Knock
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: !secret magic_cube_ieee
command: knock
action:
- service: media_player.media_play_pause
data:
entity_id: media_player.living_room
- alias: Music · Volume down on Magic Cube rotate left
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: !secret magic_cube_ieee
command: rotate_left
action:
- service: media_player.volume_down
data:
entity_id: media_player.living_room
- alias: Music · Volume up on Magic Cube rotate right
trigger:
platform: event
event_type: zha_event
event_data:
device_ieee: !secret magic_cube_ieee
command: rotate_right
action:
- service: media_player.volume_up
data:
entity_id: media_player.living_room