Hello fellow ESPHome enthusiasts! I’m thrilled to share my recent success and ongoing challenge with creating a custom light component for my Kessil A160 reef tank light. ![]()
![]()
After some meticulous circuit design and coding, I managed to control the light’s intensity and color using two ESP8266 PWM outputs converted to 0-10V signals. The custom component I developed allows me to adjust both brightness and color through Home Assistant, which has been a game-changer for my aquarium setup. ![]()
However, I’m now stuck on a feature I’d really love to implement: creating sensors to track the light’s brightness and color values in real-time. This would be invaluable for monitoring long transition effects, like simulating dawn and dusk. ![]()
I’ve tried replicating the approach used for standard monochromatic lights, but it throws a编译错误 when I attempt to access current_values. I’ve experimented with overriding methods and creating custom sensors, but nothing seems to work so far. ![]()
If anyone has experience with custom light components or knows how to properly access these values, I’d be incredibly grateful for any guidance or insights! Let’s brainstorm together and crack this puzzle. ![]()
Thank you all for your support and expertise! ![]()