Add toshiba conditions met to livingroom dashboard

This commit is contained in:
2022-06-02 14:02:26 +03:00
parent d2ec1e77c9
commit dfd50314ed
2 changed files with 6 additions and 4 deletions

View File

@@ -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

View File

@@ -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 %}