diff --git a/configuration/automations/bathroom-music-button.yaml b/configuration/automations/bathroom-music-button.yaml deleted file mode 100644 index 0be223a..0000000 --- a/configuration/automations/bathroom-music-button.yaml +++ /dev/null @@ -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 \ No newline at end of file diff --git a/zha-devices.yml b/zha-devices.yml index 4c27607..4560c6a 100644 --- a/zha-devices.yml +++ b/zha-devices.yml @@ -57,8 +57,6 @@ devices: id: 'ba7b7736a67d7cbe1243c4600ff7172a' - name: '3D Printer button' id: 'a2ac0fa69738b8e7c5c1b8b8bcf8cdc2' - - name: 'Bathroom Music Button' - id: 'e233cdffb05076ad7bb049581ffa8c9c' - name: 'Bathroom 2' id: '5b73436727bfa8200c7679fc74bf4ed6' - name: 'Bathroom 3'