esphome / esphome/feature-requests
Alternative method for h-bridge light
- Dominant language
- No language data
- Stars
- 450
- Forks
- 29
- PR merge metrics
- No merged PRs in 30d
Description
**Describe the problem you have/What new integration you would like**
The actual method for h bridge light change the direction in each loop each 16ms (as minimal), so, so, each light have a max of 30hz (60 of total).
This cause flicking sometimes-
**Please describe your use case for this integration and alternatives you've tried:**
I am trying some alternatives and I get a big improve using cwww component with inverted PWM and max 50% power:
```yaml
output:
- platform: ledc
id: pina
inverted: true
pin:
number: 5
inverted: True
channel: 0
max_power: 50%
- platform: ledc
id: pinb
pin: GPIO6
channel: 2
max_power: 50%
light:
- platform: cwww
name: "Lights"
cold_white: pina
warm_white: pinb
cold_white_color_temperature: 6536 K
warm_white_color_temperature: 2000 K
```
I think this approach could be used in h-bridge method instead change direction in each loop.
**Additional context**
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reviewing the existing h-bridge light implementation and comparing its direction-switching behavior with the cwww configuration shown in the request. Done means providing an agreed alternative that avoids the reported flicker while preserving the intended light control behavior; the payload names no files or tests to run.
Written by the indexing model from the issue text.
Assessment
- Domain
- embedded-iot
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100