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

Hue Haunted House not animating #1059

Open
ohmantics opened this issue Dec 15, 2024 · 11 comments
Open

Hue Haunted House not animating #1059

ohmantics opened this issue Dec 15, 2024 · 11 comments

Comments

@ohmantics
Copy link

Issue does not already exist?

No, I did not search

Select Environment

Docker

Home Assistant related?

No

Description

Installed DIYHue as a HomeAssistant add-on on an HA Yellow.
Added a Hue bulb to HA directly via ZHA.
Connected DIYHue to HA with a token.
Added the bulb to a room via Hue Essentials.
Run Hue Haunted House app on iOS.
Connect to DIYHue bridge via virtual link button.
Enable the one bulb in the Lights tab.
Turn on an animation like Hellfire.
Bulb does not animate at all.
DIYHue is logging tons of PUTs to transitiontime on that light.

Errorlog:

diyhue.log

Steps to reproduce

Installed DIYHue as a HomeAssistant add-on on an HA Yellow.
Added a Hue bulb to HA directly via ZHA.
Connected DIYHue to HA with a token.
Added the bulb to a room via Hue Essentials.
Run Hue Haunted House app on iOS.
Connect to DIYHue bridge via virtual link button.
Enable the one bulb in the Lights tab.
Turn on an animation like Hellfire.
Bulb does not animate at all.
DIYHue is logging tons of PUTs to transitiontime on that light.

Please enter your operating system details here

Hue-Emulator Version: 2024-12-14 15:43:21.000000000
WebUI Version: 2024-12-14 15:43:29.000000000
Architecture: aarch64
OS: Linux
Linux version: #1 SMP PREEMPT Tue Dec 3 19:23:20 UTC 2024
Linux release: 6.6.51-haos-raspi
Hardware: HomeAssistant Yellow with CM4

Upload debug tar

config_debug.tar.zip

What DiyHue version(branch) are you using?

master (latest)

@hendriksen-mark
Copy link
Member

Hi, unfortunately his app is a paid app so we can not test this.
In the logs you provide i can see that this app uses V1API.
It wants to make a group with type LightGroup this is not in diyhue responses.
That is why you get the http code 500.

2024-12-14 19:01:49,370 - flaskUI.restful - 154 - INFO - {'type': 'LightGroup', 'name': 'HauntedHouseG', 'lights': ['39']}
2024-12-14 19:01:49,374 - werkzeug - 225 - INFO - 192.168.0.45 - - [14/Dec/2024 19:01:49] "�[35m�[1mPOST /api/e510bf40ba9011ef9b4ee45f01bbd792/groups HTTP/1.1�[0m" 500 -

in this app can you select other rooms or is the room page empty?
Can you share some screenshots from the app?

@ohmantics
Copy link
Author

ohmantics commented Dec 15, 2024

Not sure if it's turning up in this log, but this app creates those groups based on your light selections. Perhaps that's failing?
IMG_2156
IMG_2155

The same author makes a whole bunch of occasion-specific apps that share the same engine. I'd be happy to send a donation on Ko-Fi or elsewhere to cover having at least one for your testing. The whole point for me in adopting DIYHue is to rid myself of the Hue Bridges I have and unwind all the complex VLAN and firewall nonsense I had to do to prevent them from updating to recent cloud-required spyware versions. Supporting this project is a no-brainer.

EDIT: Sent over something on Ko-Fi. If that doesn't make it to a current maintainer, please let me know and we'll make other arrangements.

@hendriksen-mark
Copy link
Member

hendriksen-mark commented Dec 15, 2024

if you make a donation to ko-fi the ends up with the mastermind of diyhue(Marius Motea).
Marius transfers the money to me if it is ment for me.

@ohmantics
Copy link
Author

ohmantics commented Dec 15, 2024

OK, running through Proxyman, I see a POST to /groups: {"type":"LightGroup","name":"HauntedHouseG","lights":["39"]}
and that's returning 500. It superficially looks correct in the Hue v1 API docs.

EDIT: looks like the failure is the type of LightGroup.

if "type" in postDict:
isn't handling that type.

@hendriksen-mark
Copy link
Member

hendriksen-mark commented Dec 15, 2024

Yes I know, that is why I asked you if any other groups are displayed in the app, to add LightGroup we have to add allot(group 0 is also called lightgroup).
I have been testing with this.
hendriksen-mark@8c5def5

@hendriksen-mark
Copy link
Member

hendriksen-mark commented Dec 16, 2024

Hi, thank you for your donation.
I have installed the haunted app and it works flawless with my setup.
I can select my lights without problems.
The lights change color or brightness without errors.
Color and non color lights.
I dont see any option to make rooms in the haunted app.
All my rooms I made in the hue app appear in the haunted app
I suggest you make rooms in the hue app for all of your lights and then select the lights again in the haunted app.https://github.com/user-attachments/assets/73309b0a-9833-4ba3-a152-e28e0fa78fbf

@ohmantics
Copy link
Author

The app uses LightGroups to sync its animations among multiple lights. It only uses your Rooms as part of its Light selection UI, not during animation.

I look forward to the next release with your changes. Thanks!

hendriksen-mark added a commit that referenced this issue Dec 17, 2024
Fix FPS counter in entertainment.
Fix non udp lights in entertainment.
#1057
Exclude entertainment groups from scripts.
Add `LightGroup` as Zone. #1059
@hendriksen-mark
Copy link
Member

Please try the new version and give feedback.

@ohmantics
Copy link
Author

It's still not animating for me, but I'm not seeing errors now.
diyhue.log

@hendriksen-mark
Copy link
Member

And if you look in the log directly of the container? The traceback is not logged to the .log file.

@hendriksen-mark
Copy link
Member

hendriksen-mark commented Dec 25, 2024

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