From c3c9e5de867bb36955c1f2908d23f2824b9e9e69 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 15 Dec 2023 14:13:12 +0100 Subject: [PATCH] Fix toothbrush automations --- configuration/automations/bathroom-toothbrush.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/configuration/automations/bathroom-toothbrush.yaml b/configuration/automations/bathroom-toothbrush.yaml index 485f0e4..a9ebf10 100644 --- a/configuration/automations/bathroom-toothbrush.yaml +++ b/configuration/automations/bathroom-toothbrush.yaml @@ -2,11 +2,9 @@ alias: '[Bathroom] Toothbrush on' mode: single trigger: - - type: powered - platform: device - device_id: 1f92942c1507740a4ecfae30fdb1889e - entity_id: binary_sensor.ble_toothbrush_toothbrush - domain: binary_sensor + - platform: state + to: running + entity_id: sensor.smart_series_7000_a19f_toothbrush_state action: - service: script.bathroom_mirror_lights_on - service: script.bathroom_music_on @@ -16,7 +14,7 @@ mode: single trigger: - platform: state - entity_id: binary_sensor.ble_toothbrush_toothbrush + entity_id: sensor.smart_series_7000_a19f_toothbrush_state from: unavailable to: 'off' action: