Particularly I prefer using the new light group platform because it’s easier to setup, specially when compared to the template switch approach and yet has the advantage of controlling the groups attributes. Hasscasts has published a great video about Light Groups Now, besides the icons being changed with each change of state (on or off) of the groups, we have the ability to change attributes again. Light : - platform : lifx - platform : group name : Ceiling Lights entities : - light.ceiling1 - light.ceiling2 - platform : group name : Lamp Lights entities : - light.lamp1 customize : light.ceiling_lights : friendly_name : " Ceiling Lights" icon : mdi:ceiling-light light.lamp_lights : friendly_name : " Lamp Lights" icon : mdi:lamp group : light_group : name : " Light Group" control : hidden entities : - light.ceiling_lights - light.lamp_lightsĪwesome. On the other hand we lose the possibility of changing attributes.īeginning in version 0.65 we have a new platform called Light Group in the Light component. Now the icons were changed every time the corresponding group was turned on or off. Switch : - platform : template switches : room_ceiling_lights : value_template : " " turn_on : service : light.turn_on entity_id : group.room_lamp_lights turn_off : service : light.turn_off entity_id : group.room_lamp_lights customize : switch.room_ceiling_lights : friendly_name : Ceiling icon : mdi:ceiling-light switch.room_lamp_lights : friendly_name : Lamp icon : mdi:lamp group : switch_group : name : " Switch" control : hidden entities : - switch.room_ceiling_lights - switch.room_lamp_lights I decided to try it using a Template Switch. Then I found this discussion on the Home Assistant Community Forum which led me to this issue on GitHub where the use of the Switch component was suggested. That was the biggest drawback of this approach in my opinion. This can be a bit frustrating if you use only the frontend to view and control those groups. I was amazed.īut (there is always a but) the color of the icons were not changed when the group was turned on or off (lights). Now I could turn on or off both ceiling lights at the same time, I could still change their attributes like brightness, color and color temperature at the same time. This was a great improvement in day-to-day use. When you click/tap on the name (or icon) of the group, Home Assistant displays this card where you can control some attributes. Group : room_lights : name : " Group" entities : - group.room_ceiling_lights - group.room_lamp_lights room_ceiling_lights : name : " Ceiling Lights" entities : - light.ceiling1 - light.ceiling2 room_lamp_lights : name : " Lamp Lights" entities : - light.lamp1 customize : group.room_ceiling_lights : friendly_name : " Ceiling Lights" icon : mdi:ceiling-light group.room_lamp_lights : friendly_name : " Lamp Lights" icon : mdi:lamp
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |