mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-07 01:14:42 +00:00
Replace lights
This commit is contained in:
@@ -27,19 +27,25 @@ automation:
|
||||
use_blueprint:
|
||||
path: light_on_set_temperature.yaml
|
||||
input:
|
||||
light: light.living_room_main
|
||||
light:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
|
||||
- alias: Lighting · Living Room · Temperature · Sunset
|
||||
use_blueprint:
|
||||
path: light_sun_set_temperature.yaml
|
||||
input:
|
||||
light: light.living_room_main
|
||||
light:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
temp: 400
|
||||
|
||||
- alias: Lighting · Living Room · Temperature · Night
|
||||
use_blueprint:
|
||||
path: light_sun_set_temperature.yaml
|
||||
input:
|
||||
light: light.living_room_main
|
||||
light:
|
||||
- light.living_room_main
|
||||
- light.pc
|
||||
temp: 500
|
||||
after_offset: "+03:00:00"
|
||||
|
||||
@@ -68,8 +68,6 @@ automation:
|
||||
- light.light_lohas_2 # living room ambient Secondary
|
||||
- light.hue_1 # Hallway
|
||||
- light.neo_1 # Kitchen
|
||||
- light.neo_2 # Kitchen
|
||||
- light.pc
|
||||
data:
|
||||
rgb_color: [0, 0, 255]
|
||||
brightness_pct: 100
|
||||
|
||||
@@ -159,7 +159,7 @@ automation:
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: "z2m_deconz/neo_2/get"
|
||||
topic: "z2m_deconz/hue_ambiance_8/get"
|
||||
payload: ""
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
|
||||
@@ -47,17 +47,6 @@ light:
|
||||
command_topic: "z2m_deconz/hue_white_6/set"
|
||||
brightness_scale: 254
|
||||
|
||||
- platform: "mqtt"
|
||||
name: "pc"
|
||||
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"
|
||||
@@ -164,7 +153,6 @@ light:
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
|
||||
- platform: "mqtt"
|
||||
name: "hue_ambiance_6"
|
||||
state_topic: "z2m_deconz/hue_ambiance_6"
|
||||
@@ -186,6 +174,48 @@ light:
|
||||
- "channel_change"
|
||||
- "finish_effect"
|
||||
|
||||
- platform: "mqtt"
|
||||
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"
|
||||
|
||||
- platform: "mqtt"
|
||||
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"
|
||||
|
||||
- platform: "mqtt"
|
||||
name: "hue_1"
|
||||
state_topic: "z2m_deconz/hue_1"
|
||||
@@ -356,20 +386,6 @@ sensor:
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
|
||||
- platform: "mqtt"
|
||||
name: "pc_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: "pc_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"
|
||||
@@ -454,6 +470,34 @@ sensor:
|
||||
icon: "mdi:update"
|
||||
value_template: "{{ value_json['update']['state'] }}"
|
||||
|
||||
- platform: "mqtt"
|
||||
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"
|
||||
icon: "mdi:signal"
|
||||
- platform: "mqtt"
|
||||
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'] }}"
|
||||
|
||||
- platform: "mqtt"
|
||||
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"
|
||||
icon: "mdi:signal"
|
||||
- platform: "mqtt"
|
||||
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'] }}"
|
||||
|
||||
- platform: "mqtt"
|
||||
name: "hue_1_lqi"
|
||||
state_topic: "z2m_deconz/hue_1"
|
||||
|
||||
@@ -372,6 +372,14 @@ automation:
|
||||
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"
|
||||
|
||||
Reference in New Issue
Block a user