From 77f8996a8f3dd5e0299093a50a58c011e1f94335 Mon Sep 17 00:00:00 2001 From: Liam Woodleigh-Hardinge Date: Sat, 29 Jun 2024 17:11:29 +0200 Subject: [PATCH] fix: Delete washing machine binary sensor --- automations/apple_watch.yaml | 14 -------------- includes/binary_sensors.yaml | 12 ------------ ui-lovelace.yaml | 11 ----------- 3 files changed, 37 deletions(-) diff --git a/automations/apple_watch.yaml b/automations/apple_watch.yaml index c2b672d..0b50504 100644 --- a/automations/apple_watch.yaml +++ b/automations/apple_watch.yaml @@ -234,17 +234,3 @@ title: "Dishwasher done! ๐Ÿงผ" message: |+ Dishes are clean! - -- alias: "Apple Watch: Washing machine finished notification" - mode: single - description: "" - trigger: - - platform: state - entity_id: binary_sensor.washing_machine - to: "off" - action: - - service: notify.all_iphones - data: - title: "Washing done! ๐Ÿ‘•" - message: |+ - Get clothes out of the washing machine! diff --git a/includes/binary_sensors.yaml b/includes/binary_sensors.yaml index 3b65429..c6998b4 100644 --- a/includes/binary_sensors.yaml +++ b/includes/binary_sensors.yaml @@ -15,18 +15,6 @@ mdi:shower {%- endif -%} - washing_machine: - friendly_name: Washing machine - value_template: > - {{ state_attr('switch.power_sensor_washing_machine', 'current_power_w') | float(0) > 3 }} - delay_off: "00:05:00" - icon_template: > - {% if is_state("binary_sensor.washing_machine", "on") %} - mdi:washing-machine - {% else %} - mdi:washing-machine-off - {% endif %} - motion_detected: friendly_name: Any motion detected value_template: > diff --git a/ui-lovelace.yaml b/ui-lovelace.yaml index e382256..f729215 100644 --- a/ui-lovelace.yaml +++ b/ui-lovelace.yaml @@ -163,17 +163,6 @@ views: type: custom:button-card type: horizontal-stack - cards: - - color: auto - entity: binary_sensor.washing_machine - name: >- - [[[ if (entity.state == "on") return "Washing machine on"; else - return "Washing machine off" ]]] - styles: - card: - - font-size: 12px - - font-weight: bold - - height: 70px - type: custom:button-card - color: auto icon: mdi:home-export-outline name: Leave Home