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: