mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-07 02:18:43 +00:00
Better AC dashboard
This commit is contained in:
@@ -26,7 +26,27 @@ climate:
|
||||
supported_swing_list:
|
||||
- "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:
|
||||
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:
|
||||
sequence:
|
||||
- service: climate.turn_on
|
||||
@@ -43,8 +63,8 @@ script:
|
||||
- delay: "00:00:01"
|
||||
- service: climate.set_temperature
|
||||
entity_id: climate.toshiba_ac
|
||||
data:
|
||||
temperature: 19
|
||||
data_template:
|
||||
temperature: "{{ states('input_number.toshiba_cool_temp') | default(19) }}"
|
||||
- service: logbook.log
|
||||
data:
|
||||
name: "💨 Climate Module · "
|
||||
|
||||
@@ -104,14 +104,7 @@ automation:
|
||||
scene_id: 4
|
||||
scene_data: 0
|
||||
action:
|
||||
- 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%}"
|
||||
- service: script.toshiba_ac_toggle_cool
|
||||
|
||||
- alias: Wallmote · Living room · 4 · Hold · Toggle Titanium
|
||||
trigger:
|
||||
|
||||
Reference in New Issue
Block a user