Help needed: JSON for dimming lights

Dear friends of automation and HA,

I am struggeling with a JSON code. That’s not a huge surprise since I am not a coder :wink:

What I use:

Challenge:
The Elgato Stream Deck Plus has 4 controll dials. One of them should be used to controll the brightness of the LED strip. In order to do more than just toggle the light.turn_on entity you need to write a JSON. The attributes are nicely desribed here, I just dont know how to put this in the JSON code. What do I have to enter into the JSON section?
This is what I see in the add-on menue of the Elgato Stream Deck Software.
Bildschirmfoto 2024-02-13 um 14.32.13
Bildschirmfoto 2024-02-13 um 14.32.25
Bildschirmfoto 2024-02-13 um 14.32.37
Bildschirmfoto 2024-02-13 um 14.32.46
Bildschirmfoto 2024-02-13 um 14.32.55

Could anyone help me out here? I am really not a programmer…
Thanks
Julz

You have to use “English” quotes, I’m afraid. Should look like this:

{"Option": "brightness"}

Damn, you are right. Noob error. Changed it and that erases the JSON error from the picture above.
grafik

However, does not change brightness on the LED strip yet. Something missing?

See here:

You probably want something like

{ "brightness_pct": 70 }

Yeah, we are getting there. The JSON you suggested at least does something for the first time :partying_face:
It sets the brightness once to the value i.e. 70
However, since it is a controll wheel I want it to increase/decrease when the dial is turned.


Any idea how to solve that?

The question might be how to include those variables:
grafik

I’d be guessing off the documentation, as I don’t have one of those. Now you’ve solved the initial issue, I’d start another topic “Using Elgato StreamDeck to dim lights” or something like that.

1 Like

I am not sure if you have solved this , but here is how you control the brightness using your dial.
Domain = light
Service = Turn on
Enitity = “your light”
Service Data JSON =
{
“brightness”: {{ rotationAbsolute }}
}

1 Like