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

Sometimes light value not setting / Can I read the current light state? #134

Open
dotKokott opened this issue Apr 7, 2022 · 1 comment

Comments

@dotKokott
Copy link

Hello!

I have the issue that it seems that sometimes my universe.updateAll() calls are getting swallowed / don't reach the lights.

I would love to catch that. Is it actually possible to read out the current set value on the lights (or even find out how many lights are connected and what their respective light value is?)

This way I could issue the command again if the light settings are not changing.

Using enttec-usb-dmx-pro driver.

Thank you!

@wiedi
Copy link
Member

wiedi commented Apr 8, 2022

You can use universe.get(channel) to read the value the driver thinks that channel should have.
The driver will repeatedly send this value on the bus.

For discovery we would need to add support for RDM [1]. This is currently not implemented and I don't think I have any device that actually supports this.

As a first step to debugging this I would suggest finding out if this is a software or hardware issue. If the driver sends out the expected values you can start looking at timings, then cabling, device configuration and so on.

[1] https://en.wikipedia.org/wiki/RDM_(lighting)

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

No branches or pull requests

2 participants