Hello, friends.
Can anyone share a working example of CWW light control in Esphome for the ESP32-H2 (zigbee) board? My code is below, but I can only control on/off and brightness. There is no color temperature control, but there is color control, but my lamp is not colored.
substitutions:
device_name: eglo-esp32-h2
friendly_name: Eglo CWW Light
esphome:
name: $device_name
friendly_name: $friendly_name
esp32:
board: esp32-h2-devkitm-1
variant: ESP32H2
framework:
type: esp-idf
partitions: partitions_zb.csv
# Enable logging
logger:
hardware_uart: UART0
external_components:
- source: github://luar123/zigbee_esphome
components: zigbee
zigbee:
id: "zb"
components: all
on_join:
then:
- logger.log: "Joined network"
output:
- platform: ledc
id: ww_color_temp
pin: GPIO12
- platform: ledc
id: cw_color_temp
pin: GPIO14
light:
- platform: cwww
name: $friendly_name
id: light_1
cold_white: cw_color_temp
warm_white: ww_color_temp
cold_white_color_temperature: 6500 K
warm_white_color_temperature: 2700 K
constant_brightness: true
restore_mode: RESTORE_DEFAULT_OFF
effects:
- random:
- pulse:
- strobe:
- flicker:
sensor:
- platform: internal_temperature
name: "Internal Temperature"
id: "temp"
filters:
- delta: 0.1
