ui-lovelace.yaml
- title: WC
path: wc
cards:
- type: vertical-stack
cards:
- type: markdown
content: >
## Бойлер
- type: entities
show_header_toggle: false
entities:
- entity: group.boiler
icon: mdi:hot-tub
- type: custom:vertical-stack-in-card
cards:
- type: conditional
conditions:
- entity: group.boiler
state: "on"
card:
type: vertical-stack
cards:
- type: markdown
content: >
## Управление бойлером
- type: markdown
content: >
ВКЛ/ОТКЛ утром
- type: entities
# title: ВКЛ/ОТКЛ утром
show_header_toggle: false
entities:
- type: custom:time-input-row
entity: input_datetime.boiler_morning_on
icon: mdi:clock-outline
- type: custom:time-input-row
entity: input_datetime.boiler_morning_off
icon: mdi:clock-outline
- entity: input_datetime.boiler_morning_off_hot
icon: mdi:clock-alert-outline
- type: markdown
content: >
ВКЛ/ОТКЛ вечером
- type: entities
# title: ВКЛ/ОТКЛ Вечером
show_header_toggle: false
entities:
- type: custom:time-input-row
entity: input_datetime.boiler_evening_on
- type: custom:time-input-row
entity: input_datetime.boiler_evening_off
- entity: input_datetime.boiler_evening_off_hot
icon: mdi:clock-alert
- type: markdown
content: >
Ручное ВКЛ/ОТКЛ
- type: entities
show_header_toggle: false
entities:
- entity: switch.wall_plug_158d0001f51c1c
- entity: sensor.load_plug_158d0001f51c1c
name: потребяемая мощность -
- entity: sensor.boiler_energy_spent_day
name: всего днем за текущий месяц -
- entity: sensor.boiler_energy_spent_night
name: всего ночью за текущий месяц -
automation:
- alias: ON_boiler
initial_state: false
trigger:
- platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.boiler_morning_on.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
- platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.boiler_evening_on.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
action:
- service: switch.turn_on
entity_id:
- switch.wall_plug_158d0001f51c1c
- alias: OFF_boiler
initial_state: false
trigger:
- platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.boiler_morning_off.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
- platform: template
value_template: "{{ states('sensor.time') == (states.input_datetime.boiler_evening_off.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}"
action:
- service: switch.turn_off
entity_id:
- switch.wall_plug_158d0001f51c1c
- alias: OFF_boiler_morning_hot
initial_state: false
trigger:
- platform: template
value_te