Button card - buttons to jump directly to slider values

Hello,

I’ve just moved to Home Assistant over the Christmas break from a different platform and its brilliant. I am however stuck with what sounds like a ridiculously simple thing.

I have some devices which are DMX controlled - I have installed the DMX integration and the the hardware is all working as it should.

One of the devices uses a channel for colour and positions on the ‘brightness’ channel slider correspond to different colours.

0-10 = red
11-20 = blue
21-30 = yellow

etc…

I’m trying to use the Button Card Configuration to create a series of buttons which recall each colour value but cant figure it out :frowning:

I guess a more conventional example would be a lamp brightness slider where what you actually want is a set of buttons for off, 25%, 50%, 75% etc.

I’m embarrassed to ask such a simple question but despite having read lots of forum posts the solution just isn’t clear to me.

Thanks,

Joel.

This creates a button which turns on some light with 50% brightness:

- type: button
  entity: light.some_light
  tap_action:
	action: call-service
	service: light.turn_on
	service_data:
	  entity_id: light.some_light
	  brightness_pct: 50
1 Like

Hi there,

Thankyou so much it worked just as described :smiley:

On with the learning curve!

Joel.

Really sorry to resurrect this thread but what I’ve been scratching my head over today is very much related.

I would like a toggle button for a light that can toggle between a particular brightness and off… i cant work out how to do it - any ideas?

Cheers!