MQTT Changes for 2022.6

This commit is contained in:
2022-06-01 18:34:59 +03:00
parent adfb2d7161
commit fbbc92014a
19 changed files with 1704 additions and 1879 deletions
@@ -7,21 +7,20 @@ input_number:
step: 0.05
icon: mdi:speaker
sensor:
- platform: mqtt
name: "Bathroom switch battery"
state_topic: "z2m_deconz/bathroom_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bathroom switch LQI"
state_topic: "z2m_deconz/bathroom_switch"
availability_topic: "z2m_deconz/bridge/state"
device_class: "signal_strength"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Bathroom switch battery"
state_topic: "z2m_deconz/bathroom_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bathroom switch LQI"
state_topic: "z2m_deconz/bathroom_switch"
availability_topic: "z2m_deconz/bridge/state"
device_class: "signal_strength"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
automation:
- alias: Bathroom · Switch
+18 -20
View File
@@ -1,23 +1,21 @@
light:
- platform: mqtt
name: "Bed LED"
state_topic: "z2m_deconz/bed_led"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: true
schema: "json"
command_topic: "z2m_deconz/bed_led/set"
brightness_scale: 254
sensor:
- platform: mqtt
name: "Bed LED LQI"
state_topic: "z2m_deconz/bed_led"
availability_topic: "z2m_deconz/bridge/state"
device_class: "signal_strength"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
mqtt:
light:
- name: "Bed LED"
state_topic: "z2m_deconz/bed_led"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: true
schema: "json"
command_topic: "z2m_deconz/bed_led/set"
brightness_scale: 254
sensor:
- name: "Bed LED LQI"
state_topic: "z2m_deconz/bed_led"
availability_topic: "z2m_deconz/bridge/state"
device_class: "signal_strength"
unit_of_measurement: "lqi"
value_template: "{{ value_json.linkquality }}"
script:
bed_led_on:
@@ -1,24 +1,22 @@
sensor:
- platform: mqtt
name: "Bedroom Opple action"
state_topic: "z2m_deconz/opple_1"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:gesture-double-tap"
value_template: "{{ value_json.action }}"
- platform: mqtt
name: "Bedroom Opple battery"
state_topic: "z2m_deconz/opple_1"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedroom Opple LQI"
state_topic: "z2m_deconz/opple_1"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Bedroom Opple action"
state_topic: "z2m_deconz/opple_1"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:gesture-double-tap"
value_template: "{{ value_json.action }}"
- name: "Bedroom Opple battery"
state_topic: "z2m_deconz/opple_1"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedroom Opple LQI"
state_topic: "z2m_deconz/opple_1"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
automation:
- alias: Bedroom · Opple
@@ -1,18 +1,17 @@
sensor:
- platform: mqtt
name: "Bedside switch battery"
state_topic: "z2m_deconz/bedside_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedside switch LQI"
state_topic: "z2m_deconz/bedside_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Bedside switch battery"
state_topic: "z2m_deconz/bedside_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedside switch LQI"
state_topic: "z2m_deconz/bedside_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
automation:
- alias: Bedroom · Bedside Switch
@@ -1,18 +1,17 @@
sensor:
- platform: mqtt
name: "Bedroom wall switch battery"
state_topic: "z2m_deconz/bedroom_wall_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedroom wall switch LQI"
state_topic: "z2m_deconz/bedroom_wall_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Bedroom wall switch battery"
state_topic: "z2m_deconz/bedroom_wall_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedroom wall switch LQI"
state_topic: "z2m_deconz/bedroom_wall_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
automation:
@@ -1,62 +1,54 @@
switch:
- platform: mqtt
name: "Desk Outlet"
state_topic: "stat/outlet_1/RESULT"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/outlet_1/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/outlet_1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
mqtt:
switch:
- name: "Desk Outlet"
state_topic: "stat/outlet_1/RESULT"
value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/outlet_1/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/outlet_1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
sensor:
- platform: mqtt
name: "Desk Outlet Energy today"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Today }}'
device_class: power
unit_of_measurement: "kWh"
- platform: mqtt
name: "Desk Outlet Energy yesterday"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Yesterday }}'
device_class: power
unit_of_measurement: "kWh"
- platform: mqtt
name: "Desk Outlet Energy total"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Total }}'
device_class: power
unit_of_measurement: "kWh"
- platform: mqtt
name: "Desk Outlet Energy total start time"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.TotalStartTime }}'
- platform: mqtt
name: "Desk Outlet Power"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Power }}'
device_class: power
unit_of_measurement: "W"
- platform: mqtt
name: "Desk Outlet Voltage"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Voltage }}'
unit_of_measurement: "V"
- platform: mqtt
name: "Desk Outlet Current"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Current }}'
unit_of_measurement: "A"
sensor:
- name: "Desk Outlet Energy today"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Today }}'
device_class: power
unit_of_measurement: "kWh"
- name: "Desk Outlet Energy yesterday"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Yesterday }}'
device_class: power
unit_of_measurement: "kWh"
- name: "Desk Outlet Energy total"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Total }}'
device_class: power
unit_of_measurement: "kWh"
- name: "Desk Outlet Energy total start time"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.TotalStartTime }}'
- name: "Desk Outlet Power"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Power }}'
device_class: power
unit_of_measurement: "W"
- name: "Desk Outlet Voltage"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Voltage }}'
unit_of_measurement: "V"
- name: "Desk Outlet Current"
state_topic: "tele/outlet_1/SENSOR"
value_template: '{{ value_json.ENERGY.Current }}'
unit_of_measurement: "A"
- platform: mqtt
name: "Desk Outlet WiFi"
state_topic: "tele/outlet_1/STATE"
unit_of_measurement: "%"
value_template: "{{value_json.Wifi.RSSI }}"
availability_topic: "tele/outlet_1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: signal_strength
- name: "Desk Outlet WiFi"
state_topic: "tele/outlet_1/STATE"
unit_of_measurement: "%"
value_template: "{{value_json.Wifi.RSSI }}"
availability_topic: "tele/outlet_1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
device_class: signal_strength
@@ -1,18 +1,17 @@
sensor:
- platform: mqtt
name: "Desk switch battery"
state_topic: "z2m_deconz/desk_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Desk switch LQI"
state_topic: "z2m_deconz/desk_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Desk switch battery"
state_topic: "z2m_deconz/desk_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Desk switch LQI"
state_topic: "z2m_deconz/desk_switch"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
automation:
@@ -1,24 +1,22 @@
sensor:
- platform: mqtt
name: "Living room Opple action"
state_topic: "z2m_deconz/opple_2"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:gesture-double-tap"
value_template: "{{ value_json.action }}"
- platform: mqtt
name: "Living room Opple battery"
state_topic: "z2m_deconz/opple_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Living room Opple LQI"
state_topic: "z2m_deconz/opple_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Living room Opple action"
state_topic: "z2m_deconz/opple_2"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:gesture-double-tap"
value_template: "{{ value_json.action }}"
- name: "Living room Opple battery"
state_topic: "z2m_deconz/opple_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Living room Opple LQI"
state_topic: "z2m_deconz/opple_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
automation:
- alias: Living room · Opple
+116 -116
View File
@@ -14,139 +14,139 @@ binary_sensor:
icon_template: >-
{{ is_state("binary_sensor.titanium_ping", "on") | iif(' mdi:desktop-mac-dashboard', 'mdi:desktop-mac') }}
- platform: mqtt
name: "Titanium playing"
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
payload_on: "True"
payload_off: "False"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/media/playing"
# - platform: mqtt
# name: "Titanium playing"
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# payload_on: "True"
# payload_off: "False"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/media/playing"
#
# ─── IOTLink ──────────────────────────────────────────────────────────────
#
sensor:
- platform: mqtt
name: "Titanium uptime"
icon: mdi:clock-check
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/uptime"
# sensor:
# - platform: mqtt
# name: "Titanium uptime"
# icon: mdi:clock-check
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/uptime"
- platform: mqtt
name: "Titanium idle time"
icon: mdi:clock-alert
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/idle-time"
value_template: "{{ value | multiply(1/60) | round(0) }}"
unit_of_measurement: "minutes"
# - platform: mqtt
# name: "Titanium idle time"
# icon: mdi:clock-alert
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/system/idle-time"
# value_template: "{{ value | multiply(1/60) | round(0) }}"
# unit_of_measurement: "minutes"
# CPU
- platform: mqtt
name: "Titanium CPU usage"
icon: mdi:chip
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/cpu/usage"
unit_of_measurement: "%"
# # CPU
# - platform: mqtt
# name: "Titanium CPU usage"
# icon: mdi:chip
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/cpu/usage"
# unit_of_measurement: "%"
# Memory
- platform: mqtt
name: "Titanium memory used"
icon: mdi:memory
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/used"
unit_of_measurement: "MB"
# # Memory
# - platform: mqtt
# name: "Titanium memory used"
# icon: mdi:memory
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/used"
# unit_of_measurement: "MB"
- platform: mqtt
name: "Titanium memory used percent"
icon: mdi:memory
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/usage"
unit_of_measurement: "%"
# - platform: mqtt
# name: "Titanium memory used percent"
# icon: mdi:memory
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/usage"
# unit_of_measurement: "%"
- platform: mqtt
name: "Titanium memory available"
icon: mdi:memory
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/available"
unit_of_measurement: "MB"
# - platform: mqtt
# name: "Titanium memory available"
# icon: mdi:memory
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/available"
# unit_of_measurement: "MB"
- platform: mqtt
name: "Titanium memory total"
icon: mdi:memory
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/total"
unit_of_measurement: "MB"
# - platform: mqtt
# name: "Titanium memory total"
# icon: mdi:memory
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/memory/total"
# unit_of_measurement: "MB"
# C Drive
- platform: mqtt
name: "Titanium C usage"
icon: mdi:harddisk
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/drive-usage"
unit_of_measurement: "%"
# # C Drive
# - platform: mqtt
# name: "Titanium C usage"
# icon: mdi:harddisk
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/drive-usage"
# unit_of_measurement: "%"
- platform: mqtt
name: "Titanium C free space"
icon: mdi:harddisk
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/total-free-space"
unit_of_measurement: "GB"
# - platform: mqtt
# name: "Titanium C free space"
# icon: mdi:harddisk
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/total-free-space"
# unit_of_measurement: "GB"
- platform: mqtt
name: "Titanium C used space"
icon: mdi:harddisk
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/used-space"
unit_of_measurement: "GB"
# - platform: mqtt
# name: "Titanium C used space"
# icon: mdi:harddisk
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/used-space"
# unit_of_measurement: "GB"
- platform: mqtt
name: "Titanium C total space"
icon: mdi:harddisk
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/total-size"
unit_of_measurement: "GB"
# - platform: mqtt
# name: "Titanium C total space"
# icon: mdi:harddisk
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/hard-drive/c/total-size"
# unit_of_measurement: "GB"
# Media
- platform: mqtt
name: "Titanium volume"
icon: mdi:volume-medium
availability_topic: "iotlink/workgroup/titanium/lwt"
payload_available: "ON"
payload_not_available: "OFF"
state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/media/volume"
unit_of_measurement: "%"
# # Media
# - platform: mqtt
# name: "Titanium volume"
# icon: mdi:volume-medium
# availability_topic: "iotlink/workgroup/titanium/lwt"
# payload_available: "ON"
# payload_not_available: "OFF"
# state_topic: "iotlink/workgroup/titanium/windows-monitor/stats/media/volume"
# unit_of_measurement: "%"
camera:
- platform: mqtt
name: "Titanium Screen 0"
topic: "iotlink/workgroup/titanium/windows-monitor/stats/display/0/screen"
- platform: mqtt
name: "Titanium Screen 1"
topic: "iotlink/workgroup/titanium/windows-monitor/stats/display/1/screen"
# camera:
# - platform: mqtt
# name: "Titanium Screen 0"
# topic: "iotlink/workgroup/titanium/windows-monitor/stats/display/0/screen"
# - platform: mqtt
# name: "Titanium Screen 1"
# topic: "iotlink/workgroup/titanium/windows-monitor/stats/display/1/screen"
switch:
- platform: template
@@ -1,23 +1,21 @@
sensor:
- platform: mqtt
name: "Trust remote action"
state_topic: "z2m_deconz/trust_remote"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:gesture-double-tap"
value_template: "{{ value_json.action }}"
- platform: mqtt
name: "Trust remote group"
state_topic: "z2m_deconz/trust_remote"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:lightbulb-group"
value_template: "{{ value_json.action_group }}"
- platform: mqtt
name: "Trust remote LQI"
state_topic: "z2m_deconz/trust_remote"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
mqtt:
sensor:
- name: "Trust remote action"
state_topic: "z2m_deconz/trust_remote"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:gesture-double-tap"
value_template: "{{ value_json.action }}"
- name: "Trust remote group"
state_topic: "z2m_deconz/trust_remote"
availability_topic: "z2m_deconz/bridge/state"
icon: "mdi:lightbulb-group"
value_template: "{{ value_json.action_group }}"
- name: "Trust remote LQI"
state_topic: "z2m_deconz/trust_remote"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
automation:
- alias: Trust remote · Dimming
@@ -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:
@@ -1,72 +1,70 @@
mqtt:
light:
- name: "Hallway main"
state_topic: "z2m_deconz/light_hallway_main"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_hallway_main/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
- name: "Hallway entrance"
state_topic: "z2m_deconz/light_hallway_entrance"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: false
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_hallway_entrance/set"
brightness_scale: 254
- name: "Kitchen main"
state_topic: "z2m_deconz/light_kitchen_main"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_kitchen_main/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
effect: true
effect_list:
- "blink"
- "breathe"
- "okay"
- "channel_change"
- "finish_effect"
- name: "Kitchen secondary"
state_topic: "z2m_deconz/light_kitchen_secondary"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_kitchen_secondary/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
effect: true
effect_list:
- "blink"
- "breathe"
- "okay"
- "channel_change"
- "finish_effect"
light:
- platform: "mqtt"
name: "Hallway main"
state_topic: "z2m_deconz/light_hallway_main"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_hallway_main/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
- platform: "mqtt"
name: "Hallway entrance"
state_topic: "z2m_deconz/light_hallway_entrance"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: false
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_hallway_entrance/set"
brightness_scale: 254
- platform: "mqtt"
name: "Kitchen main"
state_topic: "z2m_deconz/light_kitchen_main"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_kitchen_main/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
effect: true
effect_list:
- "blink"
- "breathe"
- "okay"
- "channel_change"
- "finish_effect"
- platform: "mqtt"
name: "Kitchen secondary"
state_topic: "z2m_deconz/light_kitchen_secondary"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/light_kitchen_secondary/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
effect: true
effect_list:
- "blink"
- "breathe"
- "okay"
- "channel_change"
- "finish_effect"
- platform: group
name: Living room main
entities:
File diff suppressed because it is too large Load Diff
+270 -291
View File
@@ -1,314 +1,293 @@
light:
- platform: mqtt
name: "light_le_1"
state_topic: "tele/light_le_1/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_1/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_1/Dimmer"
brightness_state_topic: "tele/light_le_1/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_1/CT"
color_temp_state_topic: "tele/light_le_1/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
mqtt:
light:
- name: "light_le_1"
state_topic: "tele/light_le_1/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_1/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_1/Dimmer"
brightness_state_topic: "tele/light_le_1/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_1/CT"
color_temp_state_topic: "tele/light_le_1/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- platform: mqtt
name: "light_le_2"
state_topic: "tele/light_le_2/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_2/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_2/Dimmer"
brightness_state_topic: "tele/light_le_2/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_2/CT"
color_temp_state_topic: "tele/light_le_2/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- name: "light_le_2"
state_topic: "tele/light_le_2/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_2/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_2/Dimmer"
brightness_state_topic: "tele/light_le_2/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_2/CT"
color_temp_state_topic: "tele/light_le_2/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- platform: mqtt
name: "light_le_3"
state_topic: "tele/light_le_3/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_3/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_3/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_3/Dimmer"
brightness_state_topic: "tele/light_le_3/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_3/CT"
color_temp_state_topic: "tele/light_le_3/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- name: "light_le_3"
state_topic: "tele/light_le_3/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_3/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_3/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_3/Dimmer"
brightness_state_topic: "tele/light_le_3/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_3/CT"
color_temp_state_topic: "tele/light_le_3/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- platform: mqtt
name: "light_le_4"
state_topic: "tele/light_le_4/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_4/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_4/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_4/Dimmer"
brightness_state_topic: "tele/light_le_4/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_4/CT"
color_temp_state_topic: "tele/light_le_4/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- name: "light_le_4"
state_topic: "tele/light_le_4/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_le_4/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_le_4/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_le_4/Dimmer"
brightness_state_topic: "tele/light_le_4/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
color_temp_command_topic: "cmnd/light_le_4/CT"
color_temp_state_topic: "tele/light_le_4/STATE"
color_temp_value_template: "{{ value_json.CT }}"
qos: 1
retain: false
- platform: mqtt
name: "light_lohas_2"
state_topic: "tele/light_lohas_2/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_lohas_2/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_lohas_2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_lohas_2/Dimmer"
brightness_state_topic: "tele/light_lohas_2/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
hs_command_topic: "cmnd/light_lohas_2/HSBColor"
hs_state_topic: "tele/light_lohas_2/STATE"
hs_value_template: "{{ value_json.HSBColor.split(',')[0:2]|join(',') }}"
color_temp_command_topic: "cmnd/light_lohas_2/CT"
color_temp_state_topic: "tele/light_lohas_2/STATE"
color_temp_value_template: "{{ value_json.CT }}"
# rgb_command_topic: "cmnd/light_lohas_2/Color"
# rgb_state_topic: "tele/light_lohas_2/STATE"
# rgb_command_template: "{{ '%02X%02X%02X' | format(red, green, blue) }}"
# rgb_value_template: "{{ (value_json.Color[0:2]|int(base=16),value_json.Color[2:4]|int(base=16),value_json.Color[4:6]|int(base=16)) | join(',')}}"
qos: 1
retain: false
effect_command_topic: "cmnd/light_lohas_2/Scheme"
effect_state_topic: "tele/light_lohas_2/STATE"
effect_value_template: "{{value_json.Scheme}}"
effect_list: [0, 1, 2, 3, 4]
- name: "light_lohas_2"
state_topic: "tele/light_lohas_2/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_lohas_2/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_lohas_2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_lohas_2/Dimmer"
brightness_state_topic: "tele/light_lohas_2/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
hs_command_topic: "cmnd/light_lohas_2/HSBColor"
hs_state_topic: "tele/light_lohas_2/STATE"
hs_value_template: "{{ value_json.HSBColor.split(',')[0:2]|join(',') }}"
color_temp_command_topic: "cmnd/light_lohas_2/CT"
color_temp_state_topic: "tele/light_lohas_2/STATE"
color_temp_value_template: "{{ value_json.CT }}"
# rgb_command_topic: "cmnd/light_lohas_2/Color"
# rgb_state_topic: "tele/light_lohas_2/STATE"
# rgb_command_template: "{{ '%02X%02X%02X' | format(red, green, blue) }}"
# rgb_value_template: "{{ (value_json.Color[0:2]|int(base=16),value_json.Color[2:4]|int(base=16),value_json.Color[4:6]|int(base=16)) | join(',')}}"
qos: 1
retain: false
effect_command_topic: "cmnd/light_lohas_2/Scheme"
effect_state_topic: "tele/light_lohas_2/STATE"
effect_value_template: "{{value_json.Scheme}}"
effect_list: [0, 1, 2, 3, 4]
- platform: mqtt
name: "light_lohas_6"
state_topic: "tele/light_lohas_6/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_lohas_6/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_lohas_6/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_lohas_6/Dimmer"
brightness_state_topic: "tele/light_lohas_6/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
hs_command_topic: "cmnd/light_lohas_6/HSBColor"
hs_state_topic: "tele/light_lohas_6/STATE"
hs_value_template: "{{ value_json.HSBColor.split(',')[0:2]|join(',') }}"
color_temp_command_topic: "cmnd/light_lohas_6/CT"
color_temp_state_topic: "tele/light_lohas_6/STATE"
color_temp_value_template: "{{ value_json.CT }}"
# rgb_command_topic: "cmnd/light_lohas_6/Color"
# rgb_state_topic: "tele/light_lohas_6/STATE"
# rgb_command_template: "{{ '%02X%02X%02X=' | format(red, green, blue)}}"
# rgb_value_template: "{{ (value_json.Color[0:2]|int(base=16),value_json.Color[2:4]|int(base=16),value_json.Color[4:6]|int(base=16)) | join(',')}}"
qos: 1
retain: false
effect_command_topic: "cmnd/light_lohas_6/Scheme"
effect_state_topic: "tele/light_lohas_6/STATE"
effect_value_template: "{{value_json.Scheme}}"
effect_list: [0, 1, 2, 3, 4]
- name: "light_lohas_6"
state_topic: "tele/light_lohas_6/STATE"
state_value_template: "{{ value_json.POWER }}"
command_topic: "cmnd/light_lohas_6/POWER"
payload_on: "ON"
payload_off: "OFF"
availability_topic: "tele/light_lohas_6/LWT"
payload_available: "Online"
payload_not_available: "Offline"
on_command_type: "brightness"
brightness_command_topic: "cmnd/light_lohas_6/Dimmer"
brightness_state_topic: "tele/light_lohas_6/STATE"
brightness_scale: 100
brightness_value_template: "{{ value_json.Dimmer }}"
hs_command_topic: "cmnd/light_lohas_6/HSBColor"
hs_state_topic: "tele/light_lohas_6/STATE"
hs_value_template: "{{ value_json.HSBColor.split(',')[0:2]|join(',') }}"
color_temp_command_topic: "cmnd/light_lohas_6/CT"
color_temp_state_topic: "tele/light_lohas_6/STATE"
color_temp_value_template: "{{ value_json.CT }}"
# rgb_command_topic: "cmnd/light_lohas_6/Color"
# rgb_state_topic: "tele/light_lohas_6/STATE"
# rgb_command_template: "{{ '%02X%02X%02X=' | format(red, green, blue)}}"
# rgb_value_template: "{{ (value_json.Color[0:2]|int(base=16),value_json.Color[2:4]|int(base=16),value_json.Color[4:6]|int(base=16)) | join(',')}}"
qos: 1
retain: false
effect_command_topic: "cmnd/light_lohas_6/Scheme"
effect_state_topic: "tele/light_lohas_6/STATE"
effect_value_template: "{{value_json.Scheme}}"
effect_list: [0, 1, 2, 3, 4]
- platform: "mqtt"
name: "ledvance_1"
state_topic: "z2m_deconz/ledvance_1"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/ledvance_1/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
- name: "ledvance_1"
state_topic: "z2m_deconz/ledvance_1"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: false
hs: false
schema: "json"
command_topic: "z2m_deconz/ledvance_1/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
sensor:
- platform: mqtt
name: "light_le_1_wifi"
availability_topic: "tele/light_le_1/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_1/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
sensor:
- name: "light_le_1_wifi"
availability_topic: "tele/light_le_1/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_1/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- platform: mqtt
name: "light_le_2_wifi"
availability_topic: "tele/light_le_2/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_2/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- name: "light_le_2_wifi"
availability_topic: "tele/light_le_2/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_2/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- platform: mqtt
name: "light_le_3_wifi"
availability_topic: "tele/light_le_3/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_3/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- name: "light_le_3_wifi"
availability_topic: "tele/light_le_3/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_3/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- platform: mqtt
name: "light_le_4_wifi"
availability_topic: "tele/light_le_4/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_4/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- name: "light_le_4_wifi"
availability_topic: "tele/light_le_4/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_le_4/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- platform: mqtt
name: "light_lohas_2_wifi"
availability_topic: "tele/light_lohas_2/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_lohas_2/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- name: "light_lohas_2_wifi"
availability_topic: "tele/light_lohas_2/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_lohas_2/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- platform: mqtt
name: "light_lohas_6_wifi"
availability_topic: "tele/light_lohas_6/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_lohas_6/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- name: "light_lohas_6_wifi"
availability_topic: "tele/light_lohas_6/LWT"
device_class: signal_strength
payload_available: "Online"
payload_not_available: "Offline"
state_topic: "tele/light_lohas_6/STATE"
unit_of_measurement: "%"
value_template: "{{ value_json.Wifi.RSSI }}"
- platform: "mqtt"
name: "ledvance_1_lqi"
state_topic: "z2m_deconz/ledvance_1"
availability_topic: "z2m_deconz/bridge/state"
value_template: "{{ value_json.linkquality }}"
unit_of_measurement: "lqi"
device_class: "signal_strength"
- name: "ledvance_1_lqi"
state_topic: "z2m_deconz/ledvance_1"
availability_topic: "z2m_deconz/bridge/state"
value_template: "{{ value_json.linkquality }}"
unit_of_measurement: "lqi"
device_class: "signal_strength"
## Switch
## Switch
switch:
- name: "light_le_1_fade"
availability_topic: "tele/light_le_1/LWT"
command_topic: "cmnd/light_le_1/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_1/STATE"
value_template: "{{ value_json.Fade }}"
switch:
- platform: mqtt
name: "light_le_1_fade"
availability_topic: "tele/light_le_1/LWT"
command_topic: "cmnd/light_le_1/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_1/STATE"
value_template: "{{ value_json.Fade }}"
- name: "light_le_2_fade"
availability_topic: "tele/light_le_2/LWT"
command_topic: "cmnd/light_le_2/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_2/STATE"
value_template: "{{ value_json.Fade }}"
- platform: mqtt
name: "light_le_2_fade"
availability_topic: "tele/light_le_2/LWT"
command_topic: "cmnd/light_le_2/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_2/STATE"
value_template: "{{ value_json.Fade }}"
- name: "light_le_3_fade"
availability_topic: "tele/light_le_3/LWT"
command_topic: "cmnd/light_le_3/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_3/STATE"
value_template: "{{ value_json.Fade }}"
- platform: mqtt
name: "light_le_3_fade"
availability_topic: "tele/light_le_3/LWT"
command_topic: "cmnd/light_le_3/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_3/STATE"
value_template: "{{ value_json.Fade }}"
- name: "light_le_4_fade"
availability_topic: "tele/light_le_4/LWT"
command_topic: "cmnd/light_le_4/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_4/STATE"
value_template: "{{ value_json.Fade }}"
- platform: mqtt
name: "light_le_4_fade"
availability_topic: "tele/light_le_4/LWT"
command_topic: "cmnd/light_le_4/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_le_4/STATE"
value_template: "{{ value_json.Fade }}"
- name: "light_lohas_2_fade"
availability_topic: "tele/light_lohas_2/LWT"
command_topic: "cmnd/light_lohas_2/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_lohas_2/STATE"
value_template: "{{ value_json.Fade }}"
- platform: mqtt
name: "light_lohas_2_fade"
availability_topic: "tele/light_lohas_2/LWT"
command_topic: "cmnd/light_lohas_2/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_lohas_2/STATE"
value_template: "{{ value_json.Fade }}"
- name: "light_lohas_3_fade"
availability_topic: "tele/light_lohas_3/LWT"
command_topic: "cmnd/light_lohas_3/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_lohas_3/STATE"
value_template: "{{ value_json.Fade }}"
- platform: mqtt
name: "light_lohas_3_fade"
availability_topic: "tele/light_lohas_3/LWT"
command_topic: "cmnd/light_lohas_3/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_lohas_3/STATE"
value_template: "{{ value_json.Fade }}"
- platform: mqtt
name: "light_lohas_6_fade"
availability_topic: "tele/light_lohas_6/LWT"
command_topic: "cmnd/light_lohas_6/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_lohas_6/STATE"
value_template: "{{ value_json.Fade }}"
- name: "light_lohas_6_fade"
availability_topic: "tele/light_lohas_6/LWT"
command_topic: "cmnd/light_lohas_6/FADE"
icon: mdi:gradient
payload_available: "Online"
payload_not_available: "Offline"
qos: 1
state_topic: "tele/light_lohas_6/STATE"
value_template: "{{ value_json.Fade }}"
automation:
- alias: Lighting · Sync Tasmota states on start-up
+39 -42
View File
@@ -1,43 +1,40 @@
light:
- platform: "mqtt"
name: "neo_1"
state_topic: "z2m_deconz/neo_1"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: true
hs: false
schema: "json"
command_topic: "z2m_deconz/neo_1/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
- platform: "mqtt"
name: "neo_2"
state_topic: "z2m_deconz/neo_2"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: true
hs: false
schema: "json"
command_topic: "z2m_deconz/neo_2/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
mqtt:
light:
- name: "neo_1"
state_topic: "z2m_deconz/neo_1"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: true
hs: false
schema: "json"
command_topic: "z2m_deconz/neo_1/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
- name: "neo_2"
state_topic: "z2m_deconz/neo_2"
availability_topic: "z2m_deconz/bridge/state"
brightness: true
color_temp: true
xy: true
hs: false
schema: "json"
command_topic: "z2m_deconz/neo_2/set"
brightness_scale: 254
max_mireds: 500
min_mireds: 150
sensor:
- platform: "mqtt"
name: "neo_1_lqi"
state_topic: "z2m_deconz/neo_1"
availability_topic: "z2m_deconz/bridge/state"
value_template: "{{ value_json.linkquality }}"
unit_of_measurement: "lqi"
device_class: "signal_strength"
- platform: "mqtt"
name: "pc_lqi"
state_topic: "z2m_deconz/neo_2"
availability_topic: "z2m_deconz/bridge/state"
value_template: "{{ value_json.linkquality }}"
unit_of_measurement: "lqi"
device_class: "signal_strength"
sensor:
- name: "neo_1_lqi"
state_topic: "z2m_deconz/neo_1"
availability_topic: "z2m_deconz/bridge/state"
value_template: "{{ value_json.linkquality }}"
unit_of_measurement: "lqi"
device_class: "signal_strength"
- name: "pc_lqi"
state_topic: "z2m_deconz/neo_2"
availability_topic: "z2m_deconz/bridge/state"
value_template: "{{ value_json.linkquality }}"
unit_of_measurement: "lqi"
device_class: "signal_strength"
+19 -21
View File
@@ -220,29 +220,27 @@ binary_sensor:
payload_off: "disabled"
value_template: '{{ value_json.status }}'
sensor:
- platform: mqtt
name: "Zigbee2MQTT Networkmap"
# if you change base_topic of Zigbee2mqtt, change state_topic accordingly
state_topic: "z2m_deconz/bridge/networkmap/raw"
value_template: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
# again, if you change base_topic of Zigbee2mqtt, change json_attributes_topic accordingly
json_attributes_topic: z2m_deconz/bridge/networkmap/raw
mqtt:
sensor:
- name: "Zigbee2MQTT Networkmap"
# if you change base_topic of Zigbee2mqtt, change state_topic accordingly
state_topic: "z2m_deconz/bridge/networkmap/raw"
value_template: "{{ now().strftime('%Y-%m-%d %H:%M:%S') }}"
# again, if you change base_topic of Zigbee2mqtt, change json_attributes_topic accordingly
json_attributes_topic: z2m_deconz/bridge/networkmap/raw
- platform: mqtt
name: "Zigbee2MQTT Devices count"
availability_topic: "z2m_deconz/bridge/state"
state_topic: "z2m_deconz/bridge/config/devices"
value_template: "{{ value_json | count }}"
icon: "mdi:counter"
- name: "Zigbee2MQTT Devices count"
availability_topic: "z2m_deconz/bridge/state"
state_topic: "z2m_deconz/bridge/config/devices"
value_template: "{{ value_json | count }}"
icon: "mdi:counter"
- platform: mqtt
name: "Router 1 LQI"
state_topic: "z2m_deconz/router_1"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
- name: "Router 1 LQI"
state_topic: "z2m_deconz/router_1"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
script:
zigbee2mqtt_get_device_count:
+46 -51
View File
@@ -5,39 +5,53 @@ group:
- binary_sensor.front_door
- binary_sensor.bedroom_door
mqtt:
sensor:
- name: "Bedroom door battery"
state_topic: "z2m_deconz/bedroom_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Bedroom door LQI"
state_topic: "z2m_deconz/bedroom_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
- name: "Front door battery"
state_topic: "z2m_deconz/front_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Front door LQI"
state_topic: "z2m_deconz/front_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
binary_sensor:
- name: "Bedroom door"
state_topic: "z2m_deconz/bedroom_door"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "door"
- name: "Front door"
state_topic: "z2m_deconz/front_door"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "door"
sensor:
- platform: mqtt
name: "Bedroom door battery"
state_topic: "z2m_deconz/bedroom_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Bedroom door LQI"
state_topic: "z2m_deconz/bedroom_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
- platform: mqtt
name: "Front door battery"
state_topic: "z2m_deconz/front_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Front door LQI"
state_topic: "z2m_deconz/front_door"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
- platform: template
sensors:
open_door_count:
@@ -45,22 +59,3 @@ sensor:
value_template: >-
{% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_doors', 'entity_id')) %}
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
binary_sensor:
- platform: mqtt
name: "Bedroom door"
state_topic: "z2m_deconz/bedroom_door"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "door"
- platform: mqtt
name: "Front door"
state_topic: "z2m_deconz/front_door"
availability_topic: "z2m_deconz/bridge/state"
payload_on: false
payload_off: true
value_template: "{{ value_json.contact }}"
device_class: "door"
+81 -91
View File
@@ -14,99 +14,89 @@ group:
- binary_sensor.hallway_motion_2_occupancy
# - binary_sensor.trisensor_home_security_motion_detection
binary_sensor:
- platform: mqtt
name: "Hallway motion occupancy"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
payload_on: true
payload_off: false
value_template: "{{ value_json.occupancy }}"
device_class: "motion"
- platform: mqtt
name: "Hallway motion 2 occupancy"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
payload_on: true
payload_off: false
value_template: "{{ value_json.occupancy }}"
device_class: "motion"
- platform: mqtt
name: "Kitchen motion occupancy"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
payload_on: true
payload_off: false
value_template: "{{ value_json.occupancy }}"
device_class: "motion"
mqtt:
binary_sensor:
- name: "Hallway motion occupancy"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
payload_on: true
payload_off: false
value_template: "{{ value_json.occupancy }}"
device_class: "motion"
- name: "Hallway motion 2 occupancy"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
payload_on: true
payload_off: false
value_template: "{{ value_json.occupancy }}"
device_class: "motion"
- name: "Kitchen motion occupancy"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
payload_on: true
payload_off: false
value_template: "{{ value_json.occupancy }}"
device_class: "motion"
sensor:
# Hallway Motion
- name: "Hallway motion illuminance"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
device_class: "illuminance"
value_template: "{{ value_json.illuminance_lux }}"
- name: "Hallway motion battery"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Hallway motion LQI"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Hallway Motion 2
- name: "Hallway motion 2 illuminance"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
device_class: "illuminance"
value_template: "{{ value_json.illuminance_lux }}"
- name: "Hallway motion 2 battery"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Hallway motion 2 LQI"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Kitchen Motion
- name: "Kitchen motion illuminance"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
device_class: "illuminance"
value_template: "{{ value_json.illuminance_lux }}"
- name: "Kitchen motion battery"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- name: "Kitchen motion LQI"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
sensor:
# Hallway Motion
- platform: mqtt
name: "Hallway motion illuminance"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
device_class: "illuminance"
value_template: "{{ value_json.illuminance_lux }}"
- platform: mqtt
name: "Hallway motion battery"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Hallway motion LQI"
state_topic: "z2m_deconz/hallway_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Hallway Motion 2
- platform: mqtt
name: "Hallway motion 2 illuminance"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
device_class: "illuminance"
value_template: "{{ value_json.illuminance_lux }}"
- platform: mqtt
name: "Hallway motion 2 battery"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Hallway motion 2 LQI"
state_topic: "z2m_deconz/hallway_motion_2"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
# Kitchen Motion
- platform: mqtt
name: "Kitchen motion illuminance"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
device_class: "illuminance"
value_template: "{{ value_json.illuminance_lux }}"
- platform: mqtt
name: "Kitchen motion battery"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "%"
device_class: "battery"
value_template: "{{ value_json.battery }}"
- platform: mqtt
name: "Kitchen motion LQI"
state_topic: "z2m_deconz/kitchen_motion"
availability_topic: "z2m_deconz/bridge/state"
unit_of_measurement: "lqi"
device_class: "signal_strength"
value_template: "{{ value_json.linkquality }}"
- platform: template
sensors:
active_motion_sensors: