diff --git a/esphome/components/e131/e131_addressable_light_effect.h b/esphome/components/e131/e131_addressable_light_effect.h index 56df9cd80f..c763d9beea 100644 --- a/esphome/components/e131/e131_addressable_light_effect.h +++ b/esphome/components/e131/e131_addressable_light_effect.h @@ -27,6 +27,7 @@ class E131AddressableLightEffect : public light::AddressableLightEffect { void set_first_universe(int universe) { this->first_universe_ = universe; } void set_channels(E131LightChannels channels) { this->channels_ = channels; } + void set_channel_offset(int offset) { this->channel_offset_ = offset; } void set_e131(E131Component *e131) { this->e131_ = e131; } protected: @@ -34,6 +35,7 @@ class E131AddressableLightEffect : public light::AddressableLightEffect { int first_universe_{0}; int last_universe_{0}; + int channel_offset_{0}; E131LightChannels channels_{E131_RGB}; E131Component *e131_{nullptr};