From d85d8701091e5f3eb04e70a5ac8cb52af1cbb24b Mon Sep 17 00:00:00 2001 From: Georgi Gardev Date: Fri, 16 Apr 2021 18:01:15 +0300 Subject: [PATCH] Moar HUE --- .../advanced_dashboard/02_lights.yaml | 85 ++-- .../modules/lighting/areas/bedroom.yaml | 2 +- .../packages/modules/lighting/color_mode.yaml | 5 +- .../modules/lighting/setup/groups.yaml | 30 +- .../packages/modules/lighting/setup/hue.yaml | 410 ++++++++++++++++++ .../packages/modules/lighting/setup/mqtt.yaml | 6 +- .../packages/modules/lighting/setup/neo.yaml | 2 +- .../modules/lighting/setup/osram.yaml | 191 -------- .../modules/lighting/temperature.yaml | 4 - 9 files changed, 490 insertions(+), 245 deletions(-) delete mode 100644 config/packages/modules/lighting/setup/osram.yaml diff --git a/config/lovelace/advanced_dashboard/02_lights.yaml b/config/lovelace/advanced_dashboard/02_lights.yaml index f3bb1e4..5e368e1 100644 --- a/config/lovelace/advanced_dashboard/02_lights.yaml +++ b/config/lovelace/advanced_dashboard/02_lights.yaml @@ -71,7 +71,12 @@ cards: - light: light.light_le_4 - fade: switch.light_le_4_fade - wifi: sensor.light_le_4_wifi - - light.pc + - type: custom:decluttering-card + template: light_with_fade_and_switch + variables: + - light: light.pc + - fade: switch.pc_fade + - wifi: sensor.pc_wifi - light.living_room_ambient - light.living_room_ambient_main - type: custom:fold-entity-row @@ -118,29 +123,29 @@ cards: max: 500 step: 5 - type: custom:decluttering-card - template: light_with_fade_and_switch + template: light_with_update_and_lqi variables: - - light: light.light_lohas_1 - - fade: switch.light_lohas_1_fade - - wifi: sensor.light_lohas_1_wifi + - light: light.hue_2 + - lqi: sensor.hue_2_lqi + - update: binary_sensor.hue_2_update_available - type: custom:decluttering-card - template: light_with_fade_and_switch + template: light_with_update_and_lqi variables: - - light: light.light_lohas_2 - - fade: switch.light_lohas_2_fade - - wifi: sensor.light_lohas_2_wifi + - light: light.hue_3 + - lqi: sensor.hue_3_lqi + - update: binary_sensor.hue_3_update_available - type: custom:decluttering-card - template: light_with_fade_and_switch + template: light_with_update_and_lqi variables: - - light: light.light_lohas_3 - - fade: switch.light_lohas_3_fade - - wifi: sensor.light_lohas_3_wifi + - light: light.hue_4 + - lqi: sensor.hue_4_lqi + - update: binary_sensor.hue_4_update_available - type: custom:decluttering-card - template: light_with_fade_and_switch + template: light_with_update_and_lqi variables: - - light: light.light_lohas_6 - - fade: switch.light_lohas_6_fade - - wifi: sensor.light_lohas_6_wifi + - light: light.hue_5 + - lqi: sensor.hue_5_lqi + - update: binary_sensor.hue_5_update_available - light.bedside - light.bed_led @@ -156,19 +161,39 @@ cards: entity: light.kitchen_main name: Main lights entities: - - light.ledvance_1 # light.osram_2 - - light.osram_3 + - light.ledvance_1 - light.neo_1 + - light.neo_2 - type: divider - light.kitchen_secondary - type: custom:fold-entity-row entity: light.kitchen_secondary name: Secondary lights entities: - - light.hue_1 # light.osram_6 - - light.osram_7 - - light.osram_8 - - light.osram_9 + - type: custom:decluttering-card + template: light_with_update_and_lqi + variables: + - light: light.hue_ambiance_1 + - lqi: sensor.hue_ambiance_1_lqi + - update: binary_sensor.hue_ambiance_1_update_available + - type: custom:decluttering-card + template: light_with_update_and_lqi + variables: + - light: light.hue_ambiance_2 + - lqi: sensor.hue_ambiance_2_lqi + - update: binary_sensor.hue_ambiance_2_update_available + - type: custom:decluttering-card + template: light_with_update_and_lqi + variables: + - light: light.hue_ambiance_3 + - lqi: sensor.hue_ambiance_3_lqi + - update: binary_sensor.hue_ambiance_3_update_available + - type: custom:decluttering-card + template: light_with_update_and_lqi + variables: + - light: light.hue_ambiance_4 + - lqi: sensor.hue_ambiance_4_lqi + - update: binary_sensor.hue_ambiance_4_update_available - type: entities title: Hallway @@ -205,5 +230,15 @@ cards: entity: light.hallway_main name: Main lights entities: - - light.osram_4 - - light.osram_1 + - type: custom:decluttering-card + template: light_with_update_and_lqi + variables: + - light: light.hue_white_3 + - lqi: sensor.hue_white_3_lqi + - update: binary_sensor.hue_white_3_update_available + - type: custom:decluttering-card + template: light_with_update_and_lqi + variables: + - light: light.hue_1 + - lqi: sensor.hue_1_lqi + - update: binary_sensor.hue_1_update_available diff --git a/config/packages/modules/lighting/areas/bedroom.yaml b/config/packages/modules/lighting/areas/bedroom.yaml index 9946859..c9c214f 100644 --- a/config/packages/modules/lighting/areas/bedroom.yaml +++ b/config/packages/modules/lighting/areas/bedroom.yaml @@ -80,7 +80,7 @@ scene: light.master_bedroom_main: state: "on" brightness: 255 - color_temp: 500 + color_temp: 350 light.bedside: state: "on" color_temp: 359 diff --git a/config/packages/modules/lighting/color_mode.yaml b/config/packages/modules/lighting/color_mode.yaml index b4656f8..1493440 100644 --- a/config/packages/modules/lighting/color_mode.yaml +++ b/config/packages/modules/lighting/color_mode.yaml @@ -58,16 +58,17 @@ automation: entity_id: - light.living_room_ambient_main - light.bedside - - light.bed_led - light.master_bedroom_main data: rgb_color: [0, 0, 255] brightness_pct: 40 - service: light.turn_on entity_id: + - light.bed_led - light.light_avatar_small_1 # living room ambient Secondary - - light.light_lohas_6 # entrance 1 + - light.hue_1 # Hallway - light.neo_1 # Kitchen + - light.neo_2 # Kitchen - light.pc data: rgb_color: [0, 0, 255] diff --git a/config/packages/modules/lighting/setup/groups.yaml b/config/packages/modules/lighting/setup/groups.yaml index 2b995ea..b26bcd6 100644 --- a/config/packages/modules/lighting/setup/groups.yaml +++ b/config/packages/modules/lighting/setup/groups.yaml @@ -28,10 +28,10 @@ light: - platform: group name: Master bedroom main entities: - - light.light_lohas_1 - - light.light_lohas_2 - - light.light_lohas_3 - - light.light_lohas_6 + - light.hue_2 + - light.hue_3 + - light.hue_4 + - light.hue_5 - platform: group name: Master bedroom @@ -43,17 +43,17 @@ light: - platform: group name: Kitchen main entities: - - light.ledvance_1 # osram_2 - - light.osram_3 + - light.ledvance_1 + - light.neo_2 - light.neo_1 - platform: group name: Kitchen secondary entities: - - light.hue_1 # osram_6 - - light.osram_7 - - light.osram_8 - - light.osram_9 + - light.hue_ambiance_1 + - light.hue_ambiance_2 + - light.hue_ambiance_3 + - light.hue_ambiance_4 - platform: group name: Kitchen @@ -61,12 +61,6 @@ light: - light.kitchen_main - light.kitchen_secondary - # - platform: group - # name: Tuya Kitchen - # entities: - # - light.tuya_kitchen_main - # - light.tuya_kitchen_secondary - - platform: group name: Hallway entrance entities: @@ -76,8 +70,8 @@ light: - platform: group name: Hallway main entities: - - light.osram_1 - - light.osram_4 + - light.hue_white_3 + - light.hue_1 - platform: group name: Hallway diff --git a/config/packages/modules/lighting/setup/hue.yaml b/config/packages/modules/lighting/setup/hue.yaml index 22d319f..b96c353 100644 --- a/config/packages/modules/lighting/setup/hue.yaml +++ b/config/packages/modules/lighting/setup/hue.yaml @@ -10,6 +10,7 @@ light: schema: "json" command_topic: "z2m_deconz/hue_white_1/set" brightness_scale: 254 + - platform: "mqtt" name: "hue_white_2" state_topic: "z2m_deconz/hue_white_2" @@ -22,6 +23,114 @@ light: command_topic: "z2m_deconz/hue_white_2/set" brightness_scale: 254 + - platform: "mqtt" + name: "hue_white_3" + state_topic: "z2m_deconz/hue_white_3" + availability_topic: "z2m_deconz/bridge/state" + brightness: true + color_temp: false + xy: false + hs: false + schema: "json" + command_topic: "z2m_deconz/hue_white_3/set" + brightness_scale: 254 + + - platform: "mqtt" + name: "hue_white_4" + state_topic: "z2m_deconz/hue_white_4" + availability_topic: "z2m_deconz/bridge/state" + brightness: true + color_temp: false + xy: false + hs: false + schema: "json" + command_topic: "z2m_deconz/hue_white_4/set" + brightness_scale: 254 + + - platform: "mqtt" + 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" + + - platform: "mqtt" + 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" + + - platform: "mqtt" + 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" + + - platform: "mqtt" + 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" + - platform: "mqtt" name: "hue_1" state_topic: "z2m_deconz/hue_1" @@ -44,6 +153,95 @@ light: - "finish_effect" - "stop_effect" + - platform: "mqtt" + 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" + + - platform: "mqtt" + 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" + + - platform: "mqtt" + 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" + + - platform: "mqtt" + 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: - platform: "mqtt" name: "hue_white_1_lqi" @@ -73,6 +271,90 @@ sensor: icon: "mdi:update" value_template: "{{ value_json['update']['state'] }}" + - platform: "mqtt" + name: "hue_white_3_lqi" + state_topic: "z2m_deconz/hue_white_3" + availability_topic: "z2m_deconz/bridge/state" + value_template: "{{ value_json.linkquality }}" + unit_of_measurement: "lqi" + icon: "mdi:signal" + - platform: "mqtt" + name: "hue_white_3_update_state" + state_topic: "z2m_deconz/hue_white_3" + availability_topic: "z2m_deconz/bridge/state" + icon: "mdi:update" + value_template: "{{ value_json['update']['state'] }}" + + - platform: "mqtt" + name: "hue_white_4_lqi" + state_topic: "z2m_deconz/hue_white_4" + availability_topic: "z2m_deconz/bridge/state" + value_template: "{{ value_json.linkquality }}" + unit_of_measurement: "lqi" + icon: "mdi:signal" + - platform: "mqtt" + name: "hue_white_4_update_state" + state_topic: "z2m_deconz/hue_white_4" + availability_topic: "z2m_deconz/bridge/state" + icon: "mdi:update" + value_template: "{{ value_json['update']['state'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + - platform: "mqtt" name: "hue_1_lqi" state_topic: "z2m_deconz/hue_1" @@ -87,6 +369,62 @@ sensor: icon: "mdi:update" value_template: "{{ value_json['update']['state'] }}" + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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'] }}" + + - platform: "mqtt" + 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" + icon: "mdi:signal" + - platform: "mqtt" + 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: - platform: "mqtt" @@ -103,6 +441,50 @@ binary_sensor: payload_on: true payload_off: false value_template: "{{ value_json.update_available}}" + - platform: "mqtt" + name: "hue_white_3_update_available" + state_topic: "z2m_deconz/hue_white_3" + availability_topic: "z2m_deconz/bridge/state" + payload_on: true + payload_off: false + value_template: "{{ value_json.update_available}}" + - platform: "mqtt" + name: "hue_white_4_update_available" + state_topic: "z2m_deconz/hue_white_4" + availability_topic: "z2m_deconz/bridge/state" + payload_on: true + payload_off: false + value_template: "{{ value_json.update_available}}" + + - platform: "mqtt" + 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}}" + - platform: "mqtt" + 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}}" + - platform: "mqtt" + 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}}" + - platform: "mqtt" + 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}}" + - platform: "mqtt" name: "hue_1_update_available" state_topic: "z2m_deconz/hue_1" @@ -110,3 +492,31 @@ binary_sensor: payload_on: true payload_off: false value_template: "{{ value_json.update_available}}" + - platform: "mqtt" + 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}}" + - platform: "mqtt" + 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}}" + - platform: "mqtt" + 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}}" + - platform: "mqtt" + 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}}" diff --git a/config/packages/modules/lighting/setup/mqtt.yaml b/config/packages/modules/lighting/setup/mqtt.yaml index ad246ee..fe5317a 100644 --- a/config/packages/modules/lighting/setup/mqtt.yaml +++ b/config/packages/modules/lighting/setup/mqtt.yaml @@ -109,7 +109,7 @@ light: retain: false - platform: mqtt - name: "light_lohas_1" + name: "pc" state_topic: "tele/light_lohas_1/STATE" state_value_template: "{{ value_json.POWER }}" command_topic: "cmnd/light_lohas_1/POWER" @@ -366,7 +366,7 @@ sensor: value_template: "{{ value_json.Wifi.RSSI }}" - platform: mqtt - name: "light_lohas_1_wifi" + name: "pc_wifi" availability_topic: "tele/light_lohas_1/LWT" device_class: signal_strength payload_available: "Online" @@ -492,7 +492,7 @@ switch: value_template: "{{ value_json.Fade }}" - platform: mqtt - name: "light_lohas_1_fade" + name: "pc_fade" availability_topic: "tele/light_lohas_1/LWT" command_topic: "cmnd/light_lohas_1/FADE" icon: mdi:gradient diff --git a/config/packages/modules/lighting/setup/neo.yaml b/config/packages/modules/lighting/setup/neo.yaml index 7195868..73117be 100644 --- a/config/packages/modules/lighting/setup/neo.yaml +++ b/config/packages/modules/lighting/setup/neo.yaml @@ -13,7 +13,7 @@ light: max_mireds: 500 min_mireds: 150 - platform: "mqtt" - name: "pc" + name: "neo_2" state_topic: "z2m_deconz/neo_2" availability_topic: "z2m_deconz/bridge/state" brightness: true diff --git a/config/packages/modules/lighting/setup/osram.yaml b/config/packages/modules/lighting/setup/osram.yaml deleted file mode 100644 index f74c998..0000000 --- a/config/packages/modules/lighting/setup/osram.yaml +++ /dev/null @@ -1,191 +0,0 @@ -light: - - platform: "mqtt" - name: "osram_1" - state_topic: "z2m_deconz/osram_1" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_1/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_2" - state_topic: "z2m_deconz/osram_2" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_2/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_3" - state_topic: "z2m_deconz/osram_3" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_3/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_4" - state_topic: "z2m_deconz/osram_4" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_4/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_5" - state_topic: "z2m_deconz/osram_5" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_5/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_6" - state_topic: "z2m_deconz/osram_6" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_6/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_7" - state_topic: "z2m_deconz/osram_7" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_7/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_8" - state_topic: "z2m_deconz/osram_8" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_8/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - - - platform: "mqtt" - name: "osram_9" - state_topic: "z2m_deconz/osram_9" - availability_topic: "z2m_deconz/bridge/state" - brightness: true - color_temp: true - xy: false - hs: false - schema: "json" - command_topic: "z2m_deconz/osram_9/set" - brightness_scale: 254 - max_mireds: 500 - min_mireds: 150 - -sensor: - - platform: "mqtt" - name: "osram_1_lqi" - state_topic: "z2m_deconz/osram_1" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_2_lqi" - state_topic: "z2m_deconz/osram_2" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_3_lqi" - state_topic: "z2m_deconz/osram_3" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_4_lqi" - state_topic: "z2m_deconz/osram_4" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_5_lqi" - state_topic: "z2m_deconz/osram_5" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_6_lqi" - state_topic: "z2m_deconz/osram_6" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_7_lqi" - state_topic: "z2m_deconz/osram_7" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_8_lqi" - state_topic: "z2m_deconz/osram_8" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" - - platform: "mqtt" - name: "osram_9_lqi" - state_topic: "z2m_deconz/osram_9" - availability_topic: "z2m_deconz/bridge/state" - value_template: "{{ value_json.linkquality }}" - unit_of_measurement: "lqi" - icon: "mdi:signal" diff --git a/config/packages/modules/lighting/temperature.yaml b/config/packages/modules/lighting/temperature.yaml index 63b93c2..a8c0637 100644 --- a/config/packages/modules/lighting/temperature.yaml +++ b/config/packages/modules/lighting/temperature.yaml @@ -5,10 +5,6 @@ automation: platform: state entity_id: # If the lights are listed by groups, turning on 1 light always turns on the others in the group. - - light.light_lohas_1 - - light.light_lohas_2 - - light.light_lohas_3 - - light.light_lohas_6 - light.light_le_1 - light.light_le_2 - light.light_le_3