mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-13 19:54:42 +00:00
Switch to z2m_deconz
This commit is contained in:
@@ -23,36 +23,36 @@ sensor:
|
||||
# Bedroom weather sensor
|
||||
- platform: mqtt
|
||||
name: "Bedroom weather temperature"
|
||||
state_topic: "zigbee2mqtt/bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/bedroom_weather"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
@@ -60,36 +60,36 @@ sensor:
|
||||
# Kitchen weather sensor
|
||||
- platform: mqtt
|
||||
name: "Kitchen weather temperature"
|
||||
state_topic: "zigbee2mqtt/kitchen_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/kitchen_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/kitchen_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/kitchen_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/kitchen_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/kitchen_weather"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
@@ -97,36 +97,36 @@ sensor:
|
||||
# Bathroom weather sensor
|
||||
- platform: mqtt
|
||||
name: "Bathroom weather temperature"
|
||||
state_topic: "zigbee2mqtt/bathroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bathroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bathroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bathroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bathroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/bathroom_weather"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
@@ -134,36 +134,36 @@ sensor:
|
||||
# Hallway weather sensor
|
||||
- platform: mqtt
|
||||
name: "Hallway weather temperature"
|
||||
state_topic: "zigbee2mqtt/hallway_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/hallway_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/hallway_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/hallway_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/hallway_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/hallway_weather"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
@@ -171,36 +171,36 @@ sensor:
|
||||
# Guest bedroom weather sensor
|
||||
- platform: mqtt
|
||||
name: "Guest bedroom weather temperature"
|
||||
state_topic: "zigbee2mqtt/guest_bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/guest_bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/guest_bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/guest_bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/guest_bedroom_weather"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/guest_bedroom_weather"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
@@ -16,8 +16,8 @@ group:
|
||||
binary_sensor:
|
||||
- platform: mqtt
|
||||
name: "Living room right window"
|
||||
state_topic: "zigbee2mqtt/living_room_right_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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 }}"
|
||||
@@ -25,8 +25,8 @@ binary_sensor:
|
||||
|
||||
- platform: mqtt
|
||||
name: "Bedroom left window"
|
||||
state_topic: "zigbee2mqtt/bedroom_left_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/bedroom_left_window"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: false
|
||||
payload_off: true
|
||||
value_template: "{{ value_json.contact }}"
|
||||
@@ -34,8 +34,8 @@ binary_sensor:
|
||||
|
||||
- platform: mqtt
|
||||
name: "Bedroom right window"
|
||||
state_topic: "zigbee2mqtt/bedroom_right_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/bedroom_right_window"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: false
|
||||
payload_off: true
|
||||
value_template: "{{ value_json.contact }}"
|
||||
@@ -43,8 +43,8 @@ binary_sensor:
|
||||
|
||||
- platform: mqtt
|
||||
name: "Kitchen window"
|
||||
state_topic: "zigbee2mqtt/kitchen_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/kitchen_window"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: false
|
||||
payload_off: true
|
||||
value_template: "{{ value_json.contact }}"
|
||||
@@ -53,64 +53,64 @@ binary_sensor:
|
||||
sensor:
|
||||
- platform: mqtt
|
||||
name: "Living room right window battery"
|
||||
state_topic: "zigbee2mqtt/living_room_right_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/living_room_right_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_left_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_left_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_right_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/bedroom_right_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/kitchen_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
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: "zigbee2mqtt/kitchen_window"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/kitchen_window"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
|
||||
@@ -113,20 +113,20 @@ sensor:
|
||||
- platform: mqtt
|
||||
name: "Zigbee2MQTT Networkmap"
|
||||
# if you change base_topic of Zigbee2mqtt, change state_topic accordingly
|
||||
state_topic: "zigbee2mqtt/bridge/networkmap/raw"
|
||||
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: zigbee2mqtt/bridge/networkmap/raw
|
||||
json_attributes_topic: z2m_deconz/bridge/networkmap/raw
|
||||
- platform: mqtt
|
||||
name: "Zigbee2MQTT Devices count"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "zigbee2mqtt/bridge/config/devices"
|
||||
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: "zigbee2mqtt/router_1"
|
||||
availability_topic: "zigbee2mqtt/bridge/state"
|
||||
state_topic: "z2m_deconz/router_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:signal"
|
||||
unit_of_measurement: "lqi"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
@@ -138,7 +138,7 @@ script:
|
||||
sequence:
|
||||
service: mqtt.publish
|
||||
data:
|
||||
topic: "zigbee2mqtt/bridge/config/devices/get"
|
||||
topic: "z2m_deconz/bridge/config/devices/get"
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
|
||||
Reference in New Issue
Block a user