Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DiyHue Connection Failure with Zigbee2MQTT + Home Assistant #1046

Open
crow1093 opened this issue Sep 21, 2024 · 3 comments
Open

DiyHue Connection Failure with Zigbee2MQTT + Home Assistant #1046

crow1093 opened this issue Sep 21, 2024 · 3 comments

Comments

@crow1093
Copy link

Issue does not already exist?

I have searched and found no existing issue

Select Environment

Docker

Home Assistant related?

Yes

Description

Since mid-August, my DiyHue setup with Zigbee2MQTT and Home Assistant has been experiencing connection failures. Pairing with Home Assistant alone still works, but as soon as MQTT comes into play, the connection breaks.

Errorlog:

2024-09-21 10:27:06,973 - flaskUI.restful - 75 - INFO - {'devicetype': 'home-assistant#home'}
2024-09-21 10:27:07,296 - werkzeug - 225 - INFO - 192.168.178.83 - - [21/Sep/2024 10:27:07] "POST /api HTTP/1.1" 200 -
[2024-09-21 10:27:07,307] ERROR in app: Exception on /clip/v2/resource [GET]
Traceback (most recent call last):
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1516, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/local/lib/python3.11/dist-packages/flask/app.py", line 1502, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**req.view_args)
File "/usr/local/lib/python3.11/dist-packages/flask_restful/init.py", line 467, in wrapper
resp = resource(*args, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/flask/views.py", line 84, in view
return current_app.ensure_sync(self.dispatch_request)(*args, **kwargs)
File "/usr/local/lib/python3.11/dist-packages/flask_restful/init.py", line 582, in dispatch_request
resp = meth(*args, **kwargs)
File "/opt/hue-emulator/flaskUI/v2restapi.py", line  
307, in get
temperature = sensor.getTemperature()
File "/opt/hue-emulator/HueObjects/Sensor.py", line 292, in getTemperature
"temperature": self.state["temperature"]/100
TypeError: unsupported operand type(s) for /: 'NoneType' and 'int'

Steps to reproduce

Setup new diyhue container > Pair with Home Assistant > Setup mqtt in HueBridge > Reload Home Assistant Integration

Please enter your operating system details here

If diyHue does not star use "uname -mrs"
Hue-Emulator Version: 2024-09-02 21:04:00.000000000 +0200
Architecture: x86_64
OS: Linux
Os version: '#1 SMP PREEMPT_DYNAMIC PMX 6.5.11-7 (2023-12-05T09:44Z)'
Os release: 6.5.11-7-pve
Hardware: Intel Nuc with Proxmox > Debian Docker LXC

Upload debug tar

config_debug.zip

What DiyHue version(branch) are you using?

master (latest)

hendriksen-mark added a commit that referenced this issue Sep 21, 2024
update credits.
update diyhue response in v2api.
update time routine.
add timer routine.
update mdns name.
Accessories name change fix,
update groups and lights event stream.
update sensor v2api response.
update openwrt install.
#1041
#1043
https://diyhue.discourse.group/t/diyhue-installation-on-openwrt-fails/760
#1046
@hendriksen-mark
Copy link
Member

hi, i made changes to fix this. please try and give feedback.

@crow1093
Copy link
Author

The recent image changes seem to have resolved the issues completely. Pairing with Home Assistant is working flawlessly, even with motion sensors included. Additionally, the problem with scenes not being controllable or triggered from Home Assistant has also been fixed. Everything is working as expected now!

When I'm back home, I'll also test the connection with the Hue apps. Thank you for the quick response!

@hendriksen-mark
Copy link
Member

good to hear.
you ware not the first with this problem.
#1041
and also on slack.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants