I’ve add hbridge light to my esphome and I’m not able to set brightness from home assistant
HA: 2023.12.0
esphome: 2023.11.6
esphome:
name: kurtyna-ab
friendly_name: kurtyna-a
esp8266:
board: esp12e
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: <redacted>
ota:
password: <redacted>
wifi:
power_save_mode: none
fast_connect: true
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
hidden: true
manual_ip:
static_ip: <redacted>
gateway: <redacted>
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Kurtyna"
password: !secret wifi_password
captive_portal:
web_server:
port: 80
version: 1
light:
- platform: hbridge
id: kurtyna_a
name: "Kurtyna A"
pin_a: L1
pin_b: L2
on_turn_on:
then:
- light.turn_on:
id: kurtyna_a
color_mode: COLD_WARM_WHITE
cold_white: 33%
warm_white: 66%
- platform: hbridge
id: kurtyna_b
name: "Kurtyna B"
pin_a: L3
pin_b: L4
on_turn_on:
then:
- light.turn_on:
id: kurtyna_b
color_mode: BRIGHTNESS
brightness: 33%
# Example output entry
output:
- platform: esp8266_pwm
id: L1
pin: GPIO4
- platform: esp8266_pwm
id: L2
pin: GPIO5
- platform: esp8266_pwm
id: L3
pin: GPIO2
- platform: esp8266_pwm
id: L4
pin: GPIO15
tried various combinations and only toggle on/off appear in home assistant.
Code from this topic also didn’t work simmilar topic