44 lines
1.8 KiB
YAML
44 lines
1.8 KiB
YAML
#################################################
|
|
# WATER #
|
|
#################################################
|
|
# NOTE 2026-07-14: MQTT-мост neptun2mqtt отключён, счётчики/клапан
|
|
# переехали на интеграцию neptun_smart_local (entity_id sensor.counter_cold/hot
|
|
# и switch.water_valve переименованы в registry, история сохранена).
|
|
|
|
template:
|
|
sensor:
|
|
- name: counter_hot_outer
|
|
device_class: water
|
|
state_class: total_increasing
|
|
unit_of_measurement: 'm³'
|
|
state: >-
|
|
{% set v = states('sensor.counter_hot') %}
|
|
{{ ((v | float + 88.97) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
|
- name: counter_cold_outer
|
|
device_class: water
|
|
state_class: total_increasing
|
|
unit_of_measurement: 'm³'
|
|
state: >-
|
|
{% set v = states('sensor.counter_cold') %}
|
|
{{ ((v | float + 144.7) | round(2)) if v not in ['unavailable', 'unknown', ''] else 'unavailable' }}
|
|
|
|
binary_sensor:
|
|
- name: dryer_running
|
|
state: "{{ not is_state('sensor.sushilnaia_mash_machine_state', 'stop') }}"
|
|
- name: washer_running
|
|
state: "{{ not is_state('sensor.stiralnaia_mashina_machine_state', 'stop') }}"
|
|
|
|
homeassistant:
|
|
customize:
|
|
switch.water_valve:
|
|
friendly_name: Подача воды
|
|
binary_sensor.dryer_running:
|
|
friendly_name: "Сушильная машина"
|
|
binary_sensor.washer_running:
|
|
friendly_name: "Стиральная машина"
|
|
|
|
sensor.counter_hot_outer:
|
|
friendly_name: "Счетчик Внешний Горячая"
|
|
sensor.counter_cold_outer:
|
|
friendly_name: "Счетчик Внешний Холодная"
|