123
(Taras)
November 15, 2021, 10:25pm
21
If you wish, you can add a name
option to each light in the card so that it’s easier to identify each one of the nine lights when they are displayed in the card.
type: entities
entities:
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe1
name: Lampe 1
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe2
name: Lampe 2
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe3
name: Lampe 3
... etc ...
mega-hz
(Wolfram)
November 15, 2021, 10:31pm
22
yes, that is also a good idea!
Just put it in the code…
Nice options would be:
if a PIR Sensor detects a motion, turn on Lampe 2+3 to 100%
if Wolfram or Sabine is at home, turn all lamps to 70%
So many ideas…
mega-hz
(Wolfram)
November 16, 2021, 10:36am
23
in the groups.yaml i made a new group:
partyraum-lampen:
name: Partyraum Lampen
entities:
- light.partyraum_lampe1
- light.partyraum_lampe2
- light.partyraum_lampe3
- light.partyraum_lampe4
- light.partyraum_lampe5
- light.partyraum_lampe6
- light.partyraum_lampe7
- light.partyraum_lampe8
- light.partyraum_lampe9
How can i place a “main-switch” to turn all 9 Lamps on or off?
123
(Taras)
November 16, 2021, 12:57pm
24
Use a Light Group instead of a Group and it will create a light
entity that can control all nine lights (on/off, brightness, etc).
mega-hz
(Wolfram)
November 16, 2021, 1:16pm
25
light:
- platform: group
name: Partyraum Lampen
entities:
- light.partyraum_lampe1
- light.partyraum_lampe2
- light.partyraum_lampe3
- light.partyraum_lampe4
- light.partyraum_lampe5
- light.partyraum_lampe6
- light.partyraum_lampe7
- light.partyraum_lampe8
- light.partyraum_lampe9
like this?
should it go into the coniguration.yaml or in groups.yaml?
EDIT: Ok, it must be in the configruation.yaml. Just found out…
I can use a new button to switch all on/off.
But can i put this button also into the slider-card?
EDIT: i found a way:
type: entities
entities:
- light.partyraum_lampen <--------------
- type: 'custom:slider-entity-row' <---------------
entity: light.partyraum_lampe1
name: Lampe 1
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe2
name: Lampe 2
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe3
name: Lampe 3
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe4
name: Lampe 4
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe5
name: Lampe 5
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe6
name: Lampe 6
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe7
name: Lampe 7
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe8
name: Lampe 8
- type: 'custom:slider-entity-row'
entity: light.partyraum_lampe9
name: Lampe 9
now there is a switch above those 9 sliders, perfect!
mega-hz
(Wolfram)
November 16, 2021, 1:30pm
26
another effekt i just watched:
if i turn Lamps manually to 0% and switch all off and on again, the lamps don’t have 0%, they have 5-10%!
Is there a option to save the last states and to give default values?