mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-08 18:48:44 +00:00
Switch to zigbee2mqtt auto discovery
This commit is contained in:
@@ -21,9 +21,9 @@ alexa:
|
||||
- media_player.living_room
|
||||
- media_player.bathroom
|
||||
|
||||
- binary_sensor.front_door
|
||||
- binary_sensor.living_room_right_window
|
||||
- binary_sensor.bedroom_right_window
|
||||
- binary_sensor.front_door_contact
|
||||
- binary_sensor.living_room_right_window_contact
|
||||
- binary_sensor.bedroom_right_window_contact
|
||||
|
||||
- sensor.bedroom_weather_temperature
|
||||
- sensor.bedroom_weather_humidity
|
||||
@@ -60,11 +60,11 @@ alexa:
|
||||
name: "Living room Sonos"
|
||||
media_player.bathroom:
|
||||
name: "Bathroom Sonos"
|
||||
binary_sensor.front_door:
|
||||
binary_sensor.front_door_contact:
|
||||
name: "Front door"
|
||||
binary_sensor.living_room_right_window:
|
||||
binary_sensor.living_room_right_window_contact:
|
||||
name: "Living room window"
|
||||
binary_sensor.bedroom_right_window:
|
||||
binary_sensor.bedroom_right_window_contact:
|
||||
name: "Bedroom window"
|
||||
sensor.bedroom_weather_temperature:
|
||||
name: "Bedroom temperature"
|
||||
|
||||
@@ -16,10 +16,10 @@ automation:
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id:
|
||||
- binary_sensor.kitchen_window
|
||||
- binary_sensor.living_room_right_window
|
||||
- binary_sensor.bedroom_left_window
|
||||
- binary_sensor.bedroom_right_window
|
||||
- binary_sensor.kitchen_window_contact
|
||||
- binary_sensor.living_room_right_window_contact
|
||||
- binary_sensor.bedroom_left_window_contact
|
||||
- binary_sensor.bedroom_right_window_contact
|
||||
from: "off"
|
||||
to: "on"
|
||||
condition:
|
||||
@@ -40,10 +40,10 @@ automation:
|
||||
condition:
|
||||
- condition: state
|
||||
entity_id:
|
||||
- binary_sensor.kitchen_window
|
||||
- binary_sensor.living_room_right_window
|
||||
- binary_sensor.bedroom_left_window
|
||||
- binary_sensor.bedroom_right_window
|
||||
- binary_sensor.kitchen_window_contact
|
||||
- binary_sensor.living_room_right_window_contact
|
||||
- binary_sensor.bedroom_left_window_contact
|
||||
- binary_sensor.bedroom_right_window_contact
|
||||
state: "on"
|
||||
action:
|
||||
- service: script.say
|
||||
|
||||
@@ -18,229 +18,3 @@ sensor:
|
||||
- sensor.kitchen_weather_humidity
|
||||
- sensor.hallway_weather_humidity
|
||||
- sensor.guest_bedroom_weather_humidity
|
||||
|
||||
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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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
|
||||
- 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 }}"
|
||||
|
||||
@@ -103,12 +103,12 @@ automation:
|
||||
- alias: Climate · Heating · Link living room radiator to windows
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.living_room_right_window
|
||||
entity_id: binary_sensor.living_room_right_window_contact
|
||||
action:
|
||||
- choose:
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.living_room_right_window
|
||||
entity_id: binary_sensor.living_room_right_window_contact
|
||||
state: "on"
|
||||
- condition: not
|
||||
conditions:
|
||||
@@ -125,7 +125,7 @@ automation:
|
||||
domain: climate
|
||||
- conditions:
|
||||
- condition: state
|
||||
entity_id: binary_sensor.living_room_right_window
|
||||
entity_id: binary_sensor.living_room_right_window_contact
|
||||
state: "off"
|
||||
- condition: state
|
||||
entity_id: climate.living_room_radiator_mode
|
||||
|
||||
@@ -2,113 +2,33 @@ group:
|
||||
all_windows:
|
||||
name: All windows
|
||||
entities:
|
||||
- binary_sensor.living_room_right_window
|
||||
- binary_sensor.bedroom_left_window
|
||||
- binary_sensor.bedroom_right_window
|
||||
- binary_sensor.kitchen_window
|
||||
- binary_sensor.living_room_right_window_contact
|
||||
- binary_sensor.bedroom_left_window_contact
|
||||
- binary_sensor.bedroom_right_window_contact
|
||||
- binary_sensor.kitchen_window_contact
|
||||
|
||||
bedroom_windows:
|
||||
name: Bedroom windows
|
||||
entities:
|
||||
- binary_sensor.bedroom_left_window
|
||||
- binary_sensor.bedroom_right_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"
|
||||
|
||||
- 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 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: "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 }}"
|
||||
- binary_sensor.bedroom_left_window_contact
|
||||
- binary_sensor.bedroom_right_window_contact
|
||||
|
||||
sensor:
|
||||
- platform: template
|
||||
sensors:
|
||||
open_window_count:
|
||||
friendly_name: Open window count
|
||||
friendly_name: Open windozw count
|
||||
value_template: >-
|
||||
{% set entityStates = states | selectattr('entity_id', 'in', state_attr('group.all_windows', 'entity_id')) %}
|
||||
{{ entityStates | selectattr('state', 'eq', 'on') | list | count | int }}
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
binary_sensor.living_room_right_window_contact:
|
||||
device_class: window
|
||||
binary_sensor.bedroom_left_window_contact:
|
||||
device_class: window
|
||||
binary_sensor.bedroom_right_window_contact:
|
||||
device_class: window
|
||||
binary_sensor.kitchen_window_contact:
|
||||
device_class: window
|
||||
|
||||
@@ -95,7 +95,7 @@ automation:
|
||||
- alias: Lighting · Bedroom · Door open
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.bedroom_door
|
||||
entity_id: binary_sensor.bedroom_door_contact
|
||||
to: "on"
|
||||
condition:
|
||||
and:
|
||||
|
||||
@@ -20,7 +20,7 @@ automation:
|
||||
- service: light.turn_on
|
||||
entity_id:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
- light.master_bedroom_main
|
||||
- light.hallway
|
||||
- light.kitchen
|
||||
|
||||
@@ -1,71 +1,3 @@
|
||||
# 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"
|
||||
# availability_topic: "z2m_deconz/bridge/state"
|
||||
# brightness: true
|
||||
# brightness_scale: 254
|
||||
# color_mode: true
|
||||
# command_topic: "z2m_deconz/light_kitchen_secondary/set"
|
||||
# effect: true
|
||||
# effect_list:
|
||||
# - "blink"
|
||||
# - "breathe"
|
||||
# - "okay"
|
||||
# - "channel_change"
|
||||
# - "finish_effect"
|
||||
# - "stop_effect"
|
||||
# json_attributes_topic: "z2m_deconz/light_kitchen_secondary"
|
||||
# max_mireds: 454
|
||||
# min_mireds: 153
|
||||
# schema: "json"
|
||||
# state_topic: "z2m_deconz/light_kitchen_secondary"
|
||||
# supported_color_modes: ["color_temp"]
|
||||
|
||||
|
||||
light:
|
||||
- platform: group
|
||||
name: Living room main
|
||||
@@ -79,7 +11,7 @@ light:
|
||||
name: Living room ceiling
|
||||
entities:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
|
||||
- platform: group
|
||||
name: Living room ambient
|
||||
@@ -150,7 +82,7 @@ light:
|
||||
name: On after dark
|
||||
entities:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
- light.master_bedroom_main
|
||||
- light.bedside
|
||||
- light.hallway
|
||||
@@ -159,7 +91,7 @@ light:
|
||||
name: Ceiling
|
||||
entities:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
- light.master_bedroom_main
|
||||
- light.kitchen
|
||||
- light.hallway
|
||||
@@ -261,7 +193,7 @@ homeassistant:
|
||||
light.living_room_main:
|
||||
icon: bha:ceiling-spot-lamp
|
||||
|
||||
light.pc:
|
||||
light.hue_ambiance_7:
|
||||
friendly_name: PC
|
||||
icon: bha:outdoor-lamp-variant
|
||||
|
||||
|
||||
@@ -1,616 +0,0 @@
|
||||
mqtt:
|
||||
light:
|
||||
- name: "hue_white_1"
|
||||
state_topic: "z2m_deconz/hue_white_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: false
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_white_1/set"
|
||||
brightness_scale: 254
|
||||
|
||||
- name: "hue_white_2"
|
||||
state_topic: "z2m_deconz/hue_white_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: false
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_white_2/set"
|
||||
brightness_scale: 254
|
||||
|
||||
- name: "hue_white_5"
|
||||
state_topic: "z2m_deconz/hue_white_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: false
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_white_5/set"
|
||||
brightness_scale: 254
|
||||
|
||||
- name: "hue_white_6"
|
||||
state_topic: "z2m_deconz/hue_white_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: false
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_white_6/set"
|
||||
brightness_scale: 254
|
||||
|
||||
|
||||
- name: "hue_ambiance_1"
|
||||
state_topic: "z2m_deconz/hue_ambiance_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_1/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_ambiance_2"
|
||||
state_topic: "z2m_deconz/hue_ambiance_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_2/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_ambiance_3"
|
||||
state_topic: "z2m_deconz/hue_ambiance_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_3/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_ambiance_4"
|
||||
state_topic: "z2m_deconz/hue_ambiance_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_4/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_ambiance_5"
|
||||
state_topic: "z2m_deconz/hue_ambiance_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_5/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_ambiance_6"
|
||||
state_topic: "z2m_deconz/hue_ambiance_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_6/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "pc"
|
||||
state_topic: "z2m_deconz/hue_ambiance_7"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_7/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_ambiance_8"
|
||||
state_topic: "z2m_deconz/hue_ambiance_8"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_ambiance_8/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- name: "hue_1"
|
||||
state_topic: "z2m_deconz/hue_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: true
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_1/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
- "stop_effect"
|
||||
|
||||
- name: "hue_2"
|
||||
state_topic: "z2m_deconz/hue_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: true
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_2/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
- "stop_effect"
|
||||
|
||||
- name: "hue_3"
|
||||
state_topic: "z2m_deconz/hue_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: true
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_3/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
- "stop_effect"
|
||||
|
||||
- name: "hue_4"
|
||||
state_topic: "z2m_deconz/hue_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: true
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_4/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
- "stop_effect"
|
||||
|
||||
- name: "hue_5"
|
||||
state_topic: "z2m_deconz/hue_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: true
|
||||
hs: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/hue_5/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
effect: true
|
||||
effect_list:
|
||||
- "blink"
|
||||
- "breathe"
|
||||
- "okay"
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
- "stop_effect"
|
||||
|
||||
|
||||
sensor:
|
||||
- name: "hue_white_1_lqi"
|
||||
state_topic: "z2m_deconz/hue_white_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_white_1_update_state"
|
||||
state_topic: "z2m_deconz/hue_white_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_white_2_lqi"
|
||||
state_topic: "z2m_deconz/hue_white_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_white_2_update_state"
|
||||
state_topic: "z2m_deconz/hue_white_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_white_5_lqi"
|
||||
state_topic: "z2m_deconz/hue_white_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_white_5_update_state"
|
||||
state_topic: "z2m_deconz/hue_white_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
|
||||
- name: "hue_white_6_lqi"
|
||||
state_topic: "z2m_deconz/hue_white_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_white_6_update_state"
|
||||
state_topic: "z2m_deconz/hue_white_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
|
||||
- name: "hue_ambiance_1_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_1_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_ambiance_2_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_2_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_ambiance_3_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_3_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_ambiance_4_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_4_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_ambiance_5_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_5_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_ambiance_6_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_6_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "pc_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_7"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "pc_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_7"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_ambiance_8_lqi"
|
||||
state_topic: "z2m_deconz/hue_ambiance_8"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_ambiance_8_update_state"
|
||||
state_topic: "z2m_deconz/hue_ambiance_8"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_1_lqi"
|
||||
state_topic: "z2m_deconz/hue_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_1_update_state"
|
||||
state_topic: "z2m_deconz/hue_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_2_lqi"
|
||||
state_topic: "z2m_deconz/hue_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_2_update_state"
|
||||
state_topic: "z2m_deconz/hue_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_3_lqi"
|
||||
state_topic: "z2m_deconz/hue_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_3_update_state"
|
||||
state_topic: "z2m_deconz/hue_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_4_lqi"
|
||||
state_topic: "z2m_deconz/hue_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_4_update_state"
|
||||
state_topic: "z2m_deconz/hue_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- name: "hue_5_lqi"
|
||||
state_topic: "z2m_deconz/hue_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
- name: "hue_5_update_state"
|
||||
state_topic: "z2m_deconz/hue_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
|
||||
binary_sensor:
|
||||
- name: "pc_update_available"
|
||||
state_topic: "z2m_deconz/hue_white_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_white_2_update_available"
|
||||
state_topic: "z2m_deconz/hue_white_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_white_5_update_available"
|
||||
state_topic: "z2m_deconz/hue_white_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_white_6_update_available"
|
||||
state_topic: "z2m_deconz/hue_white_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
|
||||
|
||||
- name: "hue_ambiance_1_update_available"
|
||||
state_topic: "z2m_deconz/hue_ambiance_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_ambiance_2_update_available"
|
||||
state_topic: "z2m_deconz/hue_ambiance_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_ambiance_3_update_available"
|
||||
state_topic: "z2m_deconz/hue_ambiance_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_ambiance_4_update_available"
|
||||
state_topic: "z2m_deconz/hue_ambiance_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_ambiance_5_update_available"
|
||||
state_topic: "z2m_deconz/hue_ambiance_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_ambiance_6_update_available"
|
||||
state_topic: "z2m_deconz/hue_ambiance_6"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
|
||||
|
||||
- name: "hue_1_update_available"
|
||||
state_topic: "z2m_deconz/hue_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_2_update_available"
|
||||
state_topic: "z2m_deconz/hue_2"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_3_update_available"
|
||||
state_topic: "z2m_deconz/hue_3"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_4_update_available"
|
||||
state_topic: "z2m_deconz/hue_4"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
- name: "hue_5_update_available"
|
||||
state_topic: "z2m_deconz/hue_5"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
payload_on: true
|
||||
payload_off: false
|
||||
value_template: "{{ value_json.update_available}}"
|
||||
@@ -1,29 +1,5 @@
|
||||
mqtt:
|
||||
light:
|
||||
- name: "tradfri_1"
|
||||
state_topic: "z2m_deconz/tradfri_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/tradfri_1/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
|
||||
- name: "tradfri_large"
|
||||
state_topic: "z2m_deconz/tradfri_large"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
brightness: true
|
||||
color_temp: true
|
||||
xy: false
|
||||
schema: "json"
|
||||
command_topic: "z2m_deconz/tradfri_large/set"
|
||||
brightness_scale: 254
|
||||
max_mireds: 500
|
||||
min_mireds: 150
|
||||
|
||||
- name: "light_le_1"
|
||||
state_topic: "tele/light_le_1/STATE"
|
||||
state_value_template: "{{ value_json.POWER }}"
|
||||
@@ -124,10 +100,6 @@ mqtt:
|
||||
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"
|
||||
@@ -155,10 +127,6 @@ mqtt:
|
||||
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"
|
||||
@@ -166,34 +134,7 @@ mqtt:
|
||||
effect_value_template: "{{value_json.Scheme}}"
|
||||
effect_list: [0, 1, 2, 3, 4]
|
||||
|
||||
- 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:
|
||||
- name: "tradfri_1_lqi"
|
||||
state_topic: "z2m_deconz/tradfri_1"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
|
||||
- name: "tradfri_large_lqi"
|
||||
state_topic: "z2m_deconz/tradfri_large"
|
||||
availability_topic: "z2m_deconz/bridge/state"
|
||||
value_template: "{{ value_json.linkquality }}"
|
||||
unit_of_measurement: "lqi"
|
||||
device_class: "signal_strength"
|
||||
|
||||
- name: "light_le_1_wifi"
|
||||
availability_topic: "tele/light_le_1/LWT"
|
||||
device_class: signal_strength
|
||||
@@ -248,14 +189,7 @@ mqtt:
|
||||
unit_of_measurement: "%"
|
||||
value_template: "{{ value_json.Wifi.RSSI }}"
|
||||
|
||||
- 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"
|
||||
@@ -338,98 +272,3 @@ automation:
|
||||
data:
|
||||
topic: "cmnd/tasmotas/STATE"
|
||||
payload: ""
|
||||
|
||||
- alias: Lighting · Sync Zigbee states on start-up
|
||||
initial_state: true
|
||||
trigger:
|
||||
platform: homeassistant
|
||||
event: start
|
||||
action:
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_white_1/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_white_2/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_white_5/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_white_6/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_1/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_2/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_3/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_4/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_5/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_6/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_7/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_ambiance_8/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_1/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_2/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_3/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_4/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/hue_5/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/tradfri_1/get"
|
||||
payload: ""
|
||||
# - service: mqtt.publish
|
||||
# data:
|
||||
# topic: "z2m_deconz/light_hallway_main/get"
|
||||
# payload: ""
|
||||
# - service: mqtt.publish
|
||||
# data:
|
||||
# topic: "z2m_deconz/light_hallway_entrance/get"
|
||||
# payload: ""
|
||||
# - service: mqtt.publish
|
||||
# data:
|
||||
# topic: "z2m_deconz/light_kitchen_main/get"
|
||||
# payload: ""
|
||||
# - service: mqtt.publish
|
||||
# data:
|
||||
# topic: "z2m_deconz/light_kitchen_secondary/get"
|
||||
# payload: ""
|
||||
|
||||
@@ -1,34 +0,0 @@
|
||||
# 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:
|
||||
# - 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"
|
||||
@@ -14,7 +14,7 @@ automation:
|
||||
to: "on"
|
||||
entity_id:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
- light.master_bedroom_main
|
||||
- light.kitchen_main
|
||||
- light.kitchen_secondary
|
||||
@@ -68,8 +68,8 @@ automation:
|
||||
light.living_room_main:
|
||||
state: "{{ states('light.living_room_main') }}"
|
||||
color_temp: "{{ trigger.to_state }}"
|
||||
light.pc:
|
||||
state: "{{ states('light.pc') }}"
|
||||
light.hue_ambiance_7:
|
||||
state: "{{ states('light.hue_ambiance_7') }}"
|
||||
color_temp: "{{ trigger.to_state }}"
|
||||
light.master_bedroom_main:
|
||||
state: "{{ states('light.master_bedroom_main') }}"
|
||||
|
||||
@@ -23,7 +23,7 @@ automation:
|
||||
scene_id: plex_before_start
|
||||
snapshot_entities:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
- light.living_room_ambient_main
|
||||
- light.light_lohas_2
|
||||
- light.hallway_entrance
|
||||
@@ -37,7 +37,7 @@ automation:
|
||||
- light.living_room_main
|
||||
- service: light.turn_off
|
||||
entity_id:
|
||||
- light.pc
|
||||
- light.hue_ambiance_7
|
||||
- light.living_room_ambient_main
|
||||
- light.light_lohas_2
|
||||
- light.hallway_main
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
# - service: cover.close_cover
|
||||
# entity_id: cover.living_room
|
||||
# - service: light.turn_on
|
||||
# entity_id: light.pc
|
||||
# entity_id: light.hue_ambiance_7
|
||||
# - service: media_player.media_stop
|
||||
# entity_id:
|
||||
# - media_player.living_room
|
||||
|
||||
@@ -23,8 +23,8 @@ homekit:
|
||||
- light.living_room
|
||||
- light.living_room_main
|
||||
- light.living_room_ambient
|
||||
- light.pc
|
||||
- binary_sensor.living_room_right_window
|
||||
- light.hue_ambiance_7
|
||||
- binary_sensor.living_room_right_window_contact
|
||||
- climate.living_room_radiator_mode
|
||||
- climate.toshiba_ac
|
||||
- cover.living_room
|
||||
@@ -40,9 +40,9 @@ homekit:
|
||||
- light.master_bedroom
|
||||
- light.master_bedroom_main
|
||||
- light.bedside
|
||||
- binary_sensor.bedroom_door
|
||||
- binary_sensor.bedroom_left_window
|
||||
- binary_sensor.bedroom_right_window
|
||||
- binary_sensor.bedroom_door_contact
|
||||
- binary_sensor.bedroom_left_window_contact
|
||||
- binary_sensor.bedroom_right_window_contact
|
||||
- climate.bedroom_radiator_mode
|
||||
- fan.philips_airpurifier
|
||||
- media_player.master_bedroom
|
||||
@@ -57,7 +57,7 @@ homekit:
|
||||
- light.kitchen_secondary
|
||||
- climate.kitchen_radiator_mode
|
||||
- binary_sensor.kitchen_motion_occupancy
|
||||
- binary_sensor.kitchen_window
|
||||
- binary_sensor.kitchen_window_contact
|
||||
- input_number.brita_remaining_liters
|
||||
- script.brita_pour_water
|
||||
- sensor.kitchen_weather_humidity
|
||||
@@ -81,9 +81,9 @@ homekit:
|
||||
name: Living Room Main
|
||||
light.living_room_ambient:
|
||||
name: Living Room Ambient
|
||||
light.pc:
|
||||
light.hue_ambiance_7:
|
||||
name: PC Light
|
||||
binary_sensor.living_room_right_window:
|
||||
binary_sensor.living_room_right_window_contact:
|
||||
linked_battery_sensor: sensor.living_room_right_window_battery
|
||||
low_battery_threshold: 20
|
||||
name: Living Room Window
|
||||
@@ -121,15 +121,15 @@ homekit:
|
||||
name: Bedroom Air Quality
|
||||
sensor.purifier_allergens:
|
||||
name: Bedroom Allergens
|
||||
binary_sensor.bedroom_door:
|
||||
binary_sensor.bedroom_door_contact:
|
||||
linked_battery_sensor: sensor.bedroom_door_battery
|
||||
low_battery_threshold: 20
|
||||
name: Bedroom Door
|
||||
binary_sensor.bedroom_left_window:
|
||||
binary_sensor.bedroom_left_window_contact:
|
||||
linked_battery_sensor: sensor.bedroom_left_window_battery
|
||||
low_battery_threshold: 20
|
||||
name: Bedroom Left Window
|
||||
binary_sensor.bedroom_right_window:
|
||||
binary_sensor.bedroom_right_window_contact:
|
||||
linked_battery_sensor: sensor.bedroom_right_window_battery
|
||||
low_battery_threshold: 20
|
||||
name: Bedroom Right Window
|
||||
@@ -152,7 +152,7 @@ homekit:
|
||||
linked_battery_sensor: sensor.kitchen_motion_battery
|
||||
low_battery_threshold: 20
|
||||
name: Kitchen Motion
|
||||
binary_sensor.kitchen_window:
|
||||
binary_sensor.kitchen_window_contact:
|
||||
linked_battery_sensor: sensor.kitchen_window_battery
|
||||
low_battery_threshold: 20
|
||||
name: Kitchen Window
|
||||
|
||||
@@ -42,7 +42,7 @@ automation:
|
||||
- alias: Notification · Door opened
|
||||
trigger:
|
||||
platform: state
|
||||
entity_id: binary_sensor.front_door
|
||||
entity_id: binary_sensor.front_door_contact
|
||||
to: "on"
|
||||
for:
|
||||
minutes: 2
|
||||
|
||||
@@ -29,7 +29,7 @@ automation:
|
||||
- alias: Security · Door opened while in night mode
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_door
|
||||
entity_id: binary_sensor.front_door_contact
|
||||
to: "on"
|
||||
condition:
|
||||
condition: state
|
||||
@@ -49,7 +49,7 @@ automation:
|
||||
- alias: Security · Door opened while away
|
||||
trigger:
|
||||
- platform: state
|
||||
entity_id: binary_sensor.front_door
|
||||
entity_id: binary_sensor.front_door_contact
|
||||
to: "on"
|
||||
condition:
|
||||
and:
|
||||
|
||||
@@ -71,8 +71,8 @@ automation:
|
||||
Guest mode: {{ states('input_boolean.guest_mode') }}
|
||||
|
||||
Windows:
|
||||
Living room: {{ states('binary_sensor.living_room_right_window') }}
|
||||
Master bedroom: {{ states('binary_sensor.bedroom_right_window') }}
|
||||
Living room: {{ states('binary_sensor.living_room_right_window_contact') }}
|
||||
Master bedroom: {{ states('binary_sensor.bedroom_right_window_contact') }}
|
||||
|
||||
Lights:
|
||||
Living room: {{ states('light.living_room') }}
|
||||
|
||||
Reference in New Issue
Block a user