Can someone help with this code please, Im going round in circles trying to solve this:
A mosfet controlling the tape brightness led’s is connected to goip33,
A relay is connected to gpio32 for the power supply control
and a relay is connected to gpio27 for the pixel control on and off.
output:
- platform: ledc
pin: GPIO33
id: dimming
frequency: 10000 Hz
power_supply: power_supply_5v
- platform: gpio
pin: GPIO27
id: string
inverted: true
power_supply: power_supply_5v
power_supply:
- id: power_supply_5v
pin: GPIO32
enable_time: 10s
light:
- platform: monochromatic
output: dimming
name: Tape brightness
- platform: binary
name: Pixels
output: string
Im trying to invert the power supply output pin gpio32 without effecting the tape on/off.
Basically, when the esp is powered on the Pixel switch and the Tape brightness switch are both off.
But the power supply relay connected to pin gpio32 on on and engaged.
Swiching on the Tape brightness will disengage the power supply relay.
And the same with the Pixels, turning them on disengages the power supply relay.
The idea is when switching either switch, the power supply comes on 10 seconds before the Pixel or Tape comes on. At the moment the power supply is on and switched off after 10 seconds of switching the Pixel or Tape brightness on.
Hope this makes sense.