From 28ed42d8798ae53e0c54e24404c9189d03abba31 Mon Sep 17 00:00:00 2001 From: d-two <32079446+d-two@users.noreply.github.com> Date: Wed, 5 May 2021 04:09:38 +0200 Subject: [PATCH] Add Hyperion Support (#1339) --- esphome/components/wled/wled_light_effect.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/esphome/components/wled/wled_light_effect.cpp b/esphome/components/wled/wled_light_effect.cpp index 3c26beeed4..f3d8fbd082 100644 --- a/esphome/components/wled/wled_light_effect.cpp +++ b/esphome/components/wled/wled_light_effect.cpp @@ -92,8 +92,14 @@ bool WLEDLightEffect::parse_frame_(light::AddressableLight &it, const uint8_t *p switch (protocol) { case WLED_NOTIFIER: - if (!parse_notifier_frame_(it, payload, size)) - return false; + // Hyperion Port + if (port_ == 19446) { + if (!parse_drgb_frame_(it, payload, size)) + return false; + } else { + if (!parse_notifier_frame_(it, payload, size)) + return false; + } break; case WARLS: