mirror of
https://github.com/GeorgeSG/sarah.git
synced 2026-05-09 10:14:41 +00:00
Rename all lights with shorter names. Add Ambient light in LR
This commit is contained in:
@@ -25,22 +25,22 @@ cards:
|
|||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.living_room_all_lights
|
entity: light.living_room
|
||||||
name: All lights
|
name: All lights
|
||||||
toggle: true
|
toggle: true
|
||||||
step: 5
|
step: 5
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
entity: light.living_room_main_lights
|
entity: light.living_room_main
|
||||||
name: Main lights
|
name: Main lights
|
||||||
entities:
|
entities:
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.living_room_main_lights
|
entity: light.living_room_main
|
||||||
name: Brightness
|
name: Brightness
|
||||||
hide_state: true
|
hide_state: true
|
||||||
step: 5
|
step: 5
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.living_room_main_lights
|
entity: light.living_room_main
|
||||||
name: Temperature
|
name: Temperature
|
||||||
attribute: color_temp
|
attribute: color_temp
|
||||||
hide_state: true
|
hide_state: true
|
||||||
@@ -76,12 +76,27 @@ 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.pc
|
- light: light.light_avatar_small_2
|
||||||
- fade: switch.pc_light_fade
|
- fade: switch.light_avatar_small_2_fade
|
||||||
- wifi: sensor.pc_light_wifi
|
- wifi: sensor.light_avatar_small_2_wifi
|
||||||
entities:
|
entities:
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.pc
|
entity: light.light_avatar_small_2
|
||||||
|
name: Brightness
|
||||||
|
hide_state: true
|
||||||
|
step: 5
|
||||||
|
- light.living_room_ambient
|
||||||
|
- type: custom:fold-entity-row
|
||||||
|
head:
|
||||||
|
type: custom:decluttering-card
|
||||||
|
template: light_with_fade_and_switch
|
||||||
|
variables:
|
||||||
|
- light: light.light_avatar_small_1
|
||||||
|
- fade: switch.light_avatar_small_1_fade
|
||||||
|
- wifi: sensor.light_avatar_small_1_wifi
|
||||||
|
entities:
|
||||||
|
- type: custom:slider-entity-row
|
||||||
|
entity: light.light_avatar_small_1
|
||||||
name: Brightness
|
name: Brightness
|
||||||
hide_state: true
|
hide_state: true
|
||||||
step: 5
|
step: 5
|
||||||
@@ -92,22 +107,22 @@ cards:
|
|||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.master_bedroom_all_lights
|
entity: light.master_bedroom
|
||||||
name: All lights
|
name: All lights
|
||||||
toggle: true
|
toggle: true
|
||||||
step: 5
|
step: 5
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
head:
|
head:
|
||||||
entity: light.master_bedroom_main_lights
|
entity: light.master_bedroom_main
|
||||||
name: Main lights
|
name: Main lights
|
||||||
entities:
|
entities:
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.master_bedroom_main_lights
|
entity: light.master_bedroom_main
|
||||||
name: Brightness
|
name: Brightness
|
||||||
hide_state: true
|
hide_state: true
|
||||||
step: 5
|
step: 5
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.master_bedroom_main_lights
|
entity: light.master_bedroom_main
|
||||||
name: Temperature
|
name: Temperature
|
||||||
attribute: color_temp
|
attribute: color_temp
|
||||||
hide_state: true
|
hide_state: true
|
||||||
@@ -138,7 +153,7 @@ cards:
|
|||||||
- light: light.light_lohas_4
|
- light: light.light_lohas_4
|
||||||
- fade: switch.light_lohas_4_fade
|
- fade: switch.light_lohas_4_fade
|
||||||
- wifi: sensor.light_lohas_4_wifi
|
- wifi: sensor.light_lohas_4_wifi
|
||||||
- light.bedside_light
|
- light.bedside
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
|
|
||||||
- type: entities
|
- type: entities
|
||||||
@@ -146,20 +161,20 @@ cards:
|
|||||||
icon: mdi:chef-hat
|
icon: mdi:chef-hat
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- light.tuya_kitchen_all_lights
|
- light.tuya_kitchen
|
||||||
- type: divider
|
- type: divider
|
||||||
- light.tuya_kitchen_main_lights
|
- light.tuya_kitchen_main
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
entity: light.kitchen_main_lights
|
entity: light.kitchen_main
|
||||||
name: Main lights
|
name: Main lights
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_11
|
- light.light_le_11
|
||||||
- light.light_le_12
|
- light.light_le_12
|
||||||
- light.light_orbecco_1
|
- light.light_orbecco_1
|
||||||
- type: divider
|
- type: divider
|
||||||
- light.tuya_kitchen_secondary_lights
|
- light.tuya_kitchen_secondary
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
entity: light.kitchen_secondary_lights
|
entity: light.kitchen_secondary
|
||||||
name: Secondary lights
|
name: Secondary lights
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_5
|
- light.light_le_5
|
||||||
@@ -172,19 +187,19 @@ cards:
|
|||||||
icon: mdi:door-closed
|
icon: mdi:door-closed
|
||||||
show_header_toggle: false
|
show_header_toggle: false
|
||||||
entities:
|
entities:
|
||||||
- light.hallway_all_lights
|
- light.hallway
|
||||||
- type: divider
|
- type: divider
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance
|
||||||
name: Entrance lights
|
name: Entrance lights
|
||||||
entities:
|
entities:
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance
|
||||||
name: Brightness
|
name: Brightness
|
||||||
hide_state: true
|
hide_state: true
|
||||||
step: 5
|
step: 5
|
||||||
- type: custom:slider-entity-row
|
- type: custom:slider-entity-row
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance
|
||||||
name: Temperature
|
name: Temperature
|
||||||
attribute: color_temp
|
attribute: color_temp
|
||||||
hide_state: true
|
hide_state: true
|
||||||
@@ -204,9 +219,9 @@ cards:
|
|||||||
- fade: switch.light_lohas_6_fade
|
- fade: switch.light_lohas_6_fade
|
||||||
- wifi: sensor.light_lohas_6_wifi
|
- wifi: sensor.light_lohas_6_wifi
|
||||||
- type: divider
|
- type: divider
|
||||||
- light.tuya_hallway_main_lights
|
- light.tuya_hallway_main
|
||||||
- type: custom:fold-entity-row
|
- type: custom:fold-entity-row
|
||||||
entity: light.hallway_main_lights
|
entity: light.hallway_main
|
||||||
name: Main lights
|
name: Main lights
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_7
|
- light.light_le_7
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ sonos_media_player:
|
|||||||
sync_volume: "[[sync_volume]]"
|
sync_volume: "[[sync_volume]]"
|
||||||
entities: &entities_in_gorup
|
entities: &entities_in_gorup
|
||||||
- entity_id: media_player.master_bedroom
|
- entity_id: media_player.master_bedroom
|
||||||
name: M. Bedroom
|
name: Bedroom
|
||||||
- entity_id: media_player.living_room
|
- entity_id: media_player.living_room
|
||||||
name: Living room
|
name: Living room
|
||||||
- entity_id: media_player.kitchen
|
- entity_id: media_player.kitchen
|
||||||
|
|||||||
@@ -24,9 +24,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.pc
|
- entity: light.light_avatar_small_2
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.living_room_main_lights
|
- entity: light.living_room_main
|
||||||
state: "off"
|
state: "off"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -42,9 +42,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.pc
|
- entity: light.light_avatar_small_2
|
||||||
state: "off"
|
state: "off"
|
||||||
- entity: light.living_room_main_lights
|
- entity: light.living_room_main
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -60,9 +60,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.pc
|
- entity: light.light_avatar_small_2
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.living_room_main_lights
|
- entity: light.living_room_main
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -80,9 +80,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.bedside_light
|
- entity: light.bedside
|
||||||
state: "off"
|
state: "off"
|
||||||
- entity: light.master_bedroom_main_lights
|
- entity: light.master_bedroom_main
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -98,9 +98,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.bedside_light
|
- entity: light.bedside
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.master_bedroom_main_lights
|
- entity: light.master_bedroom_main
|
||||||
state: "off"
|
state: "off"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -116,9 +116,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.master_bedroom_main_lights
|
- entity: light.master_bedroom_main
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.bedside_light
|
- entity: light.bedside
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -136,9 +136,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_kitchen_main_lights
|
- entity: light.tuya_kitchen_main
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_kitchen_secondary_lights
|
- entity: light.tuya_kitchen_secondary
|
||||||
state: "off"
|
state: "off"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -155,9 +155,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_kitchen_main_lights
|
- entity: light.tuya_kitchen_main
|
||||||
state: "off"
|
state: "off"
|
||||||
- entity: light.tuya_kitchen_secondary_lights
|
- entity: light.tuya_kitchen_secondary
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -174,9 +174,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_kitchen_main_lights
|
- entity: light.tuya_kitchen_main
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_kitchen_secondary_lights
|
- entity: light.tuya_kitchen_secondary
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -194,9 +194,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.hallway_entrance_lights
|
- entity: light.hallway_entrance
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_hallway_main_lights
|
- entity: light.tuya_hallway_main
|
||||||
state: "off"
|
state: "off"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -212,9 +212,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.hallway_entrance_lights
|
- entity: light.hallway_entrance
|
||||||
state: "off"
|
state: "off"
|
||||||
- entity: light.tuya_hallway_main_lights
|
- entity: light.tuya_hallway_main
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
@@ -230,9 +230,9 @@
|
|||||||
conditions:
|
conditions:
|
||||||
- entity: binary_sensor.floorplan_night_mode
|
- entity: binary_sensor.floorplan_night_mode
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.hallway_entrance_lights
|
- entity: light.hallway_entrance
|
||||||
state: "on"
|
state: "on"
|
||||||
- entity: light.tuya_hallway_main_lights
|
- entity: light.tuya_hallway_main
|
||||||
state: "on"
|
state: "on"
|
||||||
elements:
|
elements:
|
||||||
- type: image
|
- type: image
|
||||||
|
|||||||
@@ -1,28 +1,28 @@
|
|||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.pc
|
- entity: light.light_avatar_small_2
|
||||||
- top: 69.8%
|
- top: 69.8%
|
||||||
- left: 77.8%
|
- left: 77.8%
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.living_room_main_lights
|
- entity: light.living_room_main
|
||||||
- top: 69.8%
|
- top: 69.8%
|
||||||
- left: 64.8%
|
- left: 64.8%
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.master_bedroom_main_lights
|
- entity: light.master_bedroom_main
|
||||||
- top: 25%
|
- top: 25%
|
||||||
- left: 69.5%
|
- left: 69.5%
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.bedside_light
|
- entity: light.bedside
|
||||||
- top: 11.7%
|
- top: 11.7%
|
||||||
- left: 61.6%
|
- left: 61.6%
|
||||||
|
|
||||||
@@ -36,27 +36,27 @@
|
|||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.tuya_kitchen_secondary_lights
|
- entity: light.tuya_kitchen_secondary
|
||||||
- top: 29%
|
- top: 29%
|
||||||
- left: 12.9%
|
- left: 12.9%
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.tuya_kitchen_main_lights
|
- entity: light.tuya_kitchen_main
|
||||||
- top: 29%
|
- top: 29%
|
||||||
- left: 20.3%
|
- left: 20.3%
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.hallway_entrance_lights
|
- entity: light.hallway_entrance
|
||||||
- top: 25%
|
- top: 25%
|
||||||
- left: 50.2%
|
- left: 50.2%
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: floorplan_state_icon
|
template: floorplan_state_icon
|
||||||
variables:
|
variables:
|
||||||
- entity: light.tuya_hallway_main_lights
|
- entity: light.tuya_hallway_main
|
||||||
- top: 41%
|
- top: 41%
|
||||||
- left: 34.8%
|
- left: 34.8%
|
||||||
|
|||||||
@@ -21,15 +21,15 @@
|
|||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.hallway_all_lights
|
entity: light.hallway
|
||||||
name: Hallway
|
name: Hallway
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance
|
||||||
name: Entrance
|
name: Entrance
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.hallway_main_lights
|
entity: light.hallway_main
|
||||||
name: Main
|
name: Main
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
|
|||||||
@@ -21,25 +21,25 @@
|
|||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.tuya_kitchen_all_lights
|
entity: light.tuya_kitchen
|
||||||
name: Kitchen
|
name: Kitchen
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.tuya_kitchen_main_lights
|
entity: light.tuya_kitchen_main
|
||||||
name: Main
|
name: Main
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.tuya_kitchen_secondary_lights
|
entity: light.tuya_kitchen_secondary
|
||||||
name: Secondary
|
name: Secondary
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: half
|
template: half
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance
|
||||||
name: Entrance
|
name: Entrance
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: half
|
template: half
|
||||||
entity: light.tuya_hallway_main_lights
|
entity: light.tuya_hallway_main
|
||||||
name: Hallway
|
name: Hallway
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
|
|||||||
@@ -21,30 +21,36 @@
|
|||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.living_room_all_lights
|
entity: light.living_room
|
||||||
name: Living room
|
name: Living room
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.living_room_main_lights
|
entity: light.living_room_main
|
||||||
name: Main
|
name: Main
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.pc
|
entity: light.light_avatar_small_2
|
||||||
name: PC
|
name: PC
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: light.living_room_ambient
|
||||||
|
name: Ambient
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: half
|
template: half
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.living_room_ambient_main
|
||||||
name: Entrance
|
name: Main
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: half
|
template: half
|
||||||
entity: light.tuya_hallway_main_lights
|
entity: light.light_avatar_small_1
|
||||||
name: Hallway
|
name: Secondary
|
||||||
styles:
|
styles:
|
||||||
card:
|
card:
|
||||||
- height: 46px
|
- height: 46px
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
title: Devices
|
title: Devices
|
||||||
cards:
|
cards:
|
||||||
|
|||||||
@@ -23,43 +23,63 @@
|
|||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: half
|
||||||
entity: light.ceiling_lights
|
icon: none
|
||||||
|
entity: light.all
|
||||||
|
name: All
|
||||||
|
- type: custom:button-card
|
||||||
|
template: half
|
||||||
|
icon: none
|
||||||
|
entity: light.ceiling
|
||||||
name: Ceiling
|
name: Ceiling
|
||||||
- type: custom:button-card
|
|
||||||
template: default
|
|
||||||
entity: light.living_room_main_lights
|
|
||||||
name: Living room
|
|
||||||
- type: custom:button-card
|
|
||||||
template: default
|
|
||||||
entity: light.pc
|
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.master_bedroom_main_lights
|
entity: light.living_room
|
||||||
name: "M. Bedroom"
|
name: Living room
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: light.living_room_main
|
||||||
|
name: Main
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: light.light_avatar_small_2
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: light.living_room_ambient
|
||||||
|
name: Ambient
|
||||||
|
- type: horizontal-stack
|
||||||
|
cards:
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: light.master_bedroom
|
||||||
|
name: Bedroom
|
||||||
|
- type: custom:button-card
|
||||||
|
template: default
|
||||||
|
entity: light.master_bedroom_main
|
||||||
|
name: Main
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.bed_led
|
entity: light.bed_led
|
||||||
name: Bed
|
name: Bed
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.bedside_light
|
entity: light.bedside
|
||||||
name: Bedside
|
name: Bedside
|
||||||
- type: horizontal-stack
|
- type: horizontal-stack
|
||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.tuya_kitchen_all_lights
|
entity: light.tuya_kitchen
|
||||||
name: Kitchen
|
name: Kitchen
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.tuya_hallway_main_lights
|
entity: light.tuya_hallway_main
|
||||||
name: Hallway
|
name: Hallway
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.hallway_entrance_lights
|
entity: light.hallway_entrance
|
||||||
name: Entrance
|
name: Entrance
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
@@ -184,7 +204,7 @@
|
|||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: binary_sensor.bedroom_right_window_on_off_wrapper
|
entity: binary_sensor.bedroom_right_window_on_off_wrapper
|
||||||
name: M. Bedroom
|
name: Bedroom
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template:
|
template:
|
||||||
- small
|
- small
|
||||||
@@ -320,7 +340,7 @@
|
|||||||
template: sonos_media_player
|
template: sonos_media_player
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.master_bedroom
|
- player: media_player.master_bedroom
|
||||||
- name: M. Bedroom
|
- name: Bedroom
|
||||||
|
|
||||||
- type: custom:decluttering-card
|
- type: custom:decluttering-card
|
||||||
template: sonos_media_player_small
|
template: sonos_media_player_small
|
||||||
|
|||||||
@@ -21,11 +21,11 @@
|
|||||||
cards:
|
cards:
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.master_bedroom_all_lights
|
entity: light.master_bedroom
|
||||||
name: M. Bedroom
|
name: Bedroom
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.master_bedroom_main_lights
|
entity: light.master_bedroom_main
|
||||||
name: Main
|
name: Main
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
name: LED
|
name: LED
|
||||||
- type: custom:button-card
|
- type: custom:button-card
|
||||||
template: default
|
template: default
|
||||||
entity: light.bedside_light
|
entity: light.bedside
|
||||||
name: Bedside
|
name: Bedside
|
||||||
|
|
||||||
|
|
||||||
@@ -82,7 +82,7 @@
|
|||||||
template: media_with_controls
|
template: media_with_controls
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.master_bedroom
|
- player: media_player.master_bedroom
|
||||||
- player_name: M. Bedroom
|
- player_name: Bedroom
|
||||||
|
|
||||||
|
|
||||||
- type: vertical-stack
|
- type: vertical-stack
|
||||||
|
|||||||
@@ -118,7 +118,7 @@ media_player.master_bedroom:
|
|||||||
template: sonos_media_player
|
template: sonos_media_player
|
||||||
variables:
|
variables:
|
||||||
- player: media_player.master_bedroom
|
- player: media_player.master_bedroom
|
||||||
- name: M. Bedroom
|
- name: Bedroom
|
||||||
- sync_volume: false
|
- sync_volume: false
|
||||||
|
|
||||||
media_player.nvidia_shield: &nvidia_shield
|
media_player.nvidia_shield: &nvidia_shield
|
||||||
@@ -181,21 +181,21 @@ media_player.nvidia_shield: &nvidia_shield
|
|||||||
|
|
||||||
media_player.living_room_tv: *nvidia_shield
|
media_player.living_room_tv: *nvidia_shield
|
||||||
|
|
||||||
light.living_room_main_lights:
|
light.living_room_main:
|
||||||
title: Living room lights
|
title: Living room lights
|
||||||
style: *popup_style
|
style: *popup_style
|
||||||
card:
|
card:
|
||||||
type: custom:mod-card
|
type: custom:mod-card
|
||||||
card:
|
card:
|
||||||
type: custom:light-popup-card
|
type: custom:light-popup-card
|
||||||
entity: light.living_room_main_lights
|
entity: light.living_room_main
|
||||||
fullscreen: false
|
fullscreen: false
|
||||||
supportedFeaturesTreshold: -1
|
supportedFeaturesTreshold: -1
|
||||||
actionsInARow: 2
|
actionsInARow: 2
|
||||||
actions:
|
actions:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
service_data:
|
service_data:
|
||||||
entity_id: light.living_room_main_lights
|
entity_id: light.living_room_main
|
||||||
color: "#ffffcc"
|
color: "#ffffcc"
|
||||||
name: Toggle
|
name: Toggle
|
||||||
|
|
||||||
|
|||||||
@@ -52,7 +52,7 @@ automation:
|
|||||||
state: "light"
|
state: "light"
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room
|
||||||
|
|
||||||
- alias: Magic Cube · Lighting · Dim on rotate left
|
- alias: Magic Cube · Lighting · Dim on rotate left
|
||||||
trigger:
|
trigger:
|
||||||
@@ -72,7 +72,7 @@ automation:
|
|||||||
state: "light"
|
state: "light"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room
|
||||||
data:
|
data:
|
||||||
brightness_step_pct: -20
|
brightness_step_pct: -20
|
||||||
|
|
||||||
@@ -94,7 +94,7 @@ automation:
|
|||||||
state: "light"
|
state: "light"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room
|
||||||
data:
|
data:
|
||||||
brightness_step_pct: 20
|
brightness_step_pct: 20
|
||||||
|
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ automation:
|
|||||||
scene_data: 0
|
scene_data: 0
|
||||||
action:
|
action:
|
||||||
- service: light.toggle
|
- service: light.toggle
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room
|
||||||
|
|
||||||
- alias: Wallmote · Living room · 1 · Hold · Dim lights
|
- alias: Wallmote · Living room · 1 · Hold · Dim lights
|
||||||
trigger:
|
trigger:
|
||||||
@@ -31,11 +31,11 @@ automation:
|
|||||||
scene_data: 1
|
scene_data: 1
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.living_room_all_lights
|
entity_id: light.living_room
|
||||||
data_template:
|
data_template:
|
||||||
brightness: >
|
brightness: >
|
||||||
|
|
||||||
{% if state_attr('light.living_room_main_lights', 'brightness') < 255 %}
|
{% if state_attr('light.living_room_main', 'brightness') < 255 %}
|
||||||
255
|
255
|
||||||
{% else %}
|
{% else %}
|
||||||
120
|
120
|
||||||
|
|||||||
@@ -2,15 +2,14 @@ alexa:
|
|||||||
smart_home:
|
smart_home:
|
||||||
filter:
|
filter:
|
||||||
include_entities:
|
include_entities:
|
||||||
- light.ceiling_lights
|
- light.ceiling
|
||||||
- light.living_room_main_lights
|
- light.living_room_main
|
||||||
- light.pc
|
- light.master_bedroom_main
|
||||||
- light.master_bedroom_main_lights
|
- light.bedside
|
||||||
- light.bedside_light
|
- light.tuya_kitchen
|
||||||
- light.tuya_kitchen_all_lights
|
- light.hallway_entrance
|
||||||
- light.hallway_entrance_lights
|
- light.hallway
|
||||||
- light.hallway_all_lights
|
- light.tuya_hallway_main
|
||||||
- light.tuya_hallway_main_lights
|
|
||||||
|
|
||||||
- switch.camera
|
- switch.camera
|
||||||
|
|
||||||
@@ -43,19 +42,19 @@ alexa:
|
|||||||
- script.titanium_start
|
- script.titanium_start
|
||||||
|
|
||||||
entity_config:
|
entity_config:
|
||||||
light.ceiling_lights:
|
light.ceiling:
|
||||||
name: "Ceiling"
|
name: "Ceiling"
|
||||||
light.living_room_main_lights:
|
light.living_room_main:
|
||||||
name: "Living room"
|
name: "Living room"
|
||||||
light.master_bedroom_main_lights:
|
light.master_bedroom_main:
|
||||||
name: "Bedroom"
|
name: "Bedroom"
|
||||||
light.tuya_kitchen_all_lights:
|
light.tuya_kitchen:
|
||||||
name: "Kitchen"
|
name: "Kitchen"
|
||||||
light.hallway_all_lights:
|
light.hallway:
|
||||||
name: "Hallway"
|
name: "Hallway"
|
||||||
light.hallway_entrance_lights:
|
light.hallway_entrance:
|
||||||
name: "Entrance"
|
name: "Entrance"
|
||||||
light.tuya_hallway_main_lights:
|
light.tuya_hallway_main:
|
||||||
name: "Hallway main"
|
name: "Hallway main"
|
||||||
media_player.master_bedroom:
|
media_player.master_bedroom:
|
||||||
name: "Bedroom Sonos"
|
name: "Bedroom Sonos"
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ automation:
|
|||||||
state: 'day'
|
state: 'day'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.hallway_all_lights
|
entity_id: light.hallway
|
||||||
|
|
||||||
- alias: Lighting · Hallway · Day mode · Motion · Turn lights off
|
- alias: Lighting · Hallway · Day mode · Motion · Turn lights off
|
||||||
trigger:
|
trigger:
|
||||||
@@ -25,7 +25,7 @@ automation:
|
|||||||
state: 'day'
|
state: 'day'
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.hallway_all_lights
|
entity_id: light.hallway
|
||||||
|
|
||||||
- alias: Lighting · Hallway · Night mode · Motion · Turn lights on
|
- alias: Lighting · Hallway · Night mode · Motion · Turn lights on
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.tuya_kitchen_all_lights
|
- light.tuya_kitchen
|
||||||
- light.browser_kitchen
|
- light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
@@ -42,7 +42,7 @@ automation:
|
|||||||
state: "day"
|
state: "day"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.tuya_kitchen_all_lights
|
entity_id: light.tuya_kitchen
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.browser_kitchen
|
entity_id: light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -3,12 +3,12 @@ script:
|
|||||||
icon: "mdi:weather-night"
|
icon: "mdi:weather-night"
|
||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.master_bedroom_main_lights
|
entity_id: light.master_bedroom_main
|
||||||
data:
|
data:
|
||||||
rgb_color: [255, 0, 190]
|
rgb_color: [255, 0, 190]
|
||||||
brightness_pct: 40
|
brightness_pct: 40
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside
|
||||||
data:
|
data:
|
||||||
xy_color: [0.384, 0.159]
|
xy_color: [0.384, 0.159]
|
||||||
brightness_pct: 1
|
brightness_pct: 1
|
||||||
@@ -31,13 +31,13 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.master_bedroom_main_lights
|
- light.master_bedroom_main
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
data:
|
data:
|
||||||
color_temp: 500
|
color_temp: 500
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside
|
||||||
data:
|
data:
|
||||||
color_temp: 500
|
color_temp: 500
|
||||||
brightness_pct: 20
|
brightness_pct: 20
|
||||||
@@ -56,9 +56,9 @@ automation:
|
|||||||
entity_id: >-
|
entity_id: >-
|
||||||
|
|
||||||
{% if is_state('input_select.house_mode', 'day') %}
|
{% if is_state('input_select.house_mode', 'day') %}
|
||||||
light.master_bedroom_main_lights
|
light.master_bedroom_main
|
||||||
{% elif is_state('input_select.house_mode', 'bed') %}
|
{% elif is_state('input_select.house_mode', 'bed') %}
|
||||||
light.bedside_light, light.bed_led
|
light.bedside, light.bed_led
|
||||||
{% elif is_state('input_select.house_mode', 'night') %}
|
{% elif is_state('input_select.house_mode', 'night') %}
|
||||||
light.bed_led
|
light.bed_led
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -2,7 +2,9 @@
|
|||||||
yeelight:
|
yeelight:
|
||||||
devices:
|
devices:
|
||||||
!secret yeelight_bedside_ip:
|
!secret yeelight_bedside_ip:
|
||||||
name: Bedside light
|
name: Bedside
|
||||||
|
!secret yeelight_living_room_ip:
|
||||||
|
name: Living room Ambient main
|
||||||
|
|
||||||
# https://www.home-assistant.io/integrations/tuya
|
# https://www.home-assistant.io/integrations/tuya
|
||||||
tuya:
|
tuya:
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
light:
|
light:
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Living room main lights
|
name: Living room main
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_1
|
- light.light_le_1
|
||||||
- light.light_le_2
|
- light.light_le_2
|
||||||
@@ -8,13 +8,25 @@ light:
|
|||||||
- light.light_le_4
|
- light.light_le_4
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Living room all lights
|
name: Living room ceiling
|
||||||
entities:
|
entities:
|
||||||
- light.living_room_main_lights
|
- light.living_room_main
|
||||||
- light.pc
|
- light.light_avatar_small_2
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Master bedroom main lights
|
name: Living room ambient
|
||||||
|
entities:
|
||||||
|
- light.living_room_ambient_main
|
||||||
|
- light.light_avatar_small_1
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Living room
|
||||||
|
entities:
|
||||||
|
- light.living_room_ceiling
|
||||||
|
- light.living_room_ambient
|
||||||
|
|
||||||
|
- platform: group
|
||||||
|
name: Master bedroom main
|
||||||
entities:
|
entities:
|
||||||
- light.light_lohas_1
|
- light.light_lohas_1
|
||||||
- light.light_lohas_2
|
- light.light_lohas_2
|
||||||
@@ -22,21 +34,21 @@ light:
|
|||||||
- light.light_lohas_4
|
- light.light_lohas_4
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Master bedroom all lights
|
name: Master bedroom
|
||||||
entities:
|
entities:
|
||||||
- light.master_bedroom_main_lights
|
- light.master_bedroom_main
|
||||||
- light.bedside_light
|
- light.bedside
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Kitchen main lights
|
name: Kitchen main
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_11
|
- light.light_le_11
|
||||||
- light.light_le_12
|
- light.light_le_12
|
||||||
- light.light_orbecco_1
|
- light.light_orbecco_1
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Kitchen secondary lights
|
name: Kitchen secondary
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_5
|
- light.light_le_5
|
||||||
- light.light_le_6
|
- light.light_le_6
|
||||||
@@ -44,77 +56,134 @@ light:
|
|||||||
- light.light_le_10
|
- light.light_le_10
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Tuya Kitchen all lights
|
name: Tuya Kitchen
|
||||||
entities:
|
entities:
|
||||||
- light.tuya_kitchen_main_lights
|
- light.tuya_kitchen_main
|
||||||
- light.tuya_kitchen_secondary_lights
|
- light.tuya_kitchen_secondary
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Hallway entrance lights
|
name: Hallway entrance
|
||||||
entities:
|
entities:
|
||||||
- light.light_lohas_5
|
- light.light_lohas_5
|
||||||
- light.light_lohas_6
|
- light.light_lohas_6
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Hallway main lights
|
name: Hallway main
|
||||||
entities:
|
entities:
|
||||||
- light.light_le_7
|
- light.light_le_7
|
||||||
- light.light_le_8
|
- light.light_le_8
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Hallway all lights
|
name: Hallway
|
||||||
entities:
|
entities:
|
||||||
- light.hallway_entrance_lights
|
- light.hallway_entrance
|
||||||
- light.tuya_hallway_main_lights
|
- light.tuya_hallway_main
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: On after dark
|
name: On after dark
|
||||||
entities:
|
entities:
|
||||||
- light.living_room_all_lights
|
- light.living_room
|
||||||
- light.master_bedroom_main_lights
|
- light.master_bedroom_main
|
||||||
- light.hallway_all_lights
|
- light.hallway
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: Ceiling lights
|
name: Ceiling
|
||||||
entities:
|
entities:
|
||||||
- light.living_room_all_lights
|
- light.living_room_main
|
||||||
- light.master_bedroom_main_lights
|
- light.light_avatar_small_2
|
||||||
- light.tuya_kitchen_all_lights
|
- light.master_bedroom_main
|
||||||
- light.hallway_all_lights
|
- light.tuya_kitchen
|
||||||
|
- light.hallway
|
||||||
|
|
||||||
- platform: group
|
- platform: group
|
||||||
name: All lights
|
name: All
|
||||||
entities:
|
entities:
|
||||||
- light.living_room_all_lights
|
- light.living_room
|
||||||
- light.master_bedroom_all_lights
|
- light.master_bedroom
|
||||||
- light.tuya_kitchen_all_lights
|
- light.tuya_kitchen
|
||||||
- light.hallway_all_lights
|
- light.hallway
|
||||||
|
|
||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
light.living_room_main_lights:
|
light.ceiling:
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.living_room_all_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.master_bedroom_all_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.master_bedroom_main_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.kitchen_main_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.kitchen_secondary_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.tuya_kitchen_all_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.hallway_entrance_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.hallway_main_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.hallway_all_lights:
|
|
||||||
icon: bha:ceiling-lamp-plafond
|
|
||||||
light.ceiling_lights:
|
|
||||||
icon: mdi:ceiling-light
|
icon: mdi:ceiling-light
|
||||||
light.pc:
|
|
||||||
|
|
||||||
|
# Living room
|
||||||
|
light.living_room:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
light.living_room_ceiling:
|
||||||
|
icon: mdi:ceiling-light
|
||||||
|
|
||||||
|
light.living_room_main:
|
||||||
|
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.light_avatar_small_2:
|
||||||
|
friendly_name: PC
|
||||||
icon: bha:outdoor-lamp-variant
|
icon: bha:outdoor-lamp-variant
|
||||||
light.bedside_light:
|
|
||||||
|
light.living_room_ambient:
|
||||||
|
icon: mdi:floor-lamp-dual
|
||||||
|
light.light_avatar_small_1:
|
||||||
|
friendly_name: Living room ambient secondary
|
||||||
|
|
||||||
|
# Out of comission
|
||||||
|
# light.pc:
|
||||||
|
# icon: bha:outdoor-lamp-variant
|
||||||
|
|
||||||
|
# Master bedroom
|
||||||
|
light.master_bedroom:
|
||||||
|
friendly_name: Bedroom
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
|
||||||
|
light.master_bedroom_main:
|
||||||
|
friendly_name: Bedroom main
|
||||||
|
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:
|
||||||
icon: mdi:desk-lamp
|
icon: mdi:desk-lamp
|
||||||
|
|
||||||
|
# Kitchen
|
||||||
|
light.kitchen_main:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
light.kitchen_secondary:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
light.tuya_kitchen:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
|
||||||
|
# Hallway
|
||||||
|
light.hallway:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
|
||||||
|
light.hallway_entrance:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
light.light_lohas_5:
|
||||||
|
friendly_name: Entrance 1
|
||||||
|
light.light_lohas_6:
|
||||||
|
friendly_name: Entrance 2
|
||||||
|
|
||||||
|
light.hallway_main:
|
||||||
|
icon: bha:ceiling-lamp-plafond
|
||||||
|
light.light_le_7:
|
||||||
|
friendly_name: Hallway 1
|
||||||
|
light.light_le_8:
|
||||||
|
friendly_name: Hallway 2
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -1,14 +1,18 @@
|
|||||||
light:
|
light:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "PC"
|
name: "PC" # should be hama_1.
|
||||||
availability_topic: "tele/pc_light/LWT"
|
|
||||||
command_topic: "cmnd/pc_light/POWER"
|
|
||||||
state_topic: "tele/pc_light/STATE"
|
state_topic: "tele/pc_light/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/pc_light/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/pc_light/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/pc_light/Dimmer"
|
brightness_command_topic: "cmnd/pc_light/Dimmer"
|
||||||
brightness_state_topic: "tele/pc_light/STATE"
|
brightness_state_topic: "tele/pc_light/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/pc_light/HSBColor"
|
hs_command_topic: "cmnd/pc_light/HSBColor"
|
||||||
hs_state_topic: "tele/pc_light/STATE"
|
hs_state_topic: "tele/pc_light/STATE"
|
||||||
@@ -19,107 +23,107 @@ light:
|
|||||||
rgb_command_topic: "cmnd/pc_light/Color"
|
rgb_command_topic: "cmnd/pc_light/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_le_1"
|
name: "light_le_1"
|
||||||
availability_topic: "tele/light_le_1/LWT"
|
|
||||||
command_topic: "cmnd/light_le_1/POWER"
|
|
||||||
state_topic: "tele/light_le_1/STATE"
|
state_topic: "tele/light_le_1/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_le_1/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_le_1/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_le_1/Dimmer"
|
brightness_command_topic: "cmnd/light_le_1/Dimmer"
|
||||||
brightness_state_topic: "tele/light_le_1/STATE"
|
brightness_state_topic: "tele/light_le_1/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/light_le_1/CT"
|
color_temp_command_topic: "cmnd/light_le_1/CT"
|
||||||
color_temp_state_topic: "tele/light_le_1/STATE"
|
color_temp_state_topic: "tele/light_le_1/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_le_2"
|
name: "light_le_2"
|
||||||
availability_topic: "tele/light_le_2/LWT"
|
|
||||||
command_topic: "cmnd/light_le_2/POWER"
|
|
||||||
state_topic: "tele/light_le_2/STATE"
|
state_topic: "tele/light_le_2/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_le_2/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_le_2/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_le_2/Dimmer"
|
brightness_command_topic: "cmnd/light_le_2/Dimmer"
|
||||||
brightness_state_topic: "tele/light_le_2/STATE"
|
brightness_state_topic: "tele/light_le_2/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/light_le_2/CT"
|
color_temp_command_topic: "cmnd/light_le_2/CT"
|
||||||
color_temp_state_topic: "tele/light_le_2/STATE"
|
color_temp_state_topic: "tele/light_le_2/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_le_3"
|
name: "light_le_3"
|
||||||
availability_topic: "tele/light_le_3/LWT"
|
|
||||||
command_topic: "cmnd/light_le_3/POWER"
|
|
||||||
state_topic: "tele/light_le_3/STATE"
|
state_topic: "tele/light_le_3/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_le_3/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_le_3/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_le_3/Dimmer"
|
brightness_command_topic: "cmnd/light_le_3/Dimmer"
|
||||||
brightness_state_topic: "tele/light_le_3/STATE"
|
brightness_state_topic: "tele/light_le_3/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/light_le_3/CT"
|
color_temp_command_topic: "cmnd/light_le_3/CT"
|
||||||
color_temp_state_topic: "tele/light_le_3/STATE"
|
color_temp_state_topic: "tele/light_le_3/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_le_4"
|
name: "light_le_4"
|
||||||
availability_topic: "tele/light_le_4/LWT"
|
|
||||||
command_topic: "cmnd/light_le_4/POWER"
|
|
||||||
state_topic: "tele/light_le_4/STATE"
|
state_topic: "tele/light_le_4/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_le_4/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_le_4/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_le_4/Dimmer"
|
brightness_command_topic: "cmnd/light_le_4/Dimmer"
|
||||||
brightness_state_topic: "tele/light_le_4/STATE"
|
brightness_state_topic: "tele/light_le_4/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
color_temp_command_topic: "cmnd/light_le_4/CT"
|
color_temp_command_topic: "cmnd/light_le_4/CT"
|
||||||
color_temp_state_topic: "tele/light_le_4/STATE"
|
color_temp_state_topic: "tele/light_le_4/STATE"
|
||||||
color_temp_value_template: "{{ value_json.CT }}"
|
color_temp_value_template: "{{ value_json.CT }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_lohas_1"
|
name: "light_lohas_1"
|
||||||
availability_topic: "tele/light_lohas_1/LWT"
|
|
||||||
command_topic: "cmnd/light_lohas_1/POWER"
|
|
||||||
state_topic: "tele/light_lohas_1/STATE"
|
state_topic: "tele/light_lohas_1/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_lohas_1/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_lohas_1/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_lohas_1/Dimmer"
|
brightness_command_topic: "cmnd/light_lohas_1/Dimmer"
|
||||||
brightness_state_topic: "tele/light_lohas_1/STATE"
|
brightness_state_topic: "tele/light_lohas_1/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/light_lohas_1/HSBColor"
|
hs_command_topic: "cmnd/light_lohas_1/HSBColor"
|
||||||
hs_state_topic: "tele/light_lohas_1/STATE"
|
hs_state_topic: "tele/light_lohas_1/STATE"
|
||||||
@@ -130,23 +134,23 @@ light:
|
|||||||
rgb_command_topic: "cmnd/light_lohas_1/Color"
|
rgb_command_topic: "cmnd/light_lohas_1/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_lohas_2"
|
name: "light_lohas_2"
|
||||||
availability_topic: "tele/light_lohas_2/LWT"
|
|
||||||
command_topic: "cmnd/light_lohas_2/POWER"
|
|
||||||
state_topic: "tele/light_lohas_2/STATE"
|
state_topic: "tele/light_lohas_2/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_lohas_2/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_lohas_2/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_lohas_2/Dimmer"
|
brightness_command_topic: "cmnd/light_lohas_2/Dimmer"
|
||||||
brightness_state_topic: "tele/light_lohas_2/STATE"
|
brightness_state_topic: "tele/light_lohas_2/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/light_lohas_2/HSBColor"
|
hs_command_topic: "cmnd/light_lohas_2/HSBColor"
|
||||||
hs_state_topic: "tele/light_lohas_2/STATE"
|
hs_state_topic: "tele/light_lohas_2/STATE"
|
||||||
@@ -157,23 +161,23 @@ light:
|
|||||||
rgb_command_topic: "cmnd/light_lohas_2/Color"
|
rgb_command_topic: "cmnd/light_lohas_2/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_lohas_3"
|
name: "light_lohas_3"
|
||||||
availability_topic: "tele/light_lohas_3/LWT"
|
|
||||||
command_topic: "cmnd/light_lohas_3/POWER"
|
|
||||||
state_topic: "tele/light_lohas_3/STATE"
|
state_topic: "tele/light_lohas_3/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_lohas_3/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_lohas_3/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_lohas_3/Dimmer"
|
brightness_command_topic: "cmnd/light_lohas_3/Dimmer"
|
||||||
brightness_state_topic: "tele/light_lohas_3/STATE"
|
brightness_state_topic: "tele/light_lohas_3/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/light_lohas_3/HSBColor"
|
hs_command_topic: "cmnd/light_lohas_3/HSBColor"
|
||||||
hs_state_topic: "tele/light_lohas_3/STATE"
|
hs_state_topic: "tele/light_lohas_3/STATE"
|
||||||
@@ -184,23 +188,23 @@ light:
|
|||||||
rgb_command_topic: "cmnd/light_lohas_3/Color"
|
rgb_command_topic: "cmnd/light_lohas_3/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_lohas_4"
|
name: "light_lohas_4"
|
||||||
availability_topic: "tele/light_lohas_4/LWT"
|
|
||||||
command_topic: "cmnd/light_lohas_4/POWER"
|
|
||||||
state_topic: "tele/light_lohas_4/STATE"
|
state_topic: "tele/light_lohas_4/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_lohas_4/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_lohas_4/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_lohas_4/Dimmer"
|
brightness_command_topic: "cmnd/light_lohas_4/Dimmer"
|
||||||
brightness_state_topic: "tele/light_lohas_4/STATE"
|
brightness_state_topic: "tele/light_lohas_4/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/light_lohas_4/HSBColor"
|
hs_command_topic: "cmnd/light_lohas_4/HSBColor"
|
||||||
hs_state_topic: "tele/light_lohas_4/STATE"
|
hs_state_topic: "tele/light_lohas_4/STATE"
|
||||||
@@ -211,23 +215,23 @@ light:
|
|||||||
rgb_command_topic: "cmnd/light_lohas_4/Color"
|
rgb_command_topic: "cmnd/light_lohas_4/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_lohas_5"
|
name: "light_lohas_5"
|
||||||
availability_topic: "tele/light_lohas_5/LWT"
|
|
||||||
command_topic: "cmnd/light_lohas_5/POWER"
|
|
||||||
state_topic: "tele/light_lohas_5/STATE"
|
state_topic: "tele/light_lohas_5/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_lohas_5/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_lohas_5/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_lohas_5/Dimmer"
|
brightness_command_topic: "cmnd/light_lohas_5/Dimmer"
|
||||||
brightness_state_topic: "tele/light_lohas_5/STATE"
|
brightness_state_topic: "tele/light_lohas_5/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/light_lohas_5/HSBColor"
|
hs_command_topic: "cmnd/light_lohas_5/HSBColor"
|
||||||
hs_state_topic: "tele/light_lohas_5/STATE"
|
hs_state_topic: "tele/light_lohas_5/STATE"
|
||||||
@@ -238,23 +242,23 @@ light:
|
|||||||
rgb_command_topic: "cmnd/light_lohas_5/Color"
|
rgb_command_topic: "cmnd/light_lohas_5/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
|
||||||
payload_off: "OFF"
|
|
||||||
payload_available: "Online"
|
|
||||||
payload_not_available: "Offline"
|
|
||||||
qos: 1
|
qos: 1
|
||||||
retain: false
|
retain: false
|
||||||
|
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "light_lohas_6"
|
name: "light_lohas_6"
|
||||||
availability_topic: "tele/light_lohas_6/LWT"
|
|
||||||
command_topic: "cmnd/light_lohas_6/POWER"
|
|
||||||
state_topic: "tele/light_lohas_6/STATE"
|
state_topic: "tele/light_lohas_6/STATE"
|
||||||
state_value_template: "{{ value_json.POWER }}"
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
command_topic: "cmnd/light_lohas_6/POWER"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
availability_topic: "tele/light_lohas_6/LWT"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
on_command_type: "brightness"
|
||||||
brightness_command_topic: "cmnd/light_lohas_6/Dimmer"
|
brightness_command_topic: "cmnd/light_lohas_6/Dimmer"
|
||||||
brightness_state_topic: "tele/light_lohas_6/STATE"
|
brightness_state_topic: "tele/light_lohas_6/STATE"
|
||||||
brightness_scale: 100
|
brightness_scale: 100
|
||||||
on_command_type: "brightness"
|
|
||||||
brightness_value_template: "{{ value_json.Dimmer }}"
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
hs_command_topic: "cmnd/light_lohas_6/HSBColor"
|
hs_command_topic: "cmnd/light_lohas_6/HSBColor"
|
||||||
hs_state_topic: "tele/light_lohas_6/STATE"
|
hs_state_topic: "tele/light_lohas_6/STATE"
|
||||||
@@ -265,6 +269,52 @@ light:
|
|||||||
rgb_command_topic: "cmnd/light_lohas_6/Color"
|
rgb_command_topic: "cmnd/light_lohas_6/Color"
|
||||||
rgb_state_topic: "tele/pc_light/STATE"
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
|
qos: 1
|
||||||
|
retain: false
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_avatar_small_1"
|
||||||
|
availability_topic: "tele/light_avatar_small_1/LWT"
|
||||||
|
command_topic: "cmnd/light_avatar_small_1/POWER"
|
||||||
|
state_topic: "tele/light_avatar_small_1/STATE"
|
||||||
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
brightness_command_topic: "cmnd/light_avatar_small_1/Dimmer"
|
||||||
|
brightness_state_topic: "tele/light_avatar_small_1/STATE"
|
||||||
|
brightness_scale: 100
|
||||||
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
|
on_command_type: "brightness"
|
||||||
|
white_value_command_topic: "cmnd/light_avatar_small_1/WHITE"
|
||||||
|
white_value_scale: 100
|
||||||
|
white_value_state_topic: "tele/light_avatar_small_1/STATE"
|
||||||
|
white_value_template: "{{ value_json.WHITE }}"
|
||||||
|
rgb_command_topic: "cmnd/light_avatar_small_1/Color"
|
||||||
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
|
payload_on: "ON"
|
||||||
|
payload_off: "OFF"
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
retain: false
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_avatar_small_2"
|
||||||
|
availability_topic: "tele/light_avatar_small_2/LWT"
|
||||||
|
command_topic: "cmnd/light_avatar_small_2/POWER"
|
||||||
|
state_topic: "tele/light_avatar_small_2/STATE"
|
||||||
|
state_value_template: "{{ value_json.POWER }}"
|
||||||
|
brightness_command_topic: "cmnd/light_avatar_small_2/Dimmer"
|
||||||
|
brightness_scale: 100
|
||||||
|
brightness_state_topic: "tele/light_avatar_small_2/STATE"
|
||||||
|
brightness_value_template: "{{ value_json.Dimmer }}"
|
||||||
|
on_command_type: "brightness"
|
||||||
|
white_value_command_topic: "cmnd/light_avatar_small_2/WHITE"
|
||||||
|
white_value_scale: 100
|
||||||
|
white_value_state_topic: "tele/light_avatar_small_2/STATE"
|
||||||
|
white_value_template: "{{ value_json.WHITE }}"
|
||||||
|
rgb_command_topic: "cmnd/light_avatar_small_2/Color"
|
||||||
|
rgb_state_topic: "tele/pc_light/STATE"
|
||||||
|
rgb_value_template: "{{ value_json.Color.split(',')[0:3]|join(',') }}"
|
||||||
payload_on: "ON"
|
payload_on: "ON"
|
||||||
payload_off: "OFF"
|
payload_off: "OFF"
|
||||||
payload_available: "Online"
|
payload_available: "Online"
|
||||||
@@ -383,6 +433,26 @@ sensor:
|
|||||||
unit_of_measurement: "%"
|
unit_of_measurement: "%"
|
||||||
value_template: "{{ value_json.Wifi.RSSI }}"
|
value_template: "{{ value_json.Wifi.RSSI }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_avatar_small_1_wifi"
|
||||||
|
availability_topic: "tele/light_avatar_small_1/LWT"
|
||||||
|
device_class: signal_strength
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
state_topic: "tele/light_avatar_small_1/STATE"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
value_template: "{{ value_json.Wifi.RSSI }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_avatar_small_2_wifi"
|
||||||
|
availability_topic: "tele/light_avatar_small_2/LWT"
|
||||||
|
device_class: signal_strength
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
state_topic: "tele/light_avatar_small_2/STATE"
|
||||||
|
unit_of_measurement: "%"
|
||||||
|
value_template: "{{ value_json.Wifi.RSSI }}"
|
||||||
|
|
||||||
switch:
|
switch:
|
||||||
- platform: mqtt
|
- platform: mqtt
|
||||||
name: "PC Light Fade"
|
name: "PC Light Fade"
|
||||||
@@ -505,6 +575,29 @@ switch:
|
|||||||
state_topic: "stat/light_lohas_6/RESULT"
|
state_topic: "stat/light_lohas_6/RESULT"
|
||||||
value_template: "{{ value_json.Fade }}"
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_avatar_small_1_fade"
|
||||||
|
availability_topic: "tele/light_avatar_small_1/LWT"
|
||||||
|
command_topic: "cmnd/light_avatar_small_1/FADE"
|
||||||
|
icon: mdi:gradient
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
state_topic: "stat/light_avatar_small_1/RESULT"
|
||||||
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
|
- platform: mqtt
|
||||||
|
name: "light_avatar_small_2_fade"
|
||||||
|
availability_topic: "tele/light_avatar_small_2/LWT"
|
||||||
|
command_topic: "cmnd/light_avatar_small_2/FADE"
|
||||||
|
icon: mdi:gradient
|
||||||
|
payload_available: "Online"
|
||||||
|
payload_not_available: "Offline"
|
||||||
|
qos: 1
|
||||||
|
state_topic: "stat/light_avatar_small_2/RESULT"
|
||||||
|
value_template: "{{ value_json.Fade }}"
|
||||||
|
|
||||||
|
|
||||||
automation:
|
automation:
|
||||||
- alias: Lighting · Sync Tasmota states on start-up
|
- alias: Lighting · Sync Tasmota states on start-up
|
||||||
initial_state: true
|
initial_state: true
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ input_boolean:
|
|||||||
light:
|
light:
|
||||||
- platform: template
|
- platform: template
|
||||||
lights:
|
lights:
|
||||||
tuya_kitchen_main_lights:
|
tuya_kitchen_main:
|
||||||
friendly_name: Kitchen main lights (scene)
|
friendly_name: Kitchen main lights (scene)
|
||||||
value_template: "{{ is_state('input_boolean.tuya_kitchen_main_lights_state', 'on') }}"
|
value_template: "{{ is_state('input_boolean.tuya_kitchen_main_lights_state', 'on') }}"
|
||||||
icon_template: bha:ceiling-lamp-plafond
|
icon_template: bha:ceiling-lamp-plafond
|
||||||
@@ -27,7 +27,7 @@ light:
|
|||||||
service: input_boolean.turn_off
|
service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.tuya_kitchen_main_lights_state
|
entity_id: input_boolean.tuya_kitchen_main_lights_state
|
||||||
|
|
||||||
tuya_kitchen_secondary_lights:
|
tuya_kitchen_secondary:
|
||||||
friendly_name: Kitchen secondary lights (scene)
|
friendly_name: Kitchen secondary lights (scene)
|
||||||
value_template: "{{ is_state('input_boolean.tuya_kitchen_secondary_lights_state', 'on') }}"
|
value_template: "{{ is_state('input_boolean.tuya_kitchen_secondary_lights_state', 'on') }}"
|
||||||
icon_template: bha:ceiling-lamp-plafond
|
icon_template: bha:ceiling-lamp-plafond
|
||||||
@@ -38,7 +38,7 @@ light:
|
|||||||
service: input_boolean.turn_off
|
service: input_boolean.turn_off
|
||||||
entity_id: input_boolean.tuya_kitchen_secondary_lights_state
|
entity_id: input_boolean.tuya_kitchen_secondary_lights_state
|
||||||
|
|
||||||
tuya_hallway_main_lights:
|
tuya_hallway_main:
|
||||||
friendly_name: Hallway main lights (scene)
|
friendly_name: Hallway main lights (scene)
|
||||||
value_template: "{{ is_state('input_boolean.tuya_hallway_main_lights_state', 'on') }}"
|
value_template: "{{ is_state('input_boolean.tuya_hallway_main_lights_state', 'on') }}"
|
||||||
icon_template: bha:ceiling-lamp-plafond
|
icon_template: bha:ceiling-lamp-plafond
|
||||||
@@ -74,11 +74,11 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- delay: 00:00:03
|
- delay: 00:00:03
|
||||||
|
|
||||||
- service_template: "input_boolean.turn_{{ states('light.kitchen_main_lights') }}"
|
- service_template: "input_boolean.turn_{{ states('light.kitchen_main') }}"
|
||||||
entity_id: input_boolean.tuya_kitchen_main_lights_state
|
entity_id: input_boolean.tuya_kitchen_main_lights_state
|
||||||
|
|
||||||
- service_template: "input_boolean.turn_{{ states('light.kitchen_secondary_lights') }}"
|
- service_template: "input_boolean.turn_{{ states('light.kitchen_secondary') }}"
|
||||||
entity_id: input_boolean.tuya_kitchen_secondary_lights_state
|
entity_id: input_boolean.tuya_kitchen_secondary_lights_state
|
||||||
|
|
||||||
- service_template: "input_boolean.turn_{{ states('light.hallway_main_lights') }}"
|
- service_template: "input_boolean.turn_{{ states('light.hallway_main') }}"
|
||||||
entity_id: input_boolean.tuya_hallway_main_lights_state
|
entity_id: input_boolean.tuya_hallway_main_lights_state
|
||||||
|
|||||||
@@ -28,4 +28,4 @@ automation:
|
|||||||
offset: "+00:00:00"
|
offset: "+00:00:00"
|
||||||
action:
|
action:
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id: light.all_lights
|
entity_id: light.all
|
||||||
|
|||||||
@@ -42,10 +42,10 @@ automation:
|
|||||||
action:
|
action:
|
||||||
- service: script.lighting_temperature_adjust
|
- service: script.lighting_temperature_adjust
|
||||||
data:
|
data:
|
||||||
entity_id: light.master_bedroom_main_lights
|
entity_id: light.master_bedroom_main
|
||||||
- service: script.lighting_temperature_adjust
|
- service: script.lighting_temperature_adjust
|
||||||
data:
|
data:
|
||||||
entity_id: light.living_room_main_lights
|
entity_id: light.living_room_main
|
||||||
- service: script.lighting_temperature_adjust
|
- service: script.lighting_temperature_adjust
|
||||||
data:
|
data:
|
||||||
entity_id: light.hallway_entrance_lights
|
entity_id: light.hallway_entrance
|
||||||
|
|||||||
@@ -29,22 +29,26 @@ automation:
|
|||||||
data:
|
data:
|
||||||
scene_id: plex_before_start
|
scene_id: plex_before_start
|
||||||
snapshot_entities:
|
snapshot_entities:
|
||||||
- light.living_room_main_lights
|
- light.living_room_main
|
||||||
- light.pc
|
- light.light_avatar_small_2
|
||||||
- light.master_bedroom_main_lights
|
- light.living_room_ambient_main
|
||||||
- light.tuya_kitchen_main_lights
|
- light.light_avatar_small_1
|
||||||
- light.tuya_kitchen_secondary_lights
|
- light.master_bedroom_main
|
||||||
- light.hallway_entrance_lights
|
- light.tuya_kitchen_main
|
||||||
- light.tuya_hallway_main_lights
|
- light.tuya_kitchen_secondary
|
||||||
|
- light.hallway_entrance
|
||||||
|
- light.tuya_hallway_main
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.living_room_main_lights
|
- light.living_room_main
|
||||||
- light.pc
|
- light.light_avatar_small_2
|
||||||
- light.master_bedroom_main_lights
|
- light.living_room_ambient_main
|
||||||
- light.tuya_kitchen_main_lights
|
- light.light_avatar_small_1
|
||||||
- light.tuya_kitchen_secondary_lights
|
- light.master_bedroom_main
|
||||||
- light.hallway_entrance_lights
|
- light.tuya_kitchen_main
|
||||||
- light.tuya_hallway_main_lights
|
- light.tuya_kitchen_secondary
|
||||||
|
- light.hallway_entrance
|
||||||
|
- light.tuya_hallway_main
|
||||||
|
|
||||||
- alias: TV · Plex · Restore house after Plex
|
- alias: TV · Plex · Restore house after Plex
|
||||||
trigger:
|
trigger:
|
||||||
@@ -58,12 +62,12 @@ automation:
|
|||||||
- service: scene.turn_on
|
- service: scene.turn_on
|
||||||
# FIXME: Light colors are not being snapshotted/restored properly.
|
# FIXME: Light colors are not being snapshotted/restored properly.
|
||||||
entity_id: scene.plex_before_start
|
entity_id: scene.plex_before_start
|
||||||
- delay: 00:00:01
|
# - delay: 00:00:01
|
||||||
- condition: state
|
# - condition: state
|
||||||
entity_id: light.pc
|
# entity_id: light.light_avatar_small_2
|
||||||
state: "on"
|
# state: "on"
|
||||||
# FIXME: There is nothing else to fix the temperature of the PC light
|
# # FIXME: There is nothing else to fix the temperature of the PC light
|
||||||
- service: light.turn_on
|
# - service: light.turn_on
|
||||||
entity_id: light.pc
|
# entity_id: light.light_avatar_small_2
|
||||||
data:
|
# data:
|
||||||
color_temp: 250
|
# color_temp: 250
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ automation:
|
|||||||
homeassistant:
|
homeassistant:
|
||||||
customize:
|
customize:
|
||||||
media_player.master_bedroom:
|
media_player.master_bedroom:
|
||||||
friendly_name: M. Bedroom Sonos
|
friendly_name: Bedroom Sonos
|
||||||
icon: mdi:speaker
|
icon: mdi:speaker
|
||||||
media_player.living_room:
|
media_player.living_room:
|
||||||
friendly_name: Living room Sonos
|
friendly_name: Living room Sonos
|
||||||
|
|||||||
@@ -72,11 +72,11 @@ script:
|
|||||||
media_content_id: "https://raw.githubusercontent.com/saeedsohi/siren/master/FireTrucksSirens.mp3"
|
media_content_id: "https://raw.githubusercontent.com/saeedsohi/siren/master/FireTrucksSirens.mp3"
|
||||||
media_content_type: music
|
media_content_type: music
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside
|
||||||
data:
|
data:
|
||||||
brightness_pct: 100
|
brightness_pct: 100
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside
|
||||||
data:
|
data:
|
||||||
effect: Police
|
effect: Police
|
||||||
|
|
||||||
@@ -85,7 +85,7 @@ script:
|
|||||||
- service: media_player.media_stop
|
- service: media_player.media_stop
|
||||||
entity_id: media_player.master_bedroom
|
entity_id: media_player.master_bedroom
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside
|
||||||
data:
|
data:
|
||||||
brightness_pct: 60
|
brightness_pct: 60
|
||||||
kelvin: 2400
|
kelvin: 2400
|
||||||
|
|||||||
@@ -84,10 +84,10 @@ automation:
|
|||||||
Master bedroom: {{ states('binary_sensor.bedroom_right_window_on_off') }}
|
Master bedroom: {{ states('binary_sensor.bedroom_right_window_on_off') }}
|
||||||
|
|
||||||
Lights:
|
Lights:
|
||||||
Living room: {{ states('light.living_room_all_lights') }}
|
Living room: {{ states('light.living_room') }}
|
||||||
Master bedroom: {{ states('light.master_bedroom_all_lights') }}
|
Master bedroom: {{ states('light.master_bedroom') }}
|
||||||
Kitchen: {{ states('light.kitchen_all_lights') }}
|
Kitchen: {{ states('light.kitchen') }}
|
||||||
Hallway: {{ states('light.hallway_all_lights') }}
|
Hallway: {{ states('light.hallway') }}
|
||||||
|
|
||||||
- alias: IFTTT · Call service
|
- alias: IFTTT · Call service
|
||||||
trigger:
|
trigger:
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
# Set master bedroom state
|
# Set master bedroom state
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bedside_light
|
entity_id: light.bedside
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id: light.bed_led
|
entity_id: light.bed_led
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- service: light.turn_on
|
- service: light.turn_on
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.hallway_entrance_lights
|
- light.hallway_entrance
|
||||||
- light.bed_led
|
- light.bed_led
|
||||||
- light.browser_kitchen
|
- light.browser_kitchen
|
||||||
data:
|
data:
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ script:
|
|||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
- service: homeassistant.turn_off
|
- service: homeassistant.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.all_lights
|
- light.all
|
||||||
- media_player.nvidia_shield
|
- media_player.nvidia_shield
|
||||||
- media_player.living_room_tv
|
- media_player.living_room_tv
|
||||||
- switch.titanium
|
- switch.titanium
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ script:
|
|||||||
entity_id: group.all_sonos
|
entity_id: group.all_sonos
|
||||||
- service: light.turn_off
|
- service: light.turn_off
|
||||||
entity_id:
|
entity_id:
|
||||||
- light.all_lights
|
- light.all
|
||||||
- light.browser_kitchen
|
- light.browser_kitchen
|
||||||
- service: fan.turn_off
|
- service: fan.turn_off
|
||||||
entity_id: fan.philips_airpurifier
|
entity_id: fan.philips_airpurifier
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
>-
|
>-
|
||||||
|
|
||||||
{%- if is_state('light.all_lights', 'on') -%}
|
{%- if is_state('light.all', 'on') -%}
|
||||||
There are
|
There are
|
||||||
{%- for state in states.light if state.state == 'on' -%}
|
{%- for state in states.light if state.state == 'on' -%}
|
||||||
{% if loop.last %} {{ loop.index }} {% endif %}
|
{% if loop.last %} {{ loop.index }} {% endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user