Hi All
Ive got a sonoff touch 3 gang. On one of the buttons i would like to dim the connected lights. Is there something i can do or put inbetween to dim the lights?
If i turn the lights off , the device in the middle will lose power…
TIA
Hi All
Ive got a sonoff touch 3 gang. On one of the buttons i would like to dim the connected lights. Is there something i can do or put inbetween to dim the lights?
If i turn the lights off , the device in the middle will lose power…
TIA
you’ll still need smart dimmer switch for that with a regular bulb.
if you have smart bulb, and the sonoff touch is flashed with tasmota.
Enable detached relay and use button actions like hold to do dimming.
Thanks for your reply.
I want to use a normal LED bulb. I have 3x 7W on the live wire.
The wall switch is a sonoff touch so you say i could change one of the buttons to act differently?
can i then get a sonoff d1 dimmer module and put it between the sonoff wall switch and the lights?
I have the wall switch flashed with tasmota yes.
Yes, you can do that
I would also recommend setting up detached relay and using device group so you can still toggle/dimming from the T2 switch
The dimmer will be without power until the T2 has switched on. Do you think this will be an issue?
Set the relay for dimmer to ‘output high’. This will keep powering the dimmer.
Set another pin as fake relay for the dimmer
Enable device group on both switch & dimmer.
This is covered in the youtube link i posted earlier
Optional - setoption11 to change the button for T2 to dimmer mode.
Thank you!
Sorry. One more question.
Because it’s a T2 I need to target the 1st button as a dimmer.
Are you sure I should use:
SetOption11 Swap button single and double press functionality
0 = disable (default)
1 = enable
Sorry, it’s switchmode11 not setoption
Also enable so88 to separate each relay to different group since T2 is multigang switch
Ah thought so.
Thanks for 88 yes. I’ve used this before on a grouping on a 2 gang to switch off a light with 2 individual sonoffs
Hello!
I got my dimmer today. Ive done all the config. The on and off works well but i cant seem to get the dimmer to log in console. I set SwitchMode1 11
but i dont see it log when i hold the button. Are these rules i should add?
Thanks
Right, you still need to add the rules
https://tasmota.github.io/docs/Rules/#control-a-dimmer-with-one-switch
Yes,
I added as is but still not working. The only thing that happens right now is the on and off.
With group share it should send the commands straight to the dimmer as if they were one unit.
Backlog SwitchMode 11; SetOption32 10; Rule1 1;
Rule1
on system#boot do var1 + ENDON
on switch1#state=2 do POWER TOGGLE ENDON
on switch1#state=4 do DIMMER %var1% ENDON
on switch1#state=7 do event upordown=%var1% ENDON
on event#upordown=+ do var1 - ENDON
on event#upordown=- do var1 + ENDON
If i do this it works but its very slow and delayed.
Rule1
ON switch1#state=2 DO publish cmnd/bedroom_dimmer/POWER TOGGLE ENDON
ON switch1#state=4 DO publish cmnd/bedroom_dimmer/DIMMER %mem1% ENDON
ON switch1#state=5 DO mem1 - ENDON
ON switch1#state=6 DO mem1 + ENDON
Try increasing DimmerStep,
The default is 10.
Do you think it will solve the DIMMER command unknown? The command works on the dimmer D1. Not on the T2
I’d prefer not to do the publish route.
About that, dimmer command requires light or dimmer device.
So you’d need to emulate light on your switch by assigning fake pwm 1 to any pin (for brightness)
I’ve done this for a single switch, so you’d need to test this with multi gang
Ok, that works but adds another state and POWER3 which has another attribute for dimmer (0-100)
Its almost like i need to assign the values of POWER 3 to POWER 1.
19:18:12.766 MQT: stat/main_bedroom/RESULT = {"POWER3":"ON","Dimmer":21}
19:19:48.265 MQT: stat/main_bedroom/RESULT = {"POWER1":"OFF"}
19:19:48.268 MQT: stat/main_bedroom/POWER1 = OFF (retained)
19:19:50.976 MQT: stat/main_bedroom/RESULT = {"POWER1":"ON"}
19:19:50.979 MQT: stat/main_bedroom/POWER1 = ON (retained)