diff --git a/config/lovelace/home_dashboard/living_room_dashboard.yaml b/config/lovelace/home_dashboard/living_room_dashboard.yaml index 14b1c9b..5a9f192 100644 --- a/config/lovelace/home_dashboard/living_room_dashboard.yaml +++ b/config/lovelace/home_dashboard/living_room_dashboard.yaml @@ -40,10 +40,6 @@ styles: card: - background-image: url("/local/images/people/maya.jpg") - - - type: custom:button-card - template: v3_badge - entity: device_tracker.maya_phone_1 - type: custom:button-card template: v3_badge_temp entity: sensor.multisensor_6_temperature @@ -55,6 +51,9 @@ - type: custom:button-card template: v3_badge entity: sensor.aqara_tvoc_voc + - type: custom:button-card + template: v3_badge_icon + entity: binary_sensor.toshiba_ac_conditions_met - type: custom:button-card template: v3_badge_icon entity: binary_sensor.living_room_right_window diff --git a/config/packages/devices/living_room/toshiba_ac.yaml b/config/packages/devices/living_room/toshiba_ac.yaml index be34909..a66ac3d 100644 --- a/config/packages/devices/living_room/toshiba_ac.yaml +++ b/config/packages/devices/living_room/toshiba_ac.yaml @@ -57,6 +57,9 @@ input_number: template: - binary_sensor: - name: Toshiba AC conditions met + icon: > + {{ is_state('binary_sensor.toshiba_ac_conditions_met', 'on') | iif('mdi:home-thermometer', 'mdi:home-thermometer-outline') }} + state: > {% set temp_matching = states('sensor.multisensor_6_temperature')|float >= states('input_number.toshiba_trigger_temp')|float %} {% set outside_temp_high = states('sensor.dark_sky_apparent_temperature')|float + 2 >= states('input_number.toshiba_trigger_temp')|float %}