sbidy / wiz_light

A WiZ Light integration for Home Assistant
MIT License
341 stars 68 forks source link

Effect "Golden white" doesn't work on ESP06_SHDW1_01 #37

Closed PiotrMachowski closed 3 years ago

PiotrMachowski commented 4 years ago

Hi,

I have encountered a following problem with this integration:

Effect Golden white does not work on my bulb, so I can't enable "normal" white light mode. I have tried to manually use scene Warm White and it worked.

Error:

  File "/home/piotr/dev/ha/core/config/custom_components/wiz_light/light.py", line 125, in async_turn_on
    await self._light.turn_on(pilot)
  File "/home/piotr/dev/ha/core/venv/lib/python3.8/site-packages/pywizlight/bulb.py", line 243, in turn_on
    await self.sendUDPMessage(pilot_builder.get_pilot_message(), max_send_datagrams = 10)
  File "/home/piotr/dev/ha/core/venv/lib/python3.8/site-packages/pywizlight/bulb.py", line 329, in sendUDPMessage
    raise ValueError("Cant read response from the bulb. Debug:",resp)
ValueError: ('Cant read response from the bulb. Debug:', {'method': 'setPilot', 'env': 'pro', 'error': {'code': -32603, 'message': 'Internal error'}})

Config:

{
   "method":"getSystemConfig",
   "env":"pro",
   "result":{
      "mac":"XXXX",
      "homeId":XXXX,
      "roomId":XXXX,
      "homeLock":false,
      "pairingLock":false,
      "typeId":0,
      "moduleName":"ESP06_SHDW1_01",
      "fwVersion":"1.19.3",
      "groupId":0,
      "drvConf":[
         20,
         1
      ]
   }
}

Product's website: link

PiotrMachowski commented 4 years ago

Workaround: replace Golden white with Warm White using entity customisation.

sbidy commented 4 years ago

Hey, I've to check that. It's weird...