MQTT Changes for 2022.6

This commit is contained in:
2022-06-01 18:35:48 +03:00
parent adfb2d7161
commit fbbc92014a
19 changed files with 1704 additions and 1879 deletions
@@ -19,264 +19,228 @@ sensor:
- sensor.hallway_weather_humidity
- sensor.guest_bedroom_weather_humidity
# MQTT
# Bedroom weather sensor
- platform: mqtt
name: "Bedroom weather temperature"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Bedroom weather humidity"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Bedroom weather pressure"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- platform: mqtt
name: "Bedroom weather battery"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedroom weather LQI"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
# Bedroom weather sensor
- name: "Bedroom weather temperature"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Bedroom weather humidity"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Bedroom weather pressure"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- name: "Bedroom weather battery"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedroom weather LQI"
state_topic: "z2m_deconz/bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Kitchen weather sensor
- platform: mqtt
name: "Kitchen weather temperature"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Kitchen weather humidity"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Kitchen weather pressure"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- platform: mqtt
name: "Kitchen weather battery"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Kitchen weather LQI"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Kitchen weather sensor
- name: "Kitchen weather temperature"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Kitchen weather humidity"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Kitchen weather pressure"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- name: "Kitchen weather battery"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Kitchen weather LQI"
state_topic: "z2m_deconz/kitchen_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Bathroom weather sensor
- platform: mqtt
name: "Bathroom weather temperature"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Bathroom weather humidity"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Bathroom weather pressure"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- platform: mqtt
name: "Bathroom weather battery"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bathroom weather LQI"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Bathroom weather sensor
- name: "Bathroom weather temperature"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Bathroom weather humidity"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Bathroom weather pressure"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- name: "Bathroom weather battery"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bathroom weather LQI"
state_topic: "z2m_deconz/bathroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Hallway weather sensor
- platform: mqtt
name: "Hallway weather temperature"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Hallway weather humidity"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Hallway weather pressure"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- platform: mqtt
name: "Hallway weather battery"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Hallway weather LQI"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Hallway weather sensor
- name: "Hallway weather temperature"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Hallway weather humidity"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Hallway weather pressure"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- name: "Hallway weather battery"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Hallway weather LQI"
state_topic: "z2m_deconz/hallway_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Guest bedroom weather sensor
- platform: mqtt
name: "Guest bedroom weather temperature"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Guest bedroom weather humidity"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Guest bedroom weather pressure"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- platform: mqtt
name: "Guest bedroom weather battery"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Guest bedroom weather LQI"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Guest bedroom weather sensor
- name: "Guest bedroom weather temperature"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Guest bedroom weather humidity"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Guest bedroom weather pressure"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- name: "Guest bedroom weather battery"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Guest bedroom weather LQI"
state_topic: "z2m_deconz/guest_bedroom_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Terrarium weather sensor
- platform: mqtt
name: "Terrarium weather temperature"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Terrarium weather humidity"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Terrarium weather pressure"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- platform: mqtt
name: "Terrarium weather battery"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Terrarium weather LQI"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Terrarium weather sensor
- name: "Terrarium weather temperature"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Terrarium weather humidity"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Terrarium weather pressure"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "hPa"
device_class: "pressure"
value_template: "{{ value_json.pressure }}"
- name: "Terrarium weather battery"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Terrarium weather LQI"
state_topic: "z2m_deconz/terrarium_weather"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Terrarium weather sensor
- platform: mqtt
name: "Aqara TVOC temperature"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- platform: mqtt
name: "Aqara TVOC humidity"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- platform: mqtt
name: "Aqara TVOC voc"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "ppb"
device_class: "volatile_organic_compounds"
value_template: "{{ value_json.voc }}"
- platform: mqtt
name: "Aqara TVOC battery"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Aqara TVOC LQI"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
device_class: "signal_strength"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
# Terrarium weather sensor
- name: "Aqara TVOC temperature"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "°C"
device_class: "temperature"
value_template: "{{ value_json.temperature }}"
- name: "Aqara TVOC humidity"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "humidity"
value_template: "{{ value_json.humidity }}"
- name: "Aqara TVOC voc"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "ppb"
device_class: "volatile_organic_compounds"
value_template: "{{ value_json.voc }}"
- name: "Aqara TVOC battery"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Aqara TVOC LQI"
state_topic: "z2m_deconz/aqara_tvoc"
availability_topic: "z2m_deconz/bridge/state"
device_class: "signal_strength"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
+87 -97
View File
@@ -13,108 +13,98 @@ group:
- binary_sensor.bedroom_left_window
- binary_sensor.bedroom_right_window
binary_sensor:
- platform: mqtt
name: "Living room right window"
state_topic: "z2m_deconz/living_room_right_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
mqtt:
binary_sensor:
- name: "Living room right window"
state_topic: "z2m_deconz/living_room_right_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
- platform: mqtt
name: "Bedroom left window"
state_topic: "z2m_deconz/bedroom_left_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
- name: "Bedroom left window"
state_topic: "z2m_deconz/bedroom_left_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
- platform: mqtt
name: "Bedroom right window"
state_topic: "z2m_deconz/bedroom_right_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
- name: "Bedroom right window"
state_topic: "z2m_deconz/bedroom_right_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
- platform: mqtt
name: "Kitchen window"
state_topic: "z2m_deconz/kitchen_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
- name: "Kitchen window"
state_topic: "z2m_deconz/kitchen_window"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "window"
sensor:
- name: "Living room right window battery"
state_topic: "z2m_deconz/living_room_right_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Living room right window LQI"
state_topic: "z2m_deconz/living_room_right_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- name: "Bedroom left window battery"
state_topic: "z2m_deconz/bedroom_left_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedroom left window LQI"
state_topic: "z2m_deconz/bedroom_left_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- name: "Bedroom right window battery"
state_topic: "z2m_deconz/bedroom_right_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedroom right window LQI"
state_topic: "z2m_deconz/bedroom_right_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- name: "Kitchen window battery"
state_topic: "z2m_deconz/kitchen_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Kitchen window LQI"
state_topic: "z2m_deconz/kitchen_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
sensor:
- platform: mqtt
name: "Living room right window battery"
state_topic: "z2m_deconz/living_room_right_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Living room right window LQI"
state_topic: "z2m_deconz/living_room_right_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- platform: mqtt
name: "Bedroom left window battery"
state_topic: "z2m_deconz/bedroom_left_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedroom left window LQI"
state_topic: "z2m_deconz/bedroom_left_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- platform: mqtt
name: "Bedroom right window battery"
state_topic: "z2m_deconz/bedroom_right_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedroom right window LQI"
state_topic: "z2m_deconz/bedroom_right_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- platform: mqtt
name: "Kitchen window battery"
state_topic: "z2m_deconz/kitchen_window"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Kitchen window LQI"
state_topic: "z2m_deconz/kitchen_window"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:signal"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
- platform: template
sensors:
open_window_count: