Help for understanding how to create custom light widget

Light switch. When you click the bulb light goes on and off, an long press would make the popup show up to ajust brightness and eventualy color.

Have a look at the readme and dev guide for widgets. I’m writing one at the moment and saw a piece on opening a model which is what you want.
Nice idea actually.

I did have a look already, but still, can’t figure it out.
Are you wirting this type of widget at the moment?

Sorry, missed this.

I’m not working on something like that at the moment but like the idea of a model for settings.

I’ll have a play around with one over the weekend if I can and post a sample.

Would be very nice, that would put me on the (right) way…

Crispin,

Do you have any time to try?
Thanks