first commit

This commit is contained in:
Your Name
2024-01-11 15:10:51 +03:00
commit eddf07c652
602 changed files with 67154 additions and 0 deletions
@@ -0,0 +1,8 @@
mqtt:
sensor:
- name: "bed_button"
state_topic: "ZigbeeBD0C/bed_button"
icon: "mdi:toggle-switch"
value_template: "{{ value_json.action }}"
json_attributes_topic: "ZigbeeBD0C/bed_button"
@@ -0,0 +1,12 @@
mqtt:
sensor:
- state_topic: "ZigbeeBD0C/co2_table"
name: mainroom_co2
unit_of_measurement: "ppm"
value_template: "{{ value_json.co2 }}"
json_attributes_topic: "ZigbeeBD0C/co2_table"
homeassistant:
customize:
sensor.mainroom_co2:
friendly_name: CO2 Гостиная
@@ -0,0 +1,12 @@
mqtt:
sensor:
- state_topic: "ZigbeeBD0C/bed_co2"
name: co2_mainroom_bed
unit_of_measurement: "ppm"
value_template: "{{ value_json.co2 }}"
json_attributes_topic: "ZigbeeBD0C/bed_co2"
homeassistant:
customize:
sensor.co2_mainroom_bed:
friendly_name: CO2 Гостиная Кровать
+6
View File
@@ -0,0 +1,6 @@
mqtt:
sensor:
- name: "cube"
state_topic: "ZigbeeBD0C/cube"
value_template: "{{ value_json.side }}"
json_attributes_topic: "ZigbeeBD0C/cube"
@@ -0,0 +1,14 @@
mqtt:
binary_sensor:
- name: door_window_sensor_bath
state_topic: "ZigbeeBD0C/door_window_sensor_bath"
value_template: "{{ value_json.contact }}"
device_class: door
payload_on: false
payload_off: true
json_attributes_topic: "ZigbeeBD0C/door_window_sensor_bath"
homeassistant:
customize:
binary_sensor.door_window_sensor_bath:
friendly_name: Дверь (Ванна)
@@ -0,0 +1,8 @@
mqtt:
sensor:
- name: "doorbell_button"
state_topic: "ZigbeeBD0C/doorbell_button"
icon: "mdi:toggle-switch"
value_template: "{{ value_json.action }}"
json_attributes_topic: "ZigbeeBD0C/doorbell_button"
@@ -0,0 +1,6 @@
mqtt:
sensor:
- name: "ikea_dimmer"
state_topic: "ZigbeeBD0C/ikea_dimmer"
value_template: "{{ value_json.level }}"
json_attributes_topic: "ZigbeeBD0C/ikea_dimmer"
@@ -0,0 +1,28 @@
mqtt:
switch:
- name: light_bath
state_topic: "zigbee2mqtt/kitchen_toilet_switch"
payload_off: "OFF"
payload_on: "ON"
value_template: "{{ value_json.state_left }}"
command_topic: "zigbee2mqtt/kitchen_toilet_switch/set/state_left"
- name: light_kitchen
state_topic: "zigbee2mqtt/kitchen_toilet_switch"
payload_off: "OFF"
payload_on: "ON"
value_template: "{{ value_json.state_right }}"
command_topic: "zigbee2mqtt/kitchen_toilet_switch/set/state_right"
input_boolean:
bath_light_control:
name: Контроль света в ванной
initial: on
homeassistant:
customize:
switch.light_bath:
friendly_name: Свет (Ванна)
switch.light_kitchen:
friendly_name: Свет (Кухня)
@@ -0,0 +1,18 @@
mqtt:
switch:
- name: plug_light_hall
state_topic: "zigbee2mqtt/plug_light_hall"
payload_off: "OFF"
payload_on: "ON"
value_template: "{{ value_json.state }}"
command_topic: "zigbee2mqtt/plug_light_hall/set/state"
input_boolean:
hall_light_control:
name: Контроль света в прихожей
initial: on
homeassistant:
customize:
switch.plug_light_hall:
friendly_name: Свет прихожая
@@ -0,0 +1,8 @@
mqtt:
light:
- name: "lamp1"
state_topic: "ZigbeeBD0C/lamp1"
brightness: true
schema: "json"
command_topic: "ZigbeeBD0C/lamp1/set"
brightness_scale: 254
@@ -0,0 +1,15 @@
mqtt:
binary_sensor:
- name: motion_sensor_bath
state_topic: "ZigbeeBD0C/motion_sensor_bath"
value_template: "{{ value_json.occupancy }}"
device_class: occupancy
off_delay: 10
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/motion_sensor_bath"
homeassistant:
customize:
binary_sensor.motion_sensor_bath:
friendly_name: Движение (Ванна)
@@ -0,0 +1,15 @@
mqtt:
binary_sensor:
- name: motion_sensor_hall
state_topic: "ZigbeeBD0C/motion_sensor_hall"
value_template: "{{ value_json.occupancy }}"
device_class: occupancy
off_delay: 10
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/motion_sensor_hall"
homeassistant:
customize:
binary_sensor.motion_sensor_hall:
friendly_name: Движение (холл)
@@ -0,0 +1,15 @@
mqtt:
binary_sensor:
- name: motion_sensor_kitchen
state_topic: "ZigbeeBD0C/motion_sensor_kitchen"
value_template: "{{ value_json.occupancy }}"
device_class: occupancy
off_delay: 10
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/motion_sensor_kitchen"
homeassistant:
customize:
binary_sensor.motion_sensor_kitchen:
friendly_name: Движение (Кухня)
@@ -0,0 +1,15 @@
mqtt:
binary_sensor:
- name: motion_sensor_kitchen2
state_topic: "ZigbeeBD0C/motion_sensor_kitchen2"
value_template: "{{ value_json.occupancy }}"
device_class: occupancy
off_delay: 10
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/motion_sensor_kitchen2"
homeassistant:
customize:
binary_sensor.motion_sensor_kitchen2:
friendly_name: Движение (Кухня2)
@@ -0,0 +1,37 @@
mqtt:
sensor:
- name: "uptime_sls"
state_topic: "ZigbeeBD0C/bridge/config"
value_template: "{{ value_json.Uptime }}"
- name: "sls_state"
state_topic: "ZigbeeBD0C/bridge/state"
value_template: "{{ value }}"
json_attributes_topic: "ZigbeeBD0C/bridge/config"
- name: "sls_FreeMem"
state_topic: "ZigbeeBD0C/bridge/config"
value_template: "{{ (value_json.FreeMem | int) }}"
unit_of_measurement: 'b'
- name: "sls_Uptime"
state_topic: "ZigbeeBD0C/bridge/config"
value_template: "{{ (value_json.Uptime | int) }}"
unit_of_measurement: 'sec'
- name: "sls_permit_join"
state_topic: "ZigbeeBD0C/bridge/config"
value_template: "{{ value_json.permit_join }}"
light:
- name: gateway
availability_topic: "ZigbeeBD0C/bridge/state"
command_topic: "ZigbeeBD0C/led"
rgb_command_topic: "ZigbeeBD0C/led"
rgb_command_template: >-
{
"mode": "manual",
"hex": "#{{ '%02x%02x%02x' | format(red, green, blue) }}"
}
on_command_type: "brightness"
payload_off: '{"mode": "auto"}'
@@ -0,0 +1,21 @@
mqtt:
sensor:
- state_topic: "ZigbeeBD0C/temperature_humidity_bath"
name: temperature_bath
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_bath"
- name: humidity_bath
state_topic: "ZigbeeBD0C/temperature_humidity_bath"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_bath"
homeassistant:
customize:
sensor.temperature_bath:
friendly_name: Температура (Ванна)
sensor.humidity_bath:
friendly_name: Влажность (Ванна)
@@ -0,0 +1,21 @@
mqtt:
sensor:
- state_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
name: temperature_mainroom
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
- name: humidity_mainroom
state_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_mainroom"
homeassistant:
customize:
sensor.temperature_outside:
friendly_name: Температура (гостиная)
sensor.humidity_outside:
friendly_name: Влажность (гостиная)
@@ -0,0 +1,21 @@
mqtt:
sensor:
- state_topic: "ZigbeeBD0C/temperature_humidity_outside"
name: temperature_outside
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_outside"
- name: humidity_outside
state_topic: "ZigbeeBD0C/temperature_humidity_outside"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
json_attributes_topic: "ZigbeeBD0C/temperature_humidity_outside"
homeassistant:
customize:
sensor.temperature_outside:
friendly_name: Температура (улица)
sensor.humidity_outside:
friendly_name: Влажность (улица)
@@ -0,0 +1,14 @@
mqtt:
binary_sensor:
- name: water_leak_sensor_bath_bath
state_topic: "ZigbeeBD0C/water_leak_sensor_bath_bath"
value_template: "{{ value_json.water_leak }}"
device_class: moisture
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/water_leak_sensor_bath_bath"
homeassistant:
customize:
binary_sensor.water_leak_sensor_bath_bath:
friendly_name: Под ванной (протечка)
@@ -0,0 +1,14 @@
mqtt:
binary_sensor:
- name: water_leak_sensor_bath_valve
state_topic: "ZigbeeBD0C/water_leak_sensor_bath_valve"
value_template: "{{ value_json.water_leak }}"
device_class: moisture
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/water_leak_sensor_bath_valve"
homeassistant:
customize:
binary_sensor.water_leak_sensor_bath_valve:
friendly_name: Ванна Раковина (протечка)
@@ -0,0 +1,14 @@
mqtt:
binary_sensor:
- name: water_leak_sensor_kitchen_washer
state_topic: "ZigbeeBD0C/water_leak_sensor_kitchen_washer"
value_template: "{{ value_json.water_leak }}"
device_class: moisture
payload_on: true
payload_off: false
json_attributes_topic: "ZigbeeBD0C/water_leak_sensor_kitchen_washer"
homeassistant:
customize:
binary_sensor.water_leak_sensor_kitchen_washer:
friendly_name: Кухня стиралка (протечка)
@@ -0,0 +1,7 @@
mqtt:
switch:
- name: "permit_join"
state_topic: "zigbee2mqtt/bridge/config/permit_join"
command_topic: "zigbee2mqtt/bridge/config/permit_join"
payload_on: "true"
payload_off: "false"