Merge PR #608: Shelly: Fix color state for rgbw2

This commit is contained in:
jenkins 2022-09-26 17:40:10 +02:00
commit fbfb098668

View File

@ -1078,7 +1078,7 @@ void IntegrationPluginShelly::onMulticastMessageReceived(const QHostAddress &sou
} }
} }
if (thing->thingClassId() == shellyRgbw2ThingClassId) { if (thing->thingClassId() == shellyRgbw2ThingClassId) {
thing->setStateValue(shellyRgbw2ThingClassId, QColor(red, green, blue)); thing->setStateValue(shellyRgbw2ColorStateTypeId, QColor(red, green, blue));
thing->setStateValue(shellyRgbw2WhiteChannelStateTypeId, white); thing->setStateValue(shellyRgbw2WhiteChannelStateTypeId, white);
} }