1 button, multiple outputs (HA14)

Good afternoon,
my first post here, new to HA.

I am making my dashboard and would like to use the “button” function to switch multiple entities. So in my case I have 3 shelly devices and with 1 button push I would like to switch them all to ON and push again for OFF.

I can do this with ‘entities’, but then I see multiple on/off switches and I would like to have a nice ‘light button’.

Can someone give me some advice for this ?

Thx !

Hello,

you should use Groups

You add in your configuration.yaml a group like:


switch:
  - platform: group
    name: group_name
    entities:
      - switch.nr1
      - switch.nr2

then instead of individual entities you call switch.group_name in you dashboard.

Or Settings>Device & Entities > Helper > Create Helper > Groups > Group Switch

hope it helps

You can also add a Group helper in HA Devices & Services, tab Helper.

Good evening,

thx for the reply.
I tried the group switch and group button under ‘helper’, but I don’t see all my Shelly switches. If I take Group Button, I only see ‘Reboot’ actions. If I take Group Switch I only see 4 Shelly devices and I have 20 in total.

What am I doing wrong ?

Hello,

shelly providing a switch for light and not a button, so I believe it is normal you see noting under buttons apart restart.

Check each device for entities and look at the domain of your switching entity. (Light, button, switch….)
So if you have 20 just check which is what under integration or entities list.

After that you can understand what you have to group.

If you have entities in different domain you can change it using helpers as well, like a natively switch can be changed to light.

Can you specify the model of shelly, is it a relay or a wall switch?

Maybe these show as light?

I own some shellys only since a couple of weeks and I did not really looked into it :grin: yet, too many ideas for few spare hours.

Hope it helps.