Files
homeassistant/mqtt.yaml
Victor Alexandrovich Tsyrenschikov 69a164eace EspHome kc868_a8 HomeAssistant
2025-11-21 00:04:37 +05:00

208 lines
6.3 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#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
#KC868-A16
- name: output1-3_KC_868_16
unique_id: F024F95A7038-13
state_topic: "KC868_A16/F024F95A7038/STATE"
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/F024F95A7038/SET"
payload_on: '{"output1":{"value":true},"output3":{"value":true}}'
payload_off: '{"output1":{"value":false},"output3":{"value":false}}'
optimistic: true
qos: 1
retain: true
- name: output2-4_KC_868_16
unique_id: F024F95A7038-24
state_topic: "KC868_A16/F024F95A7038/STATE"
value_template: '{{ value_json.output2.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/F024F95A7038/SET"
payload_on: '{"output2":{"value":true},"output4":{"value":true}}'
payload_off: '{"output2":{"value":false},"output4":{"value":false}}'
optimistic: true
qos: 1
retain: true
#KC868-A16(Кочегарка)
- name: Бойлер
unique_id: baller
state_topic: "KC868_A16/2043A8D14760/STATE"
value_template: '{{ value_json.output1.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/2043A8D14760/SET"
payload_on: '{"output1":{"value":true}}'
payload_off: '{"output1":{"value":false}}'
optimistic: true
qos: 1
retain: true
- name: Насос отопления
unique_id: nasos otoplen
state_topic: "KC868_A16/2043A8D14760/STATE"
value_template: '{{ value_json.output2.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/2043A8D14760/SET"
payload_on: '{"output2":{"value":true}}'
payload_off: '{"output2":{"value":false}}'
optimistic: true
qos: 1
retain: true
- name: Освещение веранда
unique_id: Освещение веранда
state_topic: "KC868_A16/2043A8D14760/STATE"
value_template: '{{ value_json.output3.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/2043A8D14760/SET"
payload_on: '{"output3":{"value":true}}'
payload_off: '{"output3":{"value":false}}'
optimistic: true
qos: 1
retain: true
- name: Освещение улица
unique_id: Освещение улица
state_topic: "KC868_A16/2043A8D14760/STATE"
value_template: '{{ value_json.output4.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/2043A8D14760/SET"
payload_on: '{"output4":{"value":true}}'
payload_off: '{"output4":{"value":false}}'
optimistic: true
qos: 1
retain: true
- name: Питание теплица
unique_id: Питание теплица
state_topic: "KC868_A16/2043A8D14760/STATE"
value_template: '{{ value_json.output5.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/2043A8D14760/SET"
payload_on: '{"output5":{"value":true}}'
payload_off: '{"output5":{"value":false}}'
optimistic: true
qos: 1
retain: true
- name: Розетка на веранде
unique_id: Розетка на веранде
state_topic: "KC868_A16/2043A8D14760/STATE"
value_template: '{{ value_json.output8.value }}'
state_on: true
state_off: false
command_topic: "KC868_A16/2043A8D14760/SET"
payload_on: '{"output8":{"value":true}}'
payload_off: '{"output8":{"value":false}}'
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'