#Creating Blueprint which also needs Helpers

1 messages · Page 1 of 1 (latest)

rose zinc
#

So I just finished creating a nice way to control multiple dimmable devices with one Shelly RC4 with a "select" feature to select the target device, then two buttons to increase or reduce brightness.

So anyway, this requires a dropdown helper which stores the currently selected device.

Is there a better way to do this? If I create a blueprint to make more of these automations easily, then the helper has to be created manually for each.

There must be a better way I just don't know what else to try to store the value.

I don't think blueprints can create helpers, not sure haven't used it before

lavish plaza
#

You can't create a helper within an automation blueprint, but you could create a blueprint that creates Template Select entities. In practice a Template Select is like an Input Select combined with an automation. I've shared a couple blueprints for Template Selects over on the blueprint exchange if you want to see an example.

You would need to share more details about your current automation blueprint for us to help you determine if it would make more sense as a Template Select.

rose zinc
#

ok Ill try it out first and see where i get stuck

#

thank you

rose zinc
#

Actually I haven’t perfected the automation itself, it works good on one remote but not another one even though its part of the same automation.

Two dimmable strips called Rack and Bed

Two shelly RC4 called Room and Bed

These remotes will be identical in function. (Im basically building a general purpose remote for easy control of more than one light without needing a phone or tablet)

When remote button 2 pressed. It will cycle through all the specified lights. Each light will flash or something as a visual cue that its currently selected.

Then pressing button 3 and 4 will increase or decrease the brightness.

Is there an easy way to do this, i had to use ai to do it and its nearly there, but for some reason when doing it from the Room remote, it doesn’t work properly

#

The current automation is written in YAML, ai told me it used snapshots in the code to save the last state of the light (brightness) is this the best way? Or is writing the state to a purpose made “variable” which can be fetched when needed better? (Like a number value helper)