Push button Dimmer
Posted: 21 May 2018, 11:13
Hello
I want to use an espeasy board to replace existing push button dimmer and be able to control also the lights from remote by Domoticz
I understood good how to do it from Domoticz (write to a GPIO defined as "PWM"), but I want to have the dimmer also working from one push button locally.
This means :
Short push on button (0.25sec) : On at the latest programmed level, second short push on button : Off
Long push on button : Light up from existing level to max level in 1 ... 2 sec seconds, long push on button : light down from existing level to zero When switch is released stay at the level.
In basic like language i can create a loop and increment/decrement a variable ... and send this variable to a GPIO defined as a pwm output but we cannot created loops in rules !!
I saw on the "Devices" the possibility to configure a switch input as a dimmer with a dim level but found no explanation about this in the forum or tutorials
Can somebody help in starting this project ?
Patou
I want to use an espeasy board to replace existing push button dimmer and be able to control also the lights from remote by Domoticz
I understood good how to do it from Domoticz (write to a GPIO defined as "PWM"), but I want to have the dimmer also working from one push button locally.
This means :
Short push on button (0.25sec) : On at the latest programmed level, second short push on button : Off
Long push on button : Light up from existing level to max level in 1 ... 2 sec seconds, long push on button : light down from existing level to zero When switch is released stay at the level.
In basic like language i can create a loop and increment/decrement a variable ... and send this variable to a GPIO defined as a pwm output but we cannot created loops in rules !!
I saw on the "Devices" the possibility to configure a switch input as a dimmer with a dim level but found no explanation about this in the forum or tutorials
Can somebody help in starting this project ?
Patou