I think i ran into the woods and could’nt find out…
Turning the rotary should increase/ decrease the value of the variable and set the Light Level (LED).
First step of my first project…
The other attempts can be seen via my Profile
[21:27:56.975][D][main:530]: clockwise
[21:27:56.975][V][light:082]: 'Monochromatic Light' Setting:
[21:27:56.978][V][light:095]: State: ON
[21:27:56.979][V][light:070]: Brightness: 5%
[21:27:56.979][V][light:133]: Transition length: 1.0s
[21:27:56.992][V][sensor:077]: 'Rotary Encoder Sensor 1': Received new state 1.000000
[21:27:56.992][V][sensor:125]: 'Rotary Encoder Sensor 1' >> 1 steps
[21:27:58.567][D][main:530]: clockwise
[21:27:58.567][V][light:082]: 'Monochromatic Light' Setting:
[21:27:58.567][V][light:070]: Brightness: 10%
[21:27:58.588][V][light:133]: Transition length: 1.0s
[21:27:58.589][V][sensor:077]: 'Rotary Encoder Sensor 1': Received new state 2.000000
[21:27:58.589][V][sensor:125]: 'Rotary Encoder Sensor 1' >> 2 steps
[21:28:00.044][D][main:540]: anticklockwise
[21:28:00.045][V][light:082]: 'Monochromatic Light' Setting:
[21:28:00.045][V][light:070]: Brightness: 5%
[21:28:00.055][V][light:133]: Transition length: 1.0s
[21:28:00.055][V][sensor:077]: 'Rotary Encoder Sensor 1': Received new state 1.000000
[21:28:00.056][V][sensor:125]: 'Rotary Encoder Sensor 1' >> 1 steps
[21:28:01.070][D][main:540]: anticklockwise
[21:28:01.070][V][light:082]: 'Monochromatic Light' Setting:
[21:28:01.070][V][light:095]: State: OFF
[21:28:01.096][V][light:070]: Brightness: 0%
[21:28:01.096][V][light:133]: Transition length: 1.0s
[21:28:01.096][V][sensor:077]: 'Rotary Encoder Sensor 1': Received new state 0.000000
[21:28:01.101][V][sensor:125]: 'Rotary Encoder Sensor 1' >> 0 steps
The Brightness increases and decreases but how do i store the value because i need to switch the light on and off via the push button and restore the previous brightness.