StyraHem / ShellyForHASS

Shelly smart home platform for Home Assistant
MIT License
621 stars 112 forks source link

[BUG] Alexa integration through Home Assistant ignores the White Channel for Shelly RGBW2 #472

Open PaoloTK opened 3 years ago

PaoloTK commented 3 years ago

Environment

Describe the bug

I'm using ShellyForHASS with Shelly RGBW2 devices paired with RGBW strips. I'm using the Home Assistant Alexa integration from Nabu Casa, which allows me to control the Shelly devices with Alexa through Home Assistant. When I use Alexa to set one of the LED strips to a specific color the white channel is ignored, producing washed-out colors if the white channel was on before.

Steps to Reproduce

  1. In the Home Assistant GUI, set the white channel for a Shelly RGBW2 device to something other than 0. Representing each RGBW channel as a value between 0 and 255, let's say the current light is set to 0,0,0,255 (full white).
  2. Ask Alexa to set the device to "Red".

Expected behavior

The expected behavior is for the Shelly RGBW2 to be set to 255,0,0,0. This works fine on other RGBW LED strips. The actual behavior through ShellyForHASS will give you 255,0,0,255.