Control a variable with several levels

I have a general question about the platform. I want to know if it’s possible to control some variable with several levels. For example, to set such variable on “20” (decimal) and then set a PWM with 20% Duty Cycle on the remote node. It would be great a bar, or something similar.

Thanks in advance for the help

I think that you should define an input resource. Take a look at this post.

Yes, as @szormpas commented, you can define an input resource for controlling your PWM, and then attach an slider in a dashboard associated to that input. What is the hw you are using? We can define an sketch rapidly…