From eb8368a6a96a5280f41af76bb5da5089133af049 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Mon, 21 Feb 2022 23:01:08 +0100 Subject: [PATCH] Add toothbrush automation --- configuration/automations/bathroom-toothbrush.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 configuration/automations/bathroom-toothbrush.yaml diff --git a/configuration/automations/bathroom-toothbrush.yaml b/configuration/automations/bathroom-toothbrush.yaml new file mode 100644 index 0000000..67b1712 --- /dev/null +++ b/configuration/automations/bathroom-toothbrush.yaml @@ -0,0 +1,12 @@ +- id: bathroom-toothbrush-on + alias: '[Bathroom] Toothbrush on' + mode: single + trigger: + - type: powered + platform: device + device_id: 1f92942c1507740a4ecfae30fdb1889e + entity_id: binary_sensor.ble_toothbrush_50338b1ba19f + domain: binary_sensor + action: + - service: script.bathroom_mirror_lights_on + - service: script.bathroom_music_on \ No newline at end of file