Comments (15)
I had the same issue described here. I tried to dump the traffic from my HA server using tcpdump. I was able to see the traffic leave if I used the IP of the wiz light. I see no UDP traffic 53 or 38899 if I use the hostname
I am able to ping the hostname from the HA console ping wiz_12344
works. `host wiz_12344' also works.
appears that we are getting the search domain added and that might be causing dns to not work.
Instead if I a "." To the end of the name, it works!
wiz_12345. Works!
from wiz_light.
This may or may not be the same - After installing the latest version I am unable to setup a light using the IP address or host name. I get the same error KLDEN gets - I have included what I see in the logs - It is the same when trying either method:
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 435, in _handle_request
resp = await request_handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_app.py", line 504, in _handle
resp = await handler(request)
File "/usr/local/lib/python3.9/site-packages/aiohttp/web_middlewares.py", line 117, in impl
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/security_filter.py", line 60, in security_filter_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/forwarded.py", line 98, in forwarded_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/request_context.py", line 28, in request_context_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/ban.py", line 78, in ban_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/auth.py", line 181, in auth_middleware
return await handler(request)
File "/usr/src/homeassistant/homeassistant/components/http/view.py", line 137, in handle
result = await result
File "/usr/src/homeassistant/homeassistant/components/config/config_entries.py", line 157, in post
return await super().post(request, flow_id)
File "/usr/src/homeassistant/homeassistant/components/http/data_validator.py", line 62, in wrapper
result = await method(view, request, *args, **kwargs)
File "/usr/src/homeassistant/homeassistant/helpers/data_entry_flow.py", line 110, in post
result = await self._flow_mgr.async_configure(flow_id, data)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 252, in async_configure
result = await self._async_handle_step(flow, cur_step["step_id"], user_input)
File "/usr/src/homeassistant/homeassistant/data_entry_flow.py", line 325, in _async_handle_step
result: FlowResult = await getattr(flow, method)(user_input)
File "/config/custom_components/wiz_light/config_flow.py", line 47, in async_step_user
await self.async_set_unique_id(mac)
UnboundLocalError: local variable 'mac' referenced before assignment
from wiz_light.
Should be fixed with the 0.4.5b release. This was an issue with the exception handling.
from wiz_light.
Should be fixed with the 0.4.5b release. This was an issue with the exception handling.
Great! Thanks for the update!
from wiz_light.
Thank you - !!
from wiz_light.
Just downloaded the latest - I still have issues - unfortunately I cannot find anything in the logs this time - When using the hostname I get - "The bulb cannot be connected via the WIZ Light integration"
and when using an IP I get "Cannot connect to bulb. Maybe the bulb is offline or a wrong ip/host was entered. Please turn on the light and try again."
The host and ip are correct - Both are listed in Unifi and in the WIZ app - I can ping both hostname and ip from HA console.
I have model ID 7002 and Firmware 1.24.0
Thanks
from wiz_light.
I'm also having the exact same issue with 0.4.5b. Updating from 0.4.0. I'm getting identical errors as rforbessr reports when using the hostname or IP. I can both ping from the HA console and control the light from the WIZ app.
Correction: after trying a few more times the bulb did get added OK. Everything seems to be working well!
from wiz_light.
I'm still seeing the same issue on 0.4.5b. Ping from HA to the hostname is working just fine but I'm seeing the same message: "The bulb can not be connected via WiZ Light integration. Does anyone have any thoughts?
from wiz_light.
Same issue on my end. Adding with IP works, but not with hostname.
Pinging works: ping wiz_123456
or ping wiz_123456.local
on some devices.
Would love to help but not sure how.
from wiz_light.
Update. Issue still present.
wiz12345. doesn't work for me.
from wiz_light.
also having this issue on 0.4.5b
from wiz_light.
same issue here. cannot add anything.
EDIT. i fixed with "Enable local comunication" in wiz app (i don't know why it was disabled 🤣)
i added all my bulbs with ip address and all is working fine now
from wiz_light.
The fix suggested by @m4ttr worked for me.
from wiz_light.
It can be possible that the DNS lookup fails from the HASS into your network.
In general, this is not directly an issue from the integration itself. It is also possible that a IPv6/4 issue occurs at the DNS lookup.
If you can't add the bulb via DNS names, please make a fallback to the IP of the bulb.
from wiz_light.
Just to clarify, I was able to resolve the hostnames via the shell on my HASS. It would not resolve in the ui without the additional . (dot) added to the hostname.
e.g. wiz_aabbcc did not work, but wiz_aabbcc. did properly resolve.
from wiz_light.
Related Issues (20)
- Unable to add device ST19 Filament Model ID 23015 HOT 8
- Pastel colors after 0.4.3 HOT 9
- ESP03_SHRGB1W_01: Brightness slider not visible on Lovelace card HOT 2
- Wiz Recessed Downlight (Colour) HOT 1
- Can I integrate smart ceiling fans with this integration? HOT 1
- Fixed color temp. bulbs not working after upgrade from 0.4.2 HOT 5
- No RGB controls for bulbs HOT 3
- UnboundLocalError because of previous exception HOT 1
- Wiz Smart plugs detected as lights HOT 4
- Expose Infos like IP, DNS name etc. of the Wiz Light HOT 4
- DNS/No configuration.yml/No discovery - ETA HOT 3
- YAML Config Support is no longer supported!. Please re-add the bulbs via the UI. ? HOT 3
- Support Speed option for effects HOT 3
- Set effect in automation HOT 2
- "Cannot evaluate color" HOT 2
- difference of the smartplug / Bulb for the entities !!!! HOT 5
- 15 sec polling is causing high channel utilization and an unusable wifi network HOT 1
- hassio release (2022.2.3?) HOT 2
- Strange behavior of a Wiz bulb when made use of Homekit Bridge functionality of HA
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiz_light.