mariusmotea / diyHue

Philips Hue emulator that is able to control multiple types of lights
Other
627 stars 107 forks source link

Adding C# Virtual Hue light (ESP8266) type compatible #488

Closed roelandkluit closed 5 years ago

mariusmotea commented 5 years ago

Hi,

Can you tell in a few words how this can be implemented?

roelandkluit commented 5 years ago

Hi,

It can be used to control any task running on Windows \ Linux (using Mono)

For example, you create the virtual devices;

var virtHueDevice = new cHueSwitch(5, true); virtHueDevice.OnSetDeviceState += virtHueDevice_OnSetDeviceState; virtHueDevice.OnSetDimLevel += virtHueDevice_OnSetDimLevel; virtHueDevice.Start();

Assign the events and start the device. From now on each change will be notified to the application.

I use it, for example, to turn on my smart mirror screen when switching on the light. (on off when switching the light off)

stale[bot] commented 5 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. Thank you for your contributions.