In my opinion, the best way to integrate into Home Assistant without using cloud services is to use this firmware - https://github.com/klausahrenberg/WThermostatBeca
Here is an example of how I integrated all my BHT-002-GBLW thermostats.
In thermostat web interface
climate:
- platform: mqtt
name: thermostat_hallway
modes:
- "heat"
- "auto"
- "off"
initial: 5
mode_command_topic: "home/hallway/thermostat/set/mode"
temperature_command_topic: "home/hallway/thermostat/set/targetTemperature"
mode_state_topic: "home/hallway/thermostat/properties"
mode_state_template: >-
{% if value_json.deviceOn == false %}
off
{% else %}
{% if value_json.schedulesMode == 'auto' %}
auto
{% elif value_json.schedulesMode == 'off' %}
heat
{% endif %}
{% endif %}
current_temperature_topic: "home/hallway/thermostat/properties"
current_temperature_template: "{{ value_json.floorTemperature }}"
temperature_state_topic: "home/hallway/thermostat/properties"
temperature_state_template: "{{ value_json.targetTemperature }}"
json_attributes_topic: "home/hallway/thermostat/properties/schedules"
min_temp: 5
max_temp: 35
temp_step: 0.5
automation:
- alias: "hvac hallway"
trigger:
platform: mqtt
topic: "home/hallway/thermostat/set/mode"
action:
- service: mqtt.publish
data_template:
topic: "home/hallway/thermostat/set/"
payload: >
{% if trigger.payload == "auto" %}
'{"deviceOn":"true", "schedulesMode":"auto"}'
{% elif trigger.payload == "heat" %}
'{"deviceOn":"true", "schedulesMode":"off"}'
{% elif trigger.payload == "off" %}
'{"deviceOn":"false"}'
{% else %}
'{"deviceOn":"false"}'
{% endif %}
switch:
- platform: "mqtt"
name: Lock buttons hallway
icon: mdi:lock
state_topic: "home/hallway/thermostat/properties"
value_template: "{{ value_json.locked }}"
payload_off: "false"
payload_on: "true"
state_off: false
state_on: true
command_topic: "home/hallway/thermostat/set/locked"
- platform: "mqtt"
name: Eco mode hallway
icon: mdi:tree-outline
state_topic: "home/hallway/thermostat/properties"
value_template: "{{ value_json.ecoMode }}"
payload_off: "false"
payload_on: "true"
state_off: false
state_on: true
command_topic: "home/hallway/thermostat/set/ecoMode"
Actually that’s all. The schedule is a bit more complicated since I had to create a lot of variables.
input_number:
work_temp_1:
name: "Темп. 1"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
work_temp_2:
name: "Темп. 2"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
work_temp_3:
name: "Темп. 3"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
work_temp_4:
name: "Темп. 4"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
work_temp_5:
name: "Темп. 5"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
work_temp_6:
name: "Темп. 6"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
saturday_temp_1:
name: "Темп. 1"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
saturday_temp_2:
name: "Темп. 2"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
saturday_temp_3:
name: "Темп. 3"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
saturday_temp_4:
name: "Темп. 4"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
saturday_temp_5:
name: "Темп. 5"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
saturday_temp_6:
name: "Темп. 6"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
sunday_temp_1:
name: "Темп. 1"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
sunday_temp_2:
name: "Темп. 2"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
sunday_temp_3:
name: "Темп. 3"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
sunday_temp_4:
name: "Темп. 4"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
sunday_temp_5:
name: "Темп. 5"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
sunday_temp_6:
name: "Темп. 6"
min: 5
max: 35
step: 1
mode: box
icon: "mdi:temperature-celsius"
unit_of_measurement: "°C"
input_datetime:
work_time_1:
name: Время вкл.
has_date: false
has_time: true
work_time_2:
name: Время вкл.
has_date: false
has_time: true
work_time_3:
name: Время вкл.
has_date: false
has_time: true
work_time_4:
name: Время вкл.
has_date: false
has_time: true
work_time_5:
name: Время вкл.
has_date: false
has_time: true
work_time_6:
name: Время вкл.
has_date: false
has_time: true
saturday_time_1:
name: Время вкл.
has_date: false
has_time: true
saturday_time_2:
name: Время вкл.
has_date: false
has_time: true
saturday_time_3:
name: Время вкл.
has_date: false
has_time: true
saturday_time_4:
name: Время вкл.
has_date: false
has_time: true
saturday_time_5:
name: Время вкл.
has_date: false
has_time: true
saturday_time_6:
name: Время вкл.
has_date: false
has_time: true
sunday_time_1:
name: Время вкл.
has_date: false
has_time: true
sunday_time_2:
name: Время вкл.
has_date: false
has_time: true
sunday_time_3:
name: Время вкл.
has_date: false
has_time: true
sunday_time_4:
name: Время вкл.
has_date: false
has_time: true
sunday_time_5:
name: Время вкл.
has_date: false
has_time: true
sunday_time_6:
name: Время вкл.
has_date: false
has_time: true
input_select:
thermostat:
name: Выберите термостат
options:
- Прихожая
- Ванная
- Балкон
There are many repetitions in this automation, but do not know how to do better.
automation:
- alias: "read status at system startup"
initial_state: true
trigger:
- platform: homeassistant
event: start
action:
- service: mqtt.publish
data_template:
topic: home/hallway/thermostat/properties/schedules
payload: ""
- alias: "reading thermostat status"
initial_state: true
trigger:
platform: state
entity_id: input_select.thermostat
action:
#Work days###########################################################################################
- service: input_number.set_value
data_template:
entity_id: input_number.work_temp_1
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w1t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.work_temp_2
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w2t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.work_temp_3
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w3t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.work_temp_4
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w4t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.work_temp_5
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w5t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.work_temp_6
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w6t') | float }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.work_time_1
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w1h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.work_time_2
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w2h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.work_time_3
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w3h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.work_time_4
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w4h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.work_time_5
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w5h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.work_time_6
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'w6h') ~ ":00" }}
#Saturday###############################################################################################
- service: input_number.set_value
data_template:
entity_id: input_number.sunday_temp_1
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u1t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.sunday_temp_2
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u2t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.sunday_temp_3
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u3t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.sunday_temp_4
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u4t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.sunday_temp_5
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u5t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.sunday_temp_6
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u6t') | float }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.sunday_time_1
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u1h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.sunday_time_2
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u2h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.sunday_time_3
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u3h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.sunday_time_4
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u4h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.sunday_time_5
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u5h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.sunday_time_6
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'u6h') ~ ":00" }}
#Sunday#############################################################################################
- service: input_number.set_value
data_template:
entity_id: input_number.saturday_temp_1
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a1t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.saturday_temp_2
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a2t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.saturday_temp_3
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a3t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.saturday_temp_4
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a4t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.saturday_temp_5
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a5t') | float }}
- service: input_number.set_value
data_template:
entity_id: input_number.saturday_temp_6
value: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a6t') | float }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.saturday_time_1
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a1h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.saturday_time_2
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a2h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.saturday_time_3
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a3h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.saturday_time_4
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a4h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.saturday_time_5
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a5h') ~ ":00" }}
- service: input_datetime.set_datetime
data_template:
entity_id: input_datetime.saturday_time_6
time: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
{% set thermostat = "climate.thermostat_" ~ thermostats[states('input_select.thermostat')] %}
{{ state_attr(thermostat, 'a6h') ~ ":00" }}
script:
set_schedule_thermostats:
alias: "Set Schedule Thermostats"
sequence:
service: mqtt.publish
data_template:
topic: >
{% set thermostats = {'Прихожая': 'hallway', 'Ванная': 'bathroom', 'Балкон': 'balcony'} %}
home/{{thermostats[states('input_select.thermostat')]}}/thermostat/set/schedules
payload: >-
{% set mydict = {
"w1h": state_attr('input_datetime.work_time_1', 'timestamp') | int | timestamp_custom('%H:%M', false),
"w1t": states('input_number.work_temp_1')|int,
"w2h": state_attr('input_datetime.work_time_2', 'timestamp') | int | timestamp_custom('%H:%M', false),
"w2t": states('input_number.work_temp_2')|int,
"w3h": state_attr('input_datetime.work_time_3', 'timestamp') | int | timestamp_custom('%H:%M', false),
"w3t": states('input_number.work_temp_3')|int,
"w4h": state_attr('input_datetime.work_time_4', 'timestamp') | int | timestamp_custom('%H:%M', false),
"w4t": states('input_number.work_temp_4')|int,
"w5h": state_attr('input_datetime.work_time_5', 'timestamp') | int | timestamp_custom('%H:%M', false),
"w5t": states('input_number.work_temp_5')|int,
"w6h": state_attr('input_datetime.work_time_6', 'timestamp') | int | timestamp_custom('%H:%M', false),
"w6t": states('input_number.work_temp_6')|int,
"u1h": state_attr('input_datetime.sunday_time_1', 'timestamp') | int | timestamp_custom('%H:%M', false),
"u1t": states('input_number.sunday_temp_1')|int,
"u2h": state_attr('input_datetime.sunday_time_2', 'timestamp') | int | timestamp_custom('%H:%M', false),
"u2t": states('input_number.sunday_temp_2')|int,
"u3h": state_attr('input_datetime.sunday_time_3', 'timestamp') | int | timestamp_custom('%H:%M', false),
"u3t": states('input_number.sunday_temp_3')|int,
"u4h": state_attr('input_datetime.sunday_time_4', 'timestamp') | int | timestamp_custom('%H:%M', false),
"u4t": states('input_number.sunday_temp_4')|int,
"u5h": state_attr('input_datetime.sunday_time_5', 'timestamp') | int | timestamp_custom('%H:%M', false),
"u5t": states('input_number.sunday_temp_5')|int,
"u6h": state_attr('input_datetime.sunday_time_6', 'timestamp') | int | timestamp_custom('%H:%M', false),
"u6t": states('input_number.sunday_temp_6')|int,
"a1h": state_attr('input_datetime.saturday_time_1', 'timestamp') | int | timestamp_custom('%H:%M', false),
"a1t": states('input_number.saturday_temp_1')|int,
"a2h": state_attr('input_datetime.saturday_time_2', 'timestamp') | int | timestamp_custom('%H:%M', false),
"a2t": states('input_number.saturday_temp_2')|int,
"a3h": state_attr('input_datetime.saturday_time_3', 'timestamp') | int | timestamp_custom('%H:%M', false),
"a3t": states('input_number.saturday_temp_3')|int,
"a4h": state_attr('input_datetime.saturday_time_4', 'timestamp') | int | timestamp_custom('%H:%M', false),
"a4t": states('input_number.saturday_temp_4')|int,
"a5h": state_attr('input_datetime.saturday_time_5', 'timestamp') | int | timestamp_custom('%H:%M', false),
"a5t": states('input_number.saturday_temp_5')|int,
"a6h": state_attr('input_datetime.saturday_time_6', 'timestamp') | int | timestamp_custom('%H:%M', false),
"a6t": states('input_number.saturday_temp_6')|int
} %}
{{ mydict | tojson }}
And the last in the interface, the control of the thermostat itself
cards:
- entity: climate.thermostat_hallway
name: Термостат в прихожей
type: thermostat
- cards:
- entities:
- entity: switch.lock_buttons_hallway
name: Блок кнопок
show_header_toggle: false
type: entities
- entities:
- entity: switch.eco_mode_hallway
name: Эко режим
show_header_toggle: false
type: entities
type: horizontal-stack
type: vertical-stack
Schedule Cards Examples
cards:
- cards:
- entities:
- entity: input_number.work_temp_1
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.work_time_1
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.work_temp_2
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.work_time_2
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.work_temp_3
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.work_time_3
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.work_temp_4
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.work_time_4
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.work_temp_5
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.work_time_5
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.work_temp_6
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.work_time_6
show_header_toggle: false
type: entities
type: horizontal-stack
title: Рабочие дни
type: vertical-stack
cards:
- cards:
- entities:
- entity: script.set_schedule_thermostats
icon: 'mdi:file-move-outline'
name: Задать расписание
- entity: input_select.thermostat
show_header_toggle: false
title: Задание расписания термостатов
type: entities
- cards:
- cards:
- entities:
- entity: input_number.saturday_temp_1
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.saturday_time_1
type: entities
title: Суббота
type: horizontal-stack
- cards:
- entities:
- entity: input_number.saturday_temp_2
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.saturday_time_2
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.saturday_temp_3
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.saturday_time_3
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.saturday_temp_4
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.saturday_time_4
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.saturday_temp_5
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.saturday_time_5
show_header_toggle: false
type: entities
type: horizontal-stack
- cards:
- entities:
- entity: input_number.saturday_temp_6
show_header_toggle: false
type: entities
- entities:
- entity: input_datetime.saturday_time_6
show_header_toggle: false
type: entities
type: horizontal-stack
type: vertical-stack
type: vertical-stack
type: vertical-stack
And same for sunday