mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-09-06 18:08:45 +00:00
Moar lights
This commit is contained in:
@@ -138,9 +138,9 @@ cards:
|
|||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: light_with_fade_and_switch
|
template: light_with_fade_and_switch
|
||||||
variables:
|
variables:
|
||||||
- light: light.light_lohas_4
|
- light: light.light_lohas_6
|
||||||
- fade: switch.light_lohas_4_fade
|
- fade: switch.light_lohas_6_fade
|
||||||
- wifi: sensor.light_lohas_4_wifi
|
- wifi: sensor.light_lohas_6_wifi
|
||||||
- light.bedside
|
- light.bedside
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
|
|
||||||
@@ -156,7 +156,7 @@ cards:
|
|||||||
entity: light.kitchen_main
|
entity: light.kitchen_main
|
||||||
name: Main lights
|
name: Main lights
|
||||||
entities:
|
entities:
|
||||||
- light.osram_2
|
- light.ledvance_1 # light.osram_2
|
||||||
- light.osram_3
|
- light.osram_3
|
||||||
- light.neo_1
|
- light.neo_1
|
||||||
- type: divider
|
- type: divider
|
||||||
@@ -165,7 +165,7 @@ cards:
|
|||||||
entity: light.kitchen_secondary
|
entity: light.kitchen_secondary
|
||||||
name: Secondary lights
|
name: Secondary lights
|
||||||
entities:
|
entities:
|
||||||
- light.osram_6
|
- light.hue_1 # light.osram_6
|
||||||
- light.osram_7
|
- light.osram_7
|
||||||
- light.osram_8
|
- light.osram_8
|
||||||
- light.osram_9
|
- light.osram_9
|
||||||
@@ -186,26 +186,24 @@ cards:
|
|||||||
name: Brightness
|
name: Brightness
|
||||||
hide_state: true
|
hide_state: true
|
||||||
step: 5
|
step: 5
|
||||||
- type: custom:slider-entity-row
|
|
||||||
entity: light.hallway_entrance
|
|
||||||
name: Temperature
|
|
||||||
attribute: color_temp
|
|
||||||
hide_state: true
|
|
||||||
min: 153
|
|
||||||
max: 500
|
|
||||||
step: 5
|
|
||||||
- light.osram_5
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: light_with_fade_and_switch
|
template: light_with_update_and_lqi
|
||||||
variables:
|
variables:
|
||||||
- light: light.light_lohas_6
|
- light: light.hue_white_1
|
||||||
- fade: switch.light_lohas_6_fade
|
- lqi: sensor.hue_white_1_lqi
|
||||||
- wifi: sensor.light_lohas_6_wifi
|
- update: binary_sensor.hue_white_1_update_available
|
||||||
|
- type: custom:decluttering-card
|
||||||
|
template: light_with_update_and_lqi
|
||||||
|
variables:
|
||||||
|
- light: light.hue_white_2
|
||||||
|
- lqi: sensor.hue_white_2_lqi
|
||||||
|
- update: binary_sensor.hue_white_2_update_available
|
||||||
|
|
||||||
- type: divider
|
- type: divider
|
||||||
- light.hallway_main
|
- light.hallway_main
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
entity: light.hallway_main
|
entity: light.hallway_main
|
||||||
name: Main lights
|
name: Main lights
|
||||||
entities:
|
entities:
|
||||||
- light.osram_1
|
|
||||||
- light.osram_4
|
- light.osram_4
|
||||||
|
- light.osram_1
|
||||||
|
|||||||
@@ -12,3 +12,17 @@ light_with_fade_and_switch:
|
|||||||
- entity: "[[light]]"
|
- entity: "[[light]]"
|
||||||
name: Switch
|
name: Switch
|
||||||
toggle: true
|
toggle: true
|
||||||
|
|
||||||
|
light_with_update_and_lqi:
|
||||||
|
card:
|
||||||
|
type: custom:multiple-entity-row
|
||||||
|
entity: "[[light]]"
|
||||||
|
show_state: false
|
||||||
|
entities:
|
||||||
|
- entity: "[[update]]"
|
||||||
|
name: Update
|
||||||
|
- entity: "[[lqi]]"
|
||||||
|
name: LQI
|
||||||
|
- entity: "[[light]]"
|
||||||
|
name: Switch
|
||||||
|
toggle: true
|
||||||
|
|||||||
@@ -25,12 +25,12 @@ automation:
|
|||||||
# Night Mode
|
# Night Mode
|
||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.light_lohas_6
|
entity_id: light.osram_4
|
||||||
data:
|
data:
|
||||||
brightness_pct: 30
|
brightness_pct: 30
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.osram_1
|
- light.hue_white_1
|
||||||
- light.browser_hallway
|
- light.browser_hallway
|
||||||
data:
|
data:
|
||||||
brightness_pct: 1
|
brightness_pct: 1
|
||||||
@@ -58,8 +58,8 @@ automation:
|
|||||||
default:
|
default:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.osram_1
|
- light.hue_white_1
|
||||||
- light.light_lohas_6
|
- light.osram_4
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.browser_hallway
|
entity_id: light.browser_hallway
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -36,7 +36,8 @@ automation:
|
|||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.osram_2
|
- light.ledvance_1
|
||||||
|
- light.hue_1
|
||||||
- light.browser_kitchen
|
- light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
brightness_pct: 1
|
brightness_pct: 1
|
||||||
@@ -65,11 +66,15 @@ automation:
|
|||||||
# Night Mode
|
# Night Mode
|
||||||
default:
|
default:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.osram_2
|
entity_id:
|
||||||
|
- light.ledvance_1
|
||||||
|
- light.hue_1
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.osram_2
|
entity_id:
|
||||||
|
- light.ledvance_1
|
||||||
|
- light.hue_1
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.browser_kitchen
|
entity_id: light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -31,7 +31,7 @@ light:
|
|||||||
- light.light_lohas_1
|
- light.light_lohas_1
|
||||||
- light.light_lohas_2
|
- light.light_lohas_2
|
||||||
- light.light_lohas_3
|
- light.light_lohas_3
|
||||||
- light.light_lohas_4
|
- light.light_lohas_6
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Master bedroom
|
name: Master bedroom
|
||||||
@@ -43,14 +43,14 @@ light:
|
|||||||
- platform: group
|
- platform: group
|
||||||
name: Kitchen main
|
name: Kitchen main
|
||||||
entities:
|
entities:
|
||||||
- light.osram_2
|
- light.ledvance_1 # osram_2
|
||||||
- light.osram_3
|
- light.osram_3
|
||||||
- light.neo_1
|
- light.neo_1
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Kitchen secondary
|
name: Kitchen secondary
|
||||||
entities:
|
entities:
|
||||||
- light.osram_6
|
- light.hue_1 # osram_6
|
||||||
- light.osram_7
|
- light.osram_7
|
||||||
- light.osram_8
|
- light.osram_8
|
||||||
- light.osram_9
|
- light.osram_9
|
||||||
@@ -70,8 +70,8 @@ light:
|
|||||||
- platform: group
|
- platform: group
|
||||||
name: Hallway entrance
|
name: Hallway entrance
|
||||||
entities:
|
entities:
|
||||||
- light.osram_5
|
- light.hue_white_1
|
||||||
- light.light_lohas_6
|
- light.hue_white_2
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Hallway main
|
name: Hallway main
|
||||||
@@ -122,14 +122,6 @@ homeassistant:
|
|||||||
|
|
||||||
light.living_room_main:
|
light.living_room_main:
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
light.light_le_1:
|
|
||||||
friendly_name: Living room 1
|
|
||||||
light.light_le_2:
|
|
||||||
friendly_name: Living room 2
|
|
||||||
light.light_le_3:
|
|
||||||
friendly_name: Living room 3
|
|
||||||
light.light_le_4:
|
|
||||||
friendly_name: Living room 4
|
|
||||||
|
|
||||||
light.pc:
|
light.pc:
|
||||||
friendly_name: PC
|
friendly_name: PC
|
||||||
@@ -149,21 +141,10 @@ homeassistant:
|
|||||||
friendly_name: Bedroom main
|
friendly_name: Bedroom main
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
|
||||||
light.light_lohas_1:
|
|
||||||
friendly_name: Bedroom 1
|
|
||||||
light.light_lohas_2:
|
|
||||||
friendly_name: Bedroom 2
|
|
||||||
light.light_lohas_3:
|
|
||||||
friendly_name: Bedroom 3
|
|
||||||
light.light_lohas_4:
|
|
||||||
friendly_name: Bedroom 4
|
|
||||||
|
|
||||||
light.bedside:
|
light.bedside:
|
||||||
icon: mdi:desk-lamp
|
icon: mdi:desk-lamp
|
||||||
|
|
||||||
# Kitchen
|
# Kitchen
|
||||||
# light.tuya_kitchen:
|
|
||||||
# icon: mdi:lightbulb-group
|
|
||||||
light.kitchen_main:
|
light.kitchen_main:
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
light.kitchen_secondary:
|
light.kitchen_secondary:
|
||||||
@@ -175,17 +156,6 @@ homeassistant:
|
|||||||
|
|
||||||
light.hallway_entrance:
|
light.hallway_entrance:
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
# light.light_lohas_5:
|
|
||||||
# friendly_name: Entrance 1
|
|
||||||
light.osram_5:
|
|
||||||
friendly_name: Entrance 1
|
|
||||||
light.light_lohas_6:
|
|
||||||
friendly_name: Entrance 2
|
|
||||||
|
|
||||||
light.hallway_main:
|
light.hallway_main:
|
||||||
icon: bha:ceiling-lamp-plafond
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
|
||||||
light.osram_1:
|
|
||||||
friendly_name: Hallway 1
|
|
||||||
light.osram_4:
|
|
||||||
friendly_name: Hallway 2
|
|
||||||
|
|||||||
@@ -0,0 +1,112 @@
|
|||||||
|
light:
|
||||||
|
- platform: "mqtt"
|
||||||
|
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
|
||||||
|
- platform: "mqtt"
|
||||||
|
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
|
||||||
|
|
||||||
|
- platform: "mqtt"
|
||||||
|
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"
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: "mqtt"
|
||||||
|
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"
|
||||||
|
icon: "mdi:signal"
|
||||||
|
- platform: "mqtt"
|
||||||
|
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'] }}"
|
||||||
|
|
||||||
|
- platform: "mqtt"
|
||||||
|
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"
|
||||||
|
icon: "mdi:signal"
|
||||||
|
- platform: "mqtt"
|
||||||
|
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'] }}"
|
||||||
|
|
||||||
|
- platform: "mqtt"
|
||||||
|
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"
|
||||||
|
icon: "mdi:signal"
|
||||||
|
- platform: "mqtt"
|
||||||
|
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'] }}"
|
||||||
|
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: "mqtt"
|
||||||
|
name: "hue_white_1_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}}"
|
||||||
|
- platform: "mqtt"
|
||||||
|
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}}"
|
||||||
|
- platform: "mqtt"
|
||||||
|
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}}"
|
||||||
@@ -306,22 +306,13 @@ light:
|
|||||||
availability_topic: "z2m_deconz/bridge/state"
|
availability_topic: "z2m_deconz/bridge/state"
|
||||||
brightness: true
|
brightness: true
|
||||||
color_temp: true
|
color_temp: true
|
||||||
xy: true
|
xy: false
|
||||||
hs: false
|
hs: false
|
||||||
schema: "json"
|
schema: "json"
|
||||||
command_topic: "z2m_deconz/ledvance_1/set"
|
command_topic: "z2m_deconz/ledvance_1/set"
|
||||||
brightness_scale: 254
|
brightness_scale: 254
|
||||||
max_mireds: 500
|
max_mireds: 500
|
||||||
min_mireds: 150
|
min_mireds: 150
|
||||||
effect: true
|
|
||||||
effect_list:
|
|
||||||
- "blink"
|
|
||||||
- "breathe"
|
|
||||||
- "okay"
|
|
||||||
- "channel_change"
|
|
||||||
- "finish_effect"
|
|
||||||
- "stop_effect"
|
|
||||||
|
|
||||||
|
|
||||||
sensor:
|
sensor:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
@@ -578,7 +569,7 @@ automation:
|
|||||||
topic: "cmnd/tasmotas/STATE"
|
topic: "cmnd/tasmotas/STATE"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
|
||||||
- alias: Lighting · Sync Osram states on start-up
|
- alias: Lighting · Sync Zigbee states on start-up
|
||||||
initial_state: true
|
initial_state: true
|
||||||
trigger:
|
trigger:
|
||||||
platform: homeassistant
|
platform: homeassistant
|
||||||
@@ -600,3 +591,39 @@ automation:
|
|||||||
data:
|
data:
|
||||||
topic: "z2m_deconz/osram_4/get"
|
topic: "z2m_deconz/osram_4/get"
|
||||||
payload: ""
|
payload: ""
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "z2m_deconz/osram_5/get"
|
||||||
|
payload: ""
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "z2m_deconz/osram_6/get"
|
||||||
|
payload: ""
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "z2m_deconz/osram_7/get"
|
||||||
|
payload: ""
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "z2m_deconz/osram_8/get"
|
||||||
|
payload: ""
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "z2m_deconz/osram_9/get"
|
||||||
|
payload: ""
|
||||||
|
- 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_1/get"
|
||||||
|
payload: ""
|
||||||
|
- service: mqtt.publish
|
||||||
|
data:
|
||||||
|
topic: "z2m_deconz/ledvance_1/get"
|
||||||
|
payload: ""
|
||||||
|
|||||||
@@ -8,21 +8,11 @@ automation:
|
|||||||
- light.light_lohas_1
|
- light.light_lohas_1
|
||||||
- light.light_lohas_2
|
- light.light_lohas_2
|
||||||
- light.light_lohas_3
|
- light.light_lohas_3
|
||||||
- light.light_lohas_4
|
- light.light_lohas_6
|
||||||
- light.light_le_1
|
- light.light_le_1
|
||||||
- light.light_le_2
|
- light.light_le_2
|
||||||
- light.light_le_3
|
- light.light_le_3
|
||||||
- light.light_le_4
|
- light.light_le_4
|
||||||
- light.osram_1
|
|
||||||
- light.osram_4
|
|
||||||
- light.osram_5
|
|
||||||
- light.light_lohas_6
|
|
||||||
- light.osram_2
|
|
||||||
- light.osram_3
|
|
||||||
- light.osram_6
|
|
||||||
- light.osram_7
|
|
||||||
- light.osram_8
|
|
||||||
- light.osram_9
|
|
||||||
to: "on"
|
to: "on"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
|
|||||||
Reference in New Issue
Block a user