From e7db48512ef3545e922aec36ba075a54e705b2a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Grondek?= Date: Sun, 19 May 2024 12:12:43 +0200 Subject: [PATCH] Remove old bathroom music button --- .../automations/bathroom-music-button.yaml | 84 ------------------- zha-devices.yml | 2 - 2 files changed, 86 deletions(-) delete mode 100644 configuration/automations/bathroom-music-button.yaml 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'