1
0

Remove old bathroom music button

This commit is contained in:
Przemek Grondek 2024-05-19 12:12:43 +02:00
parent f090e9c148
commit e7db48512e
2 changed files with 0 additions and 86 deletions

View File

@ -1,84 +0,0 @@
- id: bathroom_music_button_next
alias: '[Bathroom] Music button - next'
mode: single
trigger:
- device_id: e233cdffb05076ad7bb049581ffa8c9c
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_double_press
subtype: button_2
condition:
- condition: state
entity_id: media_player.bathroom
state: playing
action:
- service: media_player.media_next_track
target:
entity_id: media_player.bathroom
- id: bathroom_music_play_playlist
alias: '[Bathroom] Play playlist'
mode: single
trigger:
- device_id: e233cdffb05076ad7bb049581ffa8c9c
domain: zha
platform: device
type: remote_button_long_press
subtype: button
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_long_press
subtype: button_2
action:
- service: media_player.shuffle_set
entity_id: media_player.bathroom
data:
shuffle: true
- service: script.bathroom_music_play
- id: bathroom_music_button_play
alias: '[Bathroom] Music button - play'
mode: single
trigger:
- device_id: e233cdffb05076ad7bb049581ffa8c9c
domain: zha
platform: device
type: remote_button_double_press
subtype: remote_button_double_press
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_double_press
subtype: button_2
condition:
- condition: not
conditions:
- condition: state
entity_id: media_player.bathroom
state: playing
action:
- service: script.bathroom_music_play
- id: bathroom_music_button_pause
alias: '[Bathroom] Music button - play/pause'
description: ''
mode: single
trigger:
- device_id: e233cdffb05076ad7bb049581ffa8c9c
domain: zha
platform: device
type: remote_button_short_press
subtype: remote_button_short_press
- device_id: ea9d3cc90cf5da1108925e50489efce9
domain: zha
platform: device
type: remote_button_alt_short_press
subtype: button_2
action:
- service: script.bathroom_music_toggle

View File

@ -57,8 +57,6 @@ devices:
id: 'ba7b7736a67d7cbe1243c4600ff7172a' id: 'ba7b7736a67d7cbe1243c4600ff7172a'
- name: '3D Printer button' - name: '3D Printer button'
id: 'a2ac0fa69738b8e7c5c1b8b8bcf8cdc2' id: 'a2ac0fa69738b8e7c5c1b8b8bcf8cdc2'
- name: 'Bathroom Music Button'
id: 'e233cdffb05076ad7bb049581ffa8c9c'
- name: 'Bathroom 2' - name: 'Bathroom 2'
id: '5b73436727bfa8200c7679fc74bf4ed6' id: '5b73436727bfa8200c7679fc74bf4ed6'
- name: 'Bathroom 3' - name: 'Bathroom 3'