I am afraid I am not very experienced with esphome (but I have learnt a huge amount in the last two weeks trying to make this work). I have the four gang version of the touch switch which works perfectly however I find it is impossible in the bedroom at night because the blue lights are far too bright.
I emailed support and the replied very promptly with 'You should try adding min_ Power and max_ Power, limit brightness'. This was like me asking the cat to switch the kettle on!
I really have no idea how to achieve this. I want to have a way of setting the switch from home assistant to know to turn the LED ON lights to a lower brightness. There is a section in the code for the three gang switch.
# Button LEDs (1.0 = Blue / 0.0 = Red)
- platform: esp8266_pwm
pin: GPIO16
inverted: true
id: button_led1
- platform: esp8266_pwm
pin: GPIO14
inverted: true
id: button_led2
- platform: esp8266_pwm
pin: GPIO1
inverted: true
id: button_led3
That does not exist in the four gang variety. I think that it is in the area I should be adjusting the brightness however, when I look at the pins allocated in the four gang switch the LED's are missing (there is only one). Where I would like to get to is a switch to turn on or off 'night mode' and dim the blue lights to about 20% of where they are now.
4 gang GPIO# ComponentGPIO0 LedLinkiGPIO1 Led3GPIO2 NoneGPIO3 Button2GPIO4 Relay2GPIO5 Button3GPIO9 NoneGPIO10 NoneGPIO12 Button1GPIO13 Relay1GPIO14 Relay4GPIO15 Relay3GPIO16 Button4FLAG None
I am totally lost here, can anyone help me please
Looking further at the documentation on the four gang switch I can see that there is one GPIO pin that is assigned specifically to LED 3. Another option would be to change the firmware to make that PIN control all of the lights?
Sorry, but that is not a practical option as it then means the LED will never work (as it has been physically removed). I love this product and my intention was to install them throughout my house. I am sure I am not the only person that would like to be able to dim the lights at night. Two things then.
Are you saying that the lack of ability to dim the LED lights is unique to the four gang version and the one, two and three gang do have this ability?
I can fully understand that the issue is a lack of GPIO pins on the board to expose the LED lights. Since you are switching these in the firmware is it not possible to amend that firmware to provide a dimming feature that affects all of the LED's. It could of course just be a preset night/day mode? I think this would make the unit much more useable in a house, and that feature, if it was exposed as an entity would be a usefull addition to the whole range.
I know I am probably expecting to much from you, but I really think this is an important feature. I purchased the four gang as I thought the extra buttons would be useful even though I would not be using all four relays, clearly I should have investigated further.
Thank you, how do you mean 'remove it'. I assume you don't mean physically?
The blue and red LEDs of the 4Gang switch cannot be controlled by software because it is controlled by hardware logic circuit, so you cannot change it. For your situation, you can directly remove the blue LED