mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Better AC dashboard
This commit is contained in:
@@ -101,6 +101,7 @@
|
|||||||
name: Radiator
|
name: Radiator
|
||||||
- entity: climate.toshiba_ac
|
- entity: climate.toshiba_ac
|
||||||
name: AC
|
name: AC
|
||||||
|
- entity: input_number.toshiba_cool_temp
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -174,6 +174,22 @@
|
|||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: climate.toshiba_ac
|
||||||
|
name: AC
|
||||||
|
state:
|
||||||
|
- value: 'off'
|
||||||
|
operator: '!='
|
||||||
|
styles:
|
||||||
|
card:
|
||||||
|
- background-color: var(--primary-color)
|
||||||
|
- color: black
|
||||||
|
icon:
|
||||||
|
- color: black
|
||||||
|
tap_action:
|
||||||
|
action: call-service
|
||||||
|
service: script.toshiba_ac_toggle_cool
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: switch.camera
|
entity: switch.camera
|
||||||
|
|||||||
@@ -26,7 +26,27 @@ climate:
|
|||||||
supported_swing_list:
|
supported_swing_list:
|
||||||
- "off"
|
- "off"
|
||||||
|
|
||||||
|
input_number:
|
||||||
|
toshiba_cool_temp:
|
||||||
|
name: AC cool temp
|
||||||
|
unit_of_measurement: "ºC"
|
||||||
|
min: 18
|
||||||
|
max: 21
|
||||||
|
step: 1
|
||||||
|
icon: mdi:air-conditioner
|
||||||
|
|
||||||
script:
|
script:
|
||||||
|
toshiba_ac_toggle_cool:
|
||||||
|
sequence:
|
||||||
|
- service_template: >-
|
||||||
|
{% if is_state('climate.toshiba_ac', 'off') %}
|
||||||
|
script.toshiba_ac_on_cool
|
||||||
|
{% else %}
|
||||||
|
climate.turn_off
|
||||||
|
{% endif %}
|
||||||
|
data_template:
|
||||||
|
entity_id: "{% if not is_state('climate.toshiba_ac', 'off') %}climate.toshiba_ac{%endif%}"
|
||||||
|
|
||||||
toshiba_ac_on_cool:
|
toshiba_ac_on_cool:
|
||||||
sequence:
|
sequence:
|
||||||
- service: climate.turn_on
|
- service: climate.turn_on
|
||||||
@@ -43,8 +63,8 @@ script:
|
|||||||
- delay: "00:00:01"
|
- delay: "00:00:01"
|
||||||
- service: climate.set_temperature
|
- service: climate.set_temperature
|
||||||
entity_id: climate.toshiba_ac
|
entity_id: climate.toshiba_ac
|
||||||
data:
|
data_template:
|
||||||
temperature: 19
|
temperature: "{{ states('input_number.toshiba_cool_temp') | default(19) }}"
|
||||||
- service: logbook.log
|
- service: logbook.log
|
||||||
data:
|
data:
|
||||||
name: "💨 Climate Module · "
|
name: "💨 Climate Module · "
|
||||||
|
|||||||
@@ -104,14 +104,7 @@ automation:
|
|||||||
scene_id: 4
|
scene_id: 4
|
||||||
scene_data: 0
|
scene_data: 0
|
||||||
action:
|
action:
|
||||||
- service_template: >-
|
- service: script.toshiba_ac_toggle_cool
|
||||||
{% if is_state('climate.toshiba_ac', 'off') %}
|
|
||||||
script.toshiba_ac_on_cool
|
|
||||||
{% else %}
|
|
||||||
climate.turn_off
|
|
||||||
{% endif %}
|
|
||||||
data_template:
|
|
||||||
entity_id: "{% if not is_state('climate.toshiba_ac', 'off') %}climate.toshiba_ac{%endif%}"
|
|
||||||
|
|
||||||
- alias: Wallmote · Living room · 4 · Hold · Toggle Titanium
|
- alias: Wallmote · Living room · 4 · Hold · Toggle Titanium
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
Reference in New Issue
Block a user