Files
homeassistant/mqtt.yaml
Victor Alexandrovich Tsyrenschikov f0e4829e14 Climate homeassistant
2025-11-21 00:04:38 +05:00

103 lines
3.0 KiB
YAML

#Shelly-1PM
switch:
- name: Подсветка вентиляции
unique_id: light_ventilation
state_topic: "light_ventilation/status/switch:0"
value_template: "{{ value_json.output }}"
state_on: true
state_off: false
command_topic: "light_ventilation/command/switch:0"
payload_on: "on"
payload_off: "off"
optimistic: true
qos: 1
retain: true
- name: Свет кочегарка
unique_id: light_kochegarka
state_topic: "light_kochegarka/status/switch:0"
value_template: "{{ value_json.output }}"
state_on: true
state_off: false
command_topic: "light_kochegarka/command/switch:0"
payload_on: "on"
payload_off: "off"
optimistic: true
qos: 1
retain: true
sensor:
#Shelly-1PM
- name: Напряжение на 1 этаже
unique_id: shelly1pmg3-sun
state_topic: "light_ventilation/status/switch:0"
value_template: "{{ value_json.voltage }}"
unit_of_measurement: "V"
device_class: 'energy'
- name: Напряжение кочегарка
unique_id: shelly1pmg3-sun_koch
state_topic: "light_kochegarka/status/switch:0"
value_template: "{{ value_json.voltage }}"
unit_of_measurement: "V"
device_class: 'energy'
#Shelly-1PM
- name: Temperature_kitchen_vent
unique_id: shelly1pmg3-temp
state_topic: "light_ventilation/status/switch:0"
value_template: "{{ value_json.temperature.tC }}"
unit_of_measurement: "°C"
device_class: 'temperature'
- name: Temperature_kochegarka
unique_id: shelly1pmg3-temp_kocheg
state_topic: "light_kochegarka/status/switch:0"
value_template: "{{ value_json.temperature.tC }}"
unit_of_measurement: "°C"
device_class: 'temperature'
#Контроллер WeMos D1 Mini на базе ESP8266
- name: gas_kitchen
unique_id: gas_kitchen
state_topic: "gas_kitchen/sensor/smoke"
value_template: "{{ value_json.data.ppm | round(2) if value_json.data.online == true else -1 }}"
unit_of_measurement: "ppm"
device_class: 'gas'
#KC868-A8 Теплица
- name: windows_teplica_status
unique_id: windows_teplica_status
icon: mdi:window-closed
state_topic: "teplica/count/windows"
value_template: >-
{{ value_json.status}}
{{ states('input_number.schetchik_okon') | round(0) }}%
- name: kran_teplica_status
unique_id: kran_teplica_status
icon: mdi:water-pump
state_topic: "teplica/kran"
value_template: '{{ value_json.status }}'
- name: Влажность почвы
unique_id: Teplica_sensor_vlaga
icon: mdi:thermometer
state_topic: "KC868_A8/345F452D7074/STATE"
value_template: '{{ value_json.adc1.value | float | round(2) }}'
device_class: 'humidity'
#KC868-A6
- name: Temperature_kitchen
unique_id: Temperature_kitchen
icon: mdi:thermometer
state_topic: "KC868_A6/2043A8D146FC/STATE"
value_template: "{{ value_json.sensor1.temperature | round(2) }}"
unit_of_measurement: "°C"
device_class: 'temperature'