Add tradfrI_1 to kitchen_main

This commit is contained in:
2022-06-26 18:25:14 +03:00
parent 67ba2891fc
commit b9ccb0136c
5 changed files with 55 additions and 51 deletions
@@ -66,7 +66,6 @@ automation:
entity_id:
- light.light_lohas_2 # living room ambient Secondary
- light.hue_1 # Hallway
- light.neo_1 # Kitchen
data:
rgb_color: [0, 0, 255]
brightness_pct: 100
@@ -153,7 +153,7 @@ automation:
- delay: "00:00:03"
- service: mqtt.publish
data:
topic: "z2m_deconz/neo_1/get"
topic: "z2m_deconz/tradfri_1/get"
payload: ""
- service: mqtt.publish
data:
@@ -1,5 +1,17 @@
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: "light_le_1"
state_topic: "tele/light_le_1/STATE"
state_value_template: "{{ value_json.POWER }}"
@@ -156,6 +168,13 @@ mqtt:
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: "light_le_1_wifi"
availability_topic: "tele/light_le_1/LWT"
device_class: signal_strength
@@ -381,15 +400,7 @@ automation:
payload: ""
- service: mqtt.publish
data:
topic: "z2m_deconz/ledvance_1/get"
payload: ""
- service: mqtt.publish
data:
topic: "z2m_deconz/neo_1/get"
payload: ""
- service: mqtt.publish
data:
topic: "z2m_deconz/neo_2/get"
topic: "z2m_deconz/tradfri_1/get"
payload: ""
- service: mqtt.publish
data:
+33 -39
View File
@@ -1,40 +1,34 @@
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
# 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"
- 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"