This is a spin-off from an original Home Assistant integration which was removed in Home Assistant Core 2022.4. The original rpi_gpi_pwm was stored here but due to changes in 2022.7.5 support for pca9685 PWM devices was dropped. This module brings back support for the pca9685 PWM LED driver in a separate component.
Description.
The pca9685 component allows to control multiple lights using pulse-width modulation, for example LED strips. It supports one-color, RGB and RGBW LEDs driven by pca9685 devices. A PWM output can also be configured as a number. Connection to the pca9685 devices is made via the I2C bus.
For more details about the pca9685 I2C PWM LED controller you can find the datasheets here:
This integration can set up the following platforms.
Platform | Description |
---|---|
light |
Write LED signal to digital PWM outputs. |
number |
Writes signal represented by a number to PWM outputs. |
PCA9685
in the Integration tab and click download
configuration.yaml
).custom_components
directory (folder) there, you need to create it.custom_components
directory (folder) create a new folder called pca9685
.custom_components//
directory (folder) in this repository.This integration can be configured and set up manually via YAML. To enable the light or number in your installation, add the following to your configuration.yaml
file:
# Example configuration.yaml entry
light:
- platform: pca9685
leds:
- name: Lightstrip Cupboard
pins: 10
number:
- platform: pca9685
numbers:
- name: Test number
pin: 12
Generic settings:
required: true | type: string
required: false | type: int
required: false | default: 0x40 | type: int
Light specific settings:
required: true | type: map
required: true | type: [int]
number specific settings:
required: true | type: map
required: true | type: int
required: false | default: false | type: boolean
required: false | default: 0 | type: float
required: false| default: 100 | type: float
required: false | default: 0 | type: float
required: false | default: 100 | type: float
light:
- platform: pca9685
leds:
- name: Lightstrip Simple
pins: 10
address: 65
- name: Lightstrip RGB
pins: [2,5,9]
address: 65
- name: Lightstrip RGBW
pins: [1,2,4,6]
address: 65
number:
- platform: pca9685
numbers:
- name: Test number
pin: 12
frequency: 1000
invert: true
minimum: 11.5
maximum: 75.7
normalize_lower: -10.8
normalize_upper: 200.5
address: 65
If you want to contribute to this please read the Contribution guidelines