michielpost / Q42.HueApi

C# helper library to talk to the Philips Hue bridge
MIT License
411 stars 114 forks source link

issue with entertainment api #144

Closed StefanRademakers closed 6 years ago

StefanRademakers commented 6 years ago

We can't get the entertainment credentials working persistent. (followed the example on the q42 entertainment page).

When using .await LocalHueClient.RegisterAsync(BridgeModel.ip, "X", "Y", true); AND new StreamingHueClient(ip,username,entkey)

We get working credentials and streaming works.

When we save the credentials and try to reconnect with new StreamingHueClient(ip,username,entkey) It looks like we connect but commands are not send. Any thoughts?

michielpost commented 6 years ago

Can you try to run the entertainment sample included in the source code? You can put your key and entertainment key in the source code, compile and run it.

Can you use the LocalHueClient to send normal (non entertainment) commands? For testing if your normal key is working ok. StreamingHueClient client = new StreamingHueClient(ip, key, entertainmentKey); var localClient= client.LocalHueClient; await localClient.SendCommandAsync(... some command for testing);

I've not experienced any problemens with reusing the entertainment key.

vandenbrakel commented 6 years ago

Thanks. It works in the sample. We will dig into our code again.