#Less vs more automations for a button

1 messages · Page 1 of 1 (latest)

fiery pewter
#

Hello everyone,

Just wondering if there is a general consensus for less vs more automations. In my example, I have a zigbee remote that has 8 different possible inputs. Personally, I feel that it would be better organization wise to have all 8 inputs within the same automation. Some inputs will adjust lights, others will start the robot vacuum, etc. I'm wondering if this would cause the automation to take longer to respond to my button press, etc. since it would be choosing an action depending on which of 8 inputs was used

severe umbra
#

I do that too- a single automation handling up to 12 different types of button presses from a single device. Assuming your device can communicate with HA clearly, the triggering should not be rate-limited. But whether each automation run finishes execution in a timely fashion would depend on how long it takes to complete the sequence of actions per button press. To avoid in-progress runs from blocking new runs, you could deal with this through changing the automation mode: to parallel, queued or restart.

fiery pewter
#

Okay, awesome! Thanks for the reply. The sequences of actions would be relatively simple and short, mostly just light on/off kind of short

severe umbra
#

Which remote are you using, if you don't mind me asking?

fiery pewter
#

IKEA's Somrig

#

Having some trouble sorting out the automation, but I'll figure it out

severe umbra
#

Are you configuring your own automation listening for the button press events or using a blueprint?

fiery pewter
#

Ooh.. There's a blueprint?

#

That might make things a bit easier 😅

#

Are you using a blueprint as well?

severe umbra
#

But seems like there are somrig blueprints on the community exchange.

fiery pewter
#

Managed to find those after you mentioned blueprints. There's a slight delay when I press my shortcut buttons so I'm going to see if I can cut that down a bit by building an automation myself. Just for the fun of it and learning experience