sbidy / wiz_light Goto Github PK
View Code? Open in Web Editor NEWA WiZ Light integration for Home Assistant
License: MIT License
A WiZ Light integration for Home Assistant
License: MIT License
Add the network port as optional parameter to the HA configuration.
When starting up Home Assistant I get many of the below errors (more than once for each light).
2020-04-24 12:14:02 ERROR (MainThread) [custom_components.wiz_light.light] No bulb type can be detected - fall back to full feature
The lights do work properly afterwards, so I'm guessing Home Assistant is trying to get the supported_features
property before await self.get_bulb_type()
is complete in light.py.
Perhaps move the error message to get_bulb_type()
so it only triggers once failed rather than also when uninitialised?
Referring to [Bulb Test Report] #48.
The color range of this bulb is 2200K to 6500K. Home assistant only allows me to set a value between 2500K to 6500K.
Spoke too soon. Ran into an issue with Golden White for this bulb. When selecting that scene I get the below error. All other scenes work. I'm thinking it doesn't like "Golden White" as the default full on bulb scene. Suspect it needs to change to Daylight or Warm Light. Since these bulbs don't let you change the temperature. In the Wiz application the setting is just called "White"
Failed to call service light/turn_on. ('Cant read response from the bulb. Debug:', {'method': 'setPilot', 'env': 'pro', 'error': {'code': -32603, 'message': 'Internal error'}})
Traceback (most recent call last):
File "/config/custom_components/wiz_light/light.py", line 252, in update_temperature
self._light.state.get_colortemp()
File "/usr/src/homeassistant/homeassistant/util/color.py", line 515, in color_temperature_kelvin_to_mired
return math.floor(1000000 / kelvin_temperature)
ZeroDivisionError: division by zero
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50cb2ba8","homeId":1601217,"roomId":2375858,"moduleName":"ESP03_SHRGB1C_01","fwVersion":"1.20.0","groupId":0,"drvConf":[60,1],"ewf":[200,255,150,255,0,0,40],"ewfHex":"c8ff96ff000028"}}
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
Thank you for your support We will integrate the bulb as soon as possible.
Add ConfiFlow to the integration to support UI based configuration parameter.
warning in home assistant log after restart
WARNING (MainThread) [homeassistant.components.light] Light is deprecated, modify WizBulb to extend LightEntity
Error:
Traceback (most recent call last):
File "/config/custom_components/wiz_light/light.py", line 251, in update_temperature
self._light.state.get_colortemp()
File "/usr/src/homeassistant/homeassistant/util/color.py", line 515, in color_temperature_kelvin_to_mired
return math.floor(1000000 / kelvin_temperature)
ZeroDivisionError: division by zero
getSystemConfig:
{
"method": "getSystemConfig",
"env": "pro",
"result": {
"mac": "a8bb50a6891e",
"homeId": 361378,
"roomId": 537437,
"homeLock": false,
"pairingLock": false,
"typeId": 0,
"moduleName": "ESP01_SHRGB1C_31",
"fwVersion": "1.18.2",
"groupId": 0,
"drvConf": [
33,
1
]
}
}
getPilot:
{
"method": "getPilot",
"env": "pro",
"result": {
"mac": "a8bb50a761d3",
"rssi": -89,
"src": "",
"state": true,
"sceneId": 11,
"speed": 100,
"temp": 0,
"dimming": 100
}
}
Home Assistant entity attributes:
min_mireds: 153
max_mireds: 400
effect_list: Ocean, Romance, Sunset, Party, Fireplace, Cozy, Forest, Pastel Colors, Wake up, Bedtime, Warm White, Daylight, Cool white, Night light, Focus, Relax, True colors, TV time, Plantgrowth, Spring, Summer, Fall, Deepdive, Jungle, Mojito, Club, Christmas, Halloween, Candlelight, Golden white, Pulse, Steampunk, Rhythm
brightness: 255
effect: Warm White
friendly_name: Driveway
supported_features: 23
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
1. Made an UDP request with nc
to the bulb:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
Report the output here:
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb5073437e","homeId":2164648,"roomId":3310124,"moduleName":"ESP03_SHTW1W_01","fwVersion":"1.21.0","groupId":0,"drvConf":[20,2],"ewf":[255,0,255,255,0,0,40],"ewfHex":"ff00ffff000028","ping":0}}
2. Provide the native features of the bulb:
3. Tested?
yes/no
If you found bug or problems with the bulb please open an new issue and add a reference to this one.
yes
OPTIONAL
4. Prepare the YAML - replace <Name>
with the ESP_XXXXXXXX name from step 1.
ESP03_SHTW1W_01:
name: ESP03_SHTW1W_01
features:
brightness: true
color: false
effect: true
color_tmp: true
kelvin_range:
min: 2700
max: 6500
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
https://www.wizconnected.com/en/consumer/products/8718699786175/
Thank you for your support
We will integrate the bulb as soon as possible.
Hello
great module, I was happy to install and use it. Works perfectly with one exception : when the Wiz lamp is offline (my lamp is also connected to a wired switch, means off is no wifi), the home-assistant.log gets polluted with myriads of warnings and errors that keeps repeating every 30 seconds or so:
2020-10-31 16:07:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.wiz_table_salon is taking over 10 seconds
2020-10-31 16:08:00 WARNING (MainThread) [homeassistant.components.light] Updating wiz_light light took longer than the scheduled update interval 0:00:30
2020-10-31 16:08:30 WARNING (MainThread) [homeassistant.components.light] Updating wiz_light light took longer than the scheduled update interval 0:00:30
2020-10-31 16:08:30 ERROR (MainThread) [pywizlight.bulb] [wizlight 192.168.86.20, connid 38fdb8b863e454] Failed to do UDP call(s) to wiz light
2020-10-31 16:09:10 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.wiz_table_salon is taking over 10 seconds
2020-10-31 16:09:30 WARNING (MainThread) [homeassistant.components.light] Updating wiz_light light took longer than the scheduled update interval 0:00:30
2020-10-31 16:10:00 WARNING (MainThread) [homeassistant.components.light] Updating wiz_light light took longer than the scheduled update interval 0:00:30
2020-10-31 16:10:00 ERROR (MainThread) [pywizlight.bulb] [wizlight 192.168.86.20, connid 38fdb8ee08fc12] Failed to do UDP call(s) to wiz light
2020-10-31 16:10:40 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.wiz_table_salon is taking over 10 seconds
Would be great if there was an option in this module to stop these warnings and errors being generated.
If the bulb is offline or switched off a UDP timeout exception is thrown.
concurrent.futures._base.TimeoutError
this should be handled.
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb5033318e","homeId":1707493,"roomId":2538449,"moduleName":"ESP03_SHRGBP_31","fwVersion":"1.20.0","groupId":0,"drvConf":[13,2],"ewf":[255,0,255,244,0,0,0],"ewfHex":"ff00fff4000000"}
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
Link: https://www.amazon.de/Trio-Leuchten-451850101-Sprachsteuerung-Fernbedienung/dp/B07Q95ZXN3
Thank you for your support We will integrate the bulb as soon as possible.
1. Made an UDP request with nc
to the bulb:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
Report the output here:
{"method":"getSystemConfig","env":"pro","result":{"mac":"","homeId":,"roomId":,"moduleName":"ESP14_SHRGB1C_01","fwVersion":"1.21.0","groupId":0,"drvConf":[40,1],"ewf":[200,255,170,255,0,0,40],"ewfHex":"c8ffaaff000028","ping":0}}
2. Provide the native features of the bulb:
3. Tested?
yes. However, I could not change the color temp from Homeassistant dashboard.
Pulled the latest updates and switched from light to switch in the configuration. Running HA from dev branch. Received:
/home/robin/github/core/config/custom_components/wiz_light/switch.py:43: RuntimeWarning: coroutine 'WizPlug.async_update' was never awaited
self.async_update()
RuntimeWarning: Enable tracemalloc to get the object allocation traceback
Currently, when a light is not connected to the WLAN and thus found, the following error is logged:
2020-05-09 09:58:13 ERROR (MainThread) [pywizlight.bulb] [wizlight 192.168.253.47, connid 3873f89daae3e2] Failed to do UDP call(s) to wiz light
Traceback (most recent call last):
File "/usr/local/lib/python3.7/site-packages/pywizlight/bulb.py", line 314, in sendUDPMessage
await receive_task
File "/usr/local/lib/python3.7/site-packages/pywizlight/bulb.py", line 290, in receiveUDPwithTimeout
data, remote_addr = await asyncio.wait_for(stream.recv(), timeout)
File "/usr/local/lib/python3.7/asyncio/tasks.py", line 449, in wait_for
raise futures.TimeoutError()
concurrent.futures._base.TimeoutError
I suggest to change that to a warning, since it is expected behaviour, when the light is not connected to the network.
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
1. Made an UDP request with nc
to the bulb:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
Report the output here:
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb5040b75e","homeId":2278444,"roomId":3429720,"moduleName":"ESP03_SHTW1C_01","fwVersion":"1.21.0","groupId":0,"drvConf":[20,1],"ewf":[255,0,150,255,0,0,40],"ewfHex":"ff0096ff000028","ping":0}}
2. Provide the native features of the bulb:
3. Tested?
yes
If you found bug or problems with the bulb please open an new issue and add a reference to this one.
OPTIONAL
4. Prepare the YAML - replace <Name>
with the ESP_XXXXXXXX name from step 1.
ESP03_SHTW1C_01:
name: ESP03_SHTW1C_01
features:
brightness: true
color: false
effect: true
color_tmp: true
kelvin_range:
min: 2700
max: 6500
**Additional Info**
Wiz A.E27 LED, 806lm
**Thank you for your support**
We will integrate the bulb as soon as possible.
The UDP connection creates a system timeout error in the HA environment.
Hi @sbidy, hope you're doing great
There is something to fix
WARNING (MainThread) [hacs.repository.integration.sbidy.wiz_light] 'install' is deprecated, use 'async_install' instead
Thanks
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50xxxxxxxx","homeId":364xxx,"roomId":570xxx,"homeLock":false,"pairingLock":false,"typeId":0,"moduleName":"ESP05_SHRGBL_21","fwVersion":"1.19.3","groupId":0,"drvConf":[30,1]}}
We can put these here?
I can do on/off, brightness, temp, color, and effect. Steampunk works, not sure of rythm
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50c7c741","homeId":724525,"roomId":1439578,"moduleName":"ESP01_SHRGB1C_31","fwVersion":"1.21.0","groupId":0,"drvConf":[33,1],"ewf":[255,250,150,255,0,0,40],"ewfHex":"fffa96ff000028","ping":0}
Additional Info
Bought from Home Depot, WiZ WiFi Color tuning bulbs.
Model ID: 23007
Hi,
I just bought a motion sensor. Do you think it can be supported by your integration?
Best, johan
First of all, I am new to HA, but know linux and python pretty well. Having said that I'm probably doing something wrong, but debug messages I'm lost.
System very recent install on RPI3:
arch | armv7l
chassis | embedded
dev | false
docker | true
docker_version | 19.03.8
hassio | true
host_os | HassOS 4.11
installation_type | Home Assistant OS
os_name | Linux
os_version | 4.19.127-v7
python_version | 3.7.7
supervisor | 229
timezone | America/Chicago
version | 0.112.4
virtualenv | false
Following "README.md"
Installation by following "Install for testing" steps 1-7
It is possible that pywizlight is not installed, but per this comment: "This component does need a dependency on pywizlight like @sbidy's component which will be install automatically by Home Assistant."
It is not clear to me how to install pywizlight manually, so I have not tried.
My config "/config/configuration.yaml":
light:
Log messages - these repeat when the wiz light does not have power, eventually I don't want them in the log, but no messages when power is on:
2020-07-20 19:00:40 ERROR (MainThread) [pywizlight.bulb] [wizlight 192.168.23.201, connid 38ad12ff4df876] Failed to do UDP call(s) to wiz light
2020-07-20 19:00:52 WARNING (MainThread) [homeassistant.helpers.entity] Update of light.192_168_23_201 is taking over 10 seconds
2020-07-20 19:01:13 WARNING (MainThread) [homeassistant.components.light] Updating wiz_light light took longer than the scheduled update interval 0:00:30
Devices:
Configure / Devices does not have a light listed
The bulb that I have:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 192.168.23.201 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50acf2fa","homeId":1319856,"roomId":1948800,"homeLock":false,"pairingLock":false,"typeId":0,"moduleName":"ESP01_SHTW1C_31","fwVersion":"1.19.0","groupId":0,"drvConf":[20,1]}}#
I am unable to install pywizlight
with pip
➜ custom_components pip install pywizlight
zsh: command not found: pip
... but seems like I can install with pip3
➜ custom_components pip3 install pywizlight
Collecting pywizlight
Downloading https://files.pythonhosted.org/packages/33/34/4dd918cdf9a8435a8587 17a65395950831454ba98a6f19c8b5df8dd71563/pywizlight-0.2.5-py3-none-any.whl
Installing collected packages: pywizlight
Successfully installed pywizlight-0.2.5
WARNING: You are using pip version 19.2.3, however version 20.0.2 is available.
You should consider upgrading via the 'pip install --upgrade pip' command.
I've updated my configuration.yaml
as such
light:
- platform: wiz_light
name: wiz_office_light
host: 192.168.0.16
However when I attempt to verify my server configuration I find it is invalid
Is there an option in the configuration to see my bulb as part of my "Master Bedroom"?
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"6c2990125e0e","homeId":1798722,"roomId":2680328,"moduleName":"ESP03_SHRGB1W_01","fwVersion":"1.20.0","groupId":0,"drvConf":[20,2],"ewf":[200,255,255,255,0,0,40],"ewfHex":"c8ffffff000028"}}
Same as #54: tested everything except effects via Home Assistant, color temp range is incorrect (bulb supports 2200K-6500K, can only get 2500K-6500K via Home Assistant, see #50).
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
ESP03_SHRGB1W_01 is currently listed as "Philips Color &. Tunable-White A21" on the main page. I basically report here that it is also the "A67 bulb E27 Color & Tunable White" with EAN 8718699786199, see https://www.wizconnected.com/en/consumer/products/8718699786199/ (EAN on packaging and website match).
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
1. Made an UDP request with nc
to the bulb:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
Report the output here:
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50751bc4","homeId":2164648,"roomId":3309043,"moduleName":"ESP03_SHTW1C_01","fwVersion":"1.21.0","groupId":0,"drvConf":[20,1],"ewf":[255,0,150,255,0,0,40],"ewfHex":"ff0096ff000028","ping":0}}
2. Provide the native features of the bulb:
3. Tested?
yes/no
If you found bug or problems with the bulb please open an new issue and add a reference to this one.
yes
OPTIONAL
4. Prepare the YAML - replace <Name>
with the ESP_XXXXXXXX name from step 1.
ESP03_SHTW1C_01:
name: ESP03_SHTW1C_01
features:
brightness: true
color: false
effect: true
color_tmp: true
kelvin_range:
min: 2700
max: 6500
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
https://www.wizconnected.com/en/consumer/products/8718699787035/
Thank you for your support
We will integrate the bulb as soon as possible.
Due to a lack of progress, the pull request timed out. Is there any plan to revive it?
Tremendous plugin! Is there any desire to port this to Homebridge? Is anyone working on that?
Hi Stephan,
This one works fine
Bulb type: ESP01_SHDW1_31
Dimmer: Yes
Color temp: No
Effects: No
RGB: No
I have white only Wiz bulbs - with possibility to set brightness and color temperature.
On home assistant card is displayed also color wheel. When i select any color on it, call to bulb return error.
{"method":"getSystemConfig","env":"pro","result":{"mac":"xxx","homeId":xxx,"roomId":xxx,"homeLock":false,"pairingLock":false,"typeId":0,"moduleName":"ESP15_SHTW1_01I","fwVersion":"1.18.3","groupId":0,"drvConf":[20,1]}}
Name of bulb from packaging is
on side: WiZ A60 E27 WiZ60 TW F
in front WiZ A.E27 Led 810 lm EQ. 60W
Maybe there can be config for displaying color wheel, brightness and color temperature on hassio card. Default values should be all for all, then replaced by know bulbs features and then replaced by user config (when there is any).
After fix i can do test on my bulbs.
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
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
Made an UDP request with nc to the bulb:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
Report the output here:
{"method":"getSystemConfig","env":"pro","result":{"mac":"xxxxx","homeId":1542531,"roomId":2370700,"moduleName":"ESP03_SHRGB3_01ABI","fwVersion":"1.20.65","groupId":0,"drvConf":[80,2],"ewf":[255,0,255,255,0,0,0],"ewfHex":"ff00ffff000000"}}
Provide the native features of the bulb:
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
Thank you for your support We will integrate the bulb as soon as possible.
Referring to [Bulb Test Report] #49
Color temperature range is 2000K tot 5000K, however in HA I can't set the slider lower than 25000K. Also HA thinks this bulb does 6500K as max temperature. In addition, I can't set the slider for brightness to it's lowest setting, meaning the lowest setting is lower than the actual bulb ability.
Firmware 1.21.0 Issues
Bulb Information
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50471a08","homeId":724525,"roomId":1097753,"moduleName":"ESP03_SHRGB1C_01","fwVersion":"1.21.0","groupId":0,"drvConf":[60,1],"ewf":[200,255,150,255,0,0,40],"ewfHex":"c8ff96ff000028","ping":0}}
Additional Info
I have four bulbs with a Model ID of B23065, other bulbs in the home are Model ID 23007.
Since the firmware was updated to 1.21.0 a few days ago, there have been timeouts and other issues with home assistant with the B23065 bulbs.
At times home assistant will see these bulbs as unavailable and cannot update or change their status. The only way I've been able to "fix" it is to kill the power to the bulb itself, wait, and turn it back on. After a few seconds they will show up as available again, until the next timeout.
During some automations, I'm also getting the following stack trace below in the logs:
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 278, in async_update_ha_state
await self.async_device_update()
File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 474, in async_device_update
raise exc
File "/config/custom_components/wiz_light/light.py", line 201, in async_update
self.update_brightness()
File "/config/custom_components/wiz_light/light.py", line 234, in update_brightness
if self._light.state.get_brightness() is None:
File "/usr/local/lib/python3.8/site-packages/pywizlight/bulb.py", line 197, in get_brightness
return self.percent_to_hex(self.pilotResult['dimming'])
KeyError: 'dimming'
Hi, I've never used HA before and am probably doing something wrong.
I set up HA following these instructions: https://www.home-assistant.io/getting-started/
Then followed your instructions to install for testing.
After restarting the HA service, there is a notification "Config validating". I went to server_control and used the button to validate. It prints one of these lines for each bulb I attempted to configure:
Platform error light.wiz_light - No module named 'pywizlight'
Did I perhaps create custom_components in the wrong location? I've tried /
and /root
Can't set effects in lights or light groups. Nothing useful in logs.
I click the picker, but it doesn't take.
The README
isn't clear as to how to add more than one light to the configuration.yaml
file. I have two lights and have given both a static ip address and named them through the wiz app but am unable to see them both within home assistant.
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50504e08","homeId":1601217,"roomId":2375858,"moduleName":"ESP17_SHTW9_01","fwVersion":"1.20.0","groupId":0,"drvConf":[20,1],"ewf":[255,0,255,255,0,0,0],"ewfHex":"ff00ffff000000"}}
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
Thank you for your support We will integrate the bulb as soon as possible.
The amber filament bulbs (ESP06_SHDW9_01) have slightly different capabilities/effects compared to the recently implemented ESP56_SHTW3_01 features.
Would request consideration for inclusion of these bulbs (ESP06_SHDW9_01) as well and happy to test.
These bulbs do not support color_temp. Only dimming and the effects listed below
Supported effects
White
Night Light
Candlelight
Pulse
Steampunk
Wake-up
Bedtime
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50db0e51","homeId":1798722,"roomId":2680328,"moduleName":"ESP03_SHRGB1C_01","fwVersion":"1.20.0","groupId":0,"drvConf":[70,1],"ewf":[200,255,160,255,0,0,40],"ewfHex":"c8ffa0ff000028"}}
Dimming, color temp, and rgb tested. I cannot set color temps lower than 2500 K via Home Assisstant although the bulb supports 2200K-6500K, and 2200K can be selected in the app. I think this is the same issue as #50. I tried changing "2500" to "2200" in the max_mireds
function in light.py
but it didn't fix the range.
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
ESP03_SHRGB1C_01 is currently listed twice in the table on the main page, once as "Philips Color &. Tunable-White A19" and once as "WiZ LED EAN 8718699787059". So I am basically reporting that ESP03_SHRGB1C_01 is also the G95 color & white temp globe with EAN 8718699786359, see https://www.wizconnected.com/en/consumer/products/8718699786359/ (EAN on website and packaging match).
WiZ G25 filament bulbs (ESP56_SHTW3_01) support colour temperature and effects as well as brightness change.
Perhaps fix in light.py by changing
# Firlament bulbs support only dimmer
if self._bulbType == 'ESP56_SHTW3_01':
_LOGGER.info("Found ESP56_SHTW3_01 bulb")
return SUPPORT_BRIGHTNESS
to
# Filament bulbs support brightness and color temperature
if self._bulbType == 'ESP56_SHTW3_01':
_LOGGER.info("Found ESP56_SHTW3_01 bulb")
return SUPPORT_BRIGHTNESS | SUPPORT_COLOR_TEMP | SUPPORT_EFFECT
The above does work, however, these lights don't support all effects, only those in the screenshot below (these are those that don't change colour, only colour temperature). This would either require a list of effects for each different bulb type; or filtering the scenes by supported features.
https://developers.home-assistant.io/docs/entity_index/#generic-properties
Home Assistant 0.115.6
Lights added with wiz_light integration are not showing up as devices so they can not be used in automation.
I'm getting the following error in the Home Assistant logs:
INFO:homeassistant.util.package:Attempting install of pywizlight==0.3.0
...
- Platform error light.wiz_light - No module named 'asyncio_dgram'
I followed the installation instructions. Everything ran smoothly. Although I can see the bulb created, I get the following message:
This entity does not have a unique ID, therefore its settings cannot be managed from the UI.
I'm running Home Assistant 0.108.6 in macOS Catalina via docker.
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
I have Wiz bulbs working successfully with your integration, so just for fun I bought a Wiz smart plug to try, model 9290024468. I also noticed that there are new Wiz strip lights and motion detectors available.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
I was unable to download nc - my browsers and Windows itself quarantined as malware.
As this is only a smart plug, on/off is the only feature.
I defined the device just like a bulb in my configuration.yaml file. The device shows up and will successfully turn on! Then the device icon will flip back to "off" but the switch remains on. If I manually turn the switch off I can turn it on again from HA. There are continuous errors in the log file regarding brightness and dimmer functions, which of course this device does not support. But it seems the basics of operation with smart plugs is there and perhaps could be integrated relatively easily. I really like my Wiz bulbs and integration with Home Assistant is greatly appreciated. If I can help, I would be glad to do so.
But code seems to indicate that the parameter should be 'host'.
Please don't post bugs or issues here This template is only for report a new bulb type for integration or successful test.
Provide the following information:
echo '{"method":"getSystemConfig","params":{}}' | nc -u -w 1 <YOU BULB IP> 38899
{"method":"getSystemConfig","env":"pro","result":{"mac":"a8bb50aec635","homeId":1995453,"roomId":2989331,"moduleName":"ESP01_SHRGB1C_31","fwVersion":"1.20.0","groupId":0,"drvConf":[33,1],"ewf":[255,250,150,255,0,0,40],"ewfHex":"fffa96ff000028"}}
Additional Info
Add any other useful information about the bulb? Purchase link? Other stuff you want to share?
This modulename is already listed in the compatibility list, but the example was described as a recessed downlight. I'm not sure if this module name directly translates into a product line, but my bulbs are standard A19 sized.
Purchased from Home Depot Canada
Bulb is labelled:
c UL listed us
LED Lamp 3PM5
Wiz Colors line
800 Lumens
8.8W 2200-6500K (RGB) 100mA
120V~60Hz
Made in China 1K90
9290022656
Contains FCC ID:
2AC7Z-ESPWROOM02D
Contains IC:
21098-ESPWROOM02D
Thank you for your support We will integrate the bulb as soon as possible.
Your integration is coming along pretty awesome! I bought these bulbs because they were ESP based and I intended to flash Tasmota, but I may just leave them as Wiz!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.