From 13246b64d36295ecf637f3adc51cabdbdd921728 Mon Sep 17 00:00:00 2001 From: Daniel Hyles Date: Mon, 16 Aug 2021 19:10:06 +1000 Subject: [PATCH 1/2] Add a dummy color temp Color temperature must be set or HA will not allow you to change it. Added a dummy value. Tested --- esphome/components/hbridge/hbridge_light_output.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/esphome/components/hbridge/hbridge_light_output.h b/esphome/components/hbridge/hbridge_light_output.h index 2f4f87134cb..415bd94b4d7 100644 --- a/esphome/components/hbridge/hbridge_light_output.h +++ b/esphome/components/hbridge/hbridge_light_output.h @@ -19,6 +19,8 @@ class HBridgeLightOutput : public PollingComponent, public light::LightOutput { light::LightTraits get_traits() override { auto traits = light::LightTraits(); traits.set_supported_color_modes({light::ColorMode::COLD_WARM_WHITE}); + traits.set_min_mireds(153); + traits.set_max_mireds(500); return traits; } From b4edde52af97443269b85f9411cff16daefd8085 Mon Sep 17 00:00:00 2001 From: Daniel Hyles Date: Mon, 16 Aug 2021 19:14:52 +1000 Subject: [PATCH 2/2] Update hbridge_light_output.h --- esphome/components/hbridge/hbridge_light_output.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/esphome/components/hbridge/hbridge_light_output.h b/esphome/components/hbridge/hbridge_light_output.h index 415bd94b4d7..c3091548523 100644 --- a/esphome/components/hbridge/hbridge_light_output.h +++ b/esphome/components/hbridge/hbridge_light_output.h @@ -20,7 +20,7 @@ class HBridgeLightOutput : public PollingComponent, public light::LightOutput { auto traits = light::LightTraits(); traits.set_supported_color_modes({light::ColorMode::COLD_WARM_WHITE}); traits.set_min_mireds(153); - traits.set_max_mireds(500); + traits.set_max_mireds(500); return traits; }