Giter Club home page Giter Club logo

winhue's Introduction

WinHue

Requirements :

***PHILIPS HUE HAS RELEASED BLUETOOTH ENABLES HUE BULBS. WINHUE DOES NOT SUPPORT THAT NEW AND SEVERELY LIMITED MODE OF COMMUNICATION FOUND IN THOSE NEW HUE LIGHTS BULBS. HOWEVER, THOSE LIGHT BULBS ARE STILL HUE LIGHT BULBS AND WILL WORK JUST FINE WITH WINHUE, EXACTLY LIKE THE PREVIOUS NONE BLUETOOTH ENABLE HUE LIGHT BULBS. THE USE OF A BRIDGE IS MANDATORY AS IT IS THE COMPUTER THAT CONTROLS THE ENTIRE SYSTEM PERMITTING AUTOMATION. IT'S ALSO THE INTERFACE TO YOUR HOME ETHERNET AND Wi-Fi USED BY WINHUE, AND IT WILL PERMIT A FAR GREATER RANGE OF COVERAGE COMPARED TO BLUETOOTH. THE BRIDGE RANGE WILL USUALLY COVER AN ENTIRE REGULAR SIZE HOUSE IF NOT WAY MORE AS EACH ADDED LIGHT ACT LIKE A SIGNAL REPEATER EXTENDING THE RANGE EVEN FURTHER. AS FOR BLUETOOTH, IT IS QUITE SEVERELY RESTRICTED IN RANGE, TO ABOUT 15 FEET (ONE ROOM), AND IT WILL LIMIT YOUR CONTROL TO 10 LIGHT OR LESS. FINALLY, BLUETOOTH DOES NOT SUPPORT THE USE OF TIMERS.


Description :

WinHue is a windows desktop application to control the philips hue lighting system. It is was created for desktop pc using the microsoft .net framework. It is not intended to run on Windows phones and tablet and those plateforms will not be supported. WinHue also include a console version that comes with the installer.

Features :

  • Control the Philips Hue Lighting system via Microsoft Windows.
  • Create / Modify and delete : Groups, Schedules, Scenes and more.
  • Full control over lights / groups color, brightness, temperature, saturation, name.
  • Recurring Schedules and Timers !
  • Control your light from console.
  • Assign global keyboard shortcuts to your favorite actions and trigger them anywhere within windows.
  • Add rules or sensors.
  • IT'S FREE !

Install Procedure :

Download for git hub release page :

  1. Download the latest release
  2. Install the release.
  3. Pair the bridge with WinHue.
  4. Have fun !

Download using chocolatey :

  1. Install chocolatey
  2. Run choco install winhue
  3. Pair the bridge with WinHue.
  4. Have fun !

*Thanks to bcurran3 for the chocolatey package.

Usage :

FAQ :

  • Does WinHue work with x system ? Answer : No WinHue is made to be used with the philips hue system and api and won't work with other systems.
  • Does WinHue work with alexa ? Answer : If you have alexa and philips hue bulbs without any bridge WinHue won't work. WinHue will only work with a bridge and philips hue bulbs.
  • Can you make WinHue work with x system : Answer : My goal was and still is to have a Windows application be able to control the philips hue lighting system. In other words no but feel free to fork my project and try to adapt it yourself. The Hue API is too deeply embedded inside WinHue that it will most likely need a complete rework of the code to be able to make it work with other system.

Licence :

Creative Commons Attribution Non-Commercial License V2.0

The creator of this projet cannot be held responsible for any problem that might arise for the use of the software.

You are free to:

Share — copy and redistribute the material in any medium or format
Adapt — remix, transform, and build upon the material 

http://creativecommons.org/licenses/by-nc/2.0/ca/

winhue's People

Contributors

aneurysm9 avatar arcanoxdragon avatar banksio avatar hyrules avatar mdenhoedt avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

winhue's Issues

Can't make hotkey

I am unable to set a hotkey.... Any combo I make it says "Hotkey already assigned by another process. Please select another key combo and try again." Do I need auto hotkey? Or is it something else?

Thanks!

ArgumentNullException when searching for bridges

After installing Winhue on my newly setup system the following exception occurs every time I start the application:

2016-08-28 13:38:51,035 [1] INFO WinHue3.App [Application_Startup:34] ==> WinHue BETA 17 started
2016-08-28 13:38:54,191 [1] INFO WinHue3.MainFormView [.ctor:72] ==> Loading bridge from saved settings...
2016-08-28 13:38:54,191 [1] INFO WinHue3.MainFormView [LoadBridge:560] ==> Loading bridge...
2016-08-28 13:38:54,191 [1] WARN WinHue3.MainFormView [LoadBridge:566] ==> No bridge paired/Authorized or no default bridge.... Please do the pairing procedure.
2016-08-28 13:38:56,093 [1] INFO WinHue3.BridgeDetectionPairingView [.ctor:57] ==> Starting bridge detection.
2016-08-28 13:39:08,192 [1] FATAL WinHue3.App [CurrentDomain_UnhandledException:73] ==> Unexpected Exception :
System.ArgumentNullException: Value cannot be null.
Parameter name: key
at System.Collections.Generic.Dictionary2.FindEntry(TKey key) at System.Collections.Generic.Dictionary2.ContainsKey(TKey key)
at WinHue3.BridgeDetectionPairingView.AssociateApiKey(ObservableCollection`1 bridge) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\BridgeDetectionPairingView.cs:line 337
at WinHue3.BridgeDetectionPairingView.Hue_OnDetectionComplete(Object sender, RunWorkerCompletedEventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\BridgeDetectionPairingView.cs:line 351
at HueLib.Hue._detectionBgw_RunWorkerCompleted(Object sender, RunWorkerCompletedEventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\HueLib\Hue.cs:line 48
at System.ComponentModel.BackgroundWorker.OnRunWorkerCompleted(RunWorkerCompletedEventArgs e)
at System.ComponentModel.BackgroundWorker.AsyncOperationCompleted(Object arg)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Window.ShowHelper(Object booleanBox)
at System.Windows.Window.Show()
at System.Windows.Window.ShowDialog()
at WinHue3.MainFormView.DoBridgePairing() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 744
at WinHue3.MainFormView.LoadBridge() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 569
at WinHue3.MainFormView..ctor(Form_EventLog fel) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 80
at WinHue3.MainWindow.Window_ContentRendered(Object sender, EventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\MainWindow.xaml.cs:line 84
at System.Windows.Window.OnContentRendered(EventArgs e)
at System.Windows.Window.b__198_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinHue3.App.Main()

Could you have a look at this issue?

Newbie advice

Hi I have just installed WinHue3 and am having a look at the rules. I have configured the daylight sensor with my longitude and latitude.
I want to switch on my hall light at sunset,+30 by the default. What value and operator do i use in the rule
/sensors/1/state/daylight gt? 1?

Bridge not responding

WinHue 3 beta 24 regularly crashes. I get messages "Bridge not responding".
Although the IP adresse showing for the bridge is correct, it is impossible to pair it.
I have tried several times to reinstall WinHue, without success. Bridge responds OK I use RESTful interface.
The only solution is to reset the bridge to its factory settings.
Please help!

local time in new rules

Please add time (time periods) as conditions to rules. (screenshot)
I can only change time conditions in rules, that were created with other apps, but i can't add them in new rules.
image

Adding lights to a group throws error

Sorry but an unexpected occurred. Please report the exception on the support website so the developer can fix the issues. Please include the most recent log located in the logs folder.

Here is the most recent log:

App Window not centered

The App starts with a maximized window.
On systems with 1024*768 pixels, parts of the the APP are not visible on the screen.
With Beta 24 the upper left corner of the screen is about the character O in the Home tab (e.g. everything to the left of the O and above of the O is not visible. Due to the fact that the lower right corner is visible, i can resize the window, and then maximize it.

h_24

Dimmer rules

I notice that there are 8 rules automatically created for each sensor (dimmer). But only 4 of them are really needed, one for each button. Can I safely delete the other 4?

New Sensors missing

Philips released new Sensors.

We need support of Hue temperature sensor, hue motion sensor and hue ambient light sensor.

Maybe have a look at Q42.HueApi -Repository.

Missing file Utils\ValidateBindableBase.cs

Hi, I forked your code base to see if I could somehow add "copy a rule"-logic so I don't have to create almost identical rules for each of my dimmers.

After forking the winhue3.csproj file complains that the file Utils\ValidateBindableBase.cs does not exist. Could you provide the file or let me know the contents?

Oops, redundant message

image

This is completely my fault, but if that little popup thing (by the checkbox) was there before I asked you to make it more clear, I was wrong, I didn't realize it said anything, at this point there is no need for the message at the bottom.

Can't edit group

When trying to edit a group, upon clicking the save button I receive the following error message:

image

[Feature Request] Spreadsheet view of scenes and bulbs they control

I just counted and I have 66 scenes now controlling 10 lights. Many scenes have the same name, and in one case, two scenes control the same lights and have the same name, one is locked and the other isn't. It's a bit confusing.

I'd like to request a list/detailed view of the current scenes

Something a little like this in the scene area

Scene Light 1 Light 2 Light 3 Light 4 Locked
Bright Assigned Assigned Not Assigned Not Assigned yes
Bright Not Assigned Not Assigned Not Assigned Assigned no
Read Not Assigned Not Assigned Not Assigned Assigned yes

Add custom path to installer

Hello! When installing, can you add a page where the user can select the folder to install? I normally don't let programs install into the default 'Program Files xxx'.

Thank you for the consideration!

CTD on no write access

When scanning / adding a bridge, it gets to the part to save the information, it will throw an exception on close if it does not have write access.

My Documents is under Ransom Protection. When it threw the exception Bit Defender notified me it blah blah blah. Added WinHue to the trusted apps. No issue next time.

Other than a graceful (write access denied) message, not sure there is anything else to do.

2016-12-13 08:03:06,147 [1] DEBUG WinHue3.BridgeDetectionPairingView [Hue_OnIpScanProgressReport:434] ==> Hue IP scan progress report : 253 2016-12-13 08:03:06,212 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_ProgressBarValue:128] ==> ProgressBarValue : 254 2016-12-13 08:03:06,212 [1] DEBUG WinHue3.BridgeDetectionPairingView [Hue_OnIpScanProgressReport:434] ==> Hue IP scan progress report : 254 2016-12-13 08:03:06,278 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_UserMessage:176] ==> UserMessage : Scanning complete. 2016-12-13 08:03:06,279 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_ScanButtonText:209] ==> ScanButtonText : Scan 2016-12-13 08:03:06,280 [1] INFO WinHue3.BridgeDetectionPairingView [Hue_OnIpScanComplete:446] ==> Scan for bridge completed. 2016-12-13 08:03:07,648 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_SelectedBridge:139] ==> SelectedBridge : ipaddress : 192.168.1.17, IsDefault : True, SwVersion : 01035934, Mac : 00:17:88:18:55:c4, ApiVersion : 1.15.0, ApiKey : dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk, BridgeUrl : http://192.168.1.17/api/dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk 2016-12-13 08:03:07,653 [1] DEBUG WinHue3.BridgeDetectionPairingView [set_CanPair:164] ==> CanPair : False 2016-12-13 08:03:09,628 [1] DEBUG WinHue3.WinHueSettings [Save:32] ==> Saving settings : {"BridgeInfo":{"00:17:88:18:55:c4":{"ip":"192.168.1.17","apikey":"dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk","apiversion":"1.15.0","swversion":"01035934","name":"The Hue Hub"}},"DefaultBridge":"00:17:88:18:55:c4","ShowHiddenScenes":false,"Language":"en-US","DetectProxy":false,"EnableDebug":true,"LiveSliders":false,"UpnpTimeout":5000,"DelayLiveSliders":25,"StartWithWindows":false,"StartMode":0,"listHotKeys":[]} 2016-12-13 08:03:09,629 [1] ERROR WinHue3.WinHueSettings [Save:48] ==> Error while saving the settings. System.UnauthorizedAccessException: Access to the path 'C:\Users\Brent\OneDrive\Documents\WinHue\WinHueSettings.set' is denied. at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) at System.IO.FileStream.Init(String path, FileMode mode, FileAccess access, Int32 rights, Boolean useRights, FileShare share, Int32 bufferSize, FileOptions options, SECURITY_ATTRIBUTES secAttrs, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options, String msgPath, Boolean bFromProxy, Boolean useLongPath, Boolean checkHost) at System.IO.StreamWriter.CreateFile(String path, Boolean append, Boolean checkHost) at System.IO.StreamWriter..ctor(String path, Boolean append, Encoding encoding, Int32 bufferSize, Boolean checkHost) at System.IO.File.InternalWriteAllText(String path, String contents, Encoding encoding, Boolean checkHost) at System.IO.File.WriteAllText(String path, String contents) at WinHue3.WinHueSettings.Save() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Utils\WinHueSettings.cs:line 41 2016-12-13 08:03:25,049 [1] ERROR WinHue3.Form_BridgeDetectionPairing [btnDone_Click:46] ==> Error while saving settings. 2016-12-13 08:03:26,346 [1] DEBUG WinHue3.WinHueSettings [Save:32] ==> Saving settings : {"BridgeInfo":{"00:17:88:18:55:c4":{"ip":"192.168.1.17","apikey":"dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk","apiversion":"1.15.0","swversion":"01035934","name":"The Hue Hub"}},"DefaultBridge":"00:17:88:18:55:c4","ShowHiddenScenes":false,"Language":"en-US","DetectProxy":false,"EnableDebug":true,"LiveSliders":false,"UpnpTimeout":5000,"DelayLiveSliders":25,"StartWithWindows":false,"StartMode":0,"listHotKeys":[]} 2016-12-13 08:03:26,350 [1] INFO WinHue3.MainFormView [LoadBridge:667] ==> Loading bridge... 2016-12-13 08:03:26,350 [1] DEBUG WinHue3.MainFormView [AssociateBridgeWithApiKey:653] ==> Associating bridge 192.168.1.17 with APIkey dY764p-oVqIAlxWBfWXpYMq5H6VT-ftR3zcz8-vk 2016-12-13 08:03:33,061 [1] FATAL WinHue3.App [CurrentDomain_UnhandledException:74] ==> Unexpected Exception : System.NullReferenceException: Object reference not set to an instance of an object. at WinHue3.MainFormView.MessageAdded(Object sender, EventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 728 at HueLib2.Bridge.set_lastMessages(MessageCollection value) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\HueLib2\Bridge\Bridge.cs:line 118 at HueLib2.Bridge.GetBridgeSettings() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\HueLib2\Bridge\Bridge_Settings.cs:line 68 at WinHue3.HueObjectHelper.IsAuthorized(Bridge bridge) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Utils\HueObjectHelper.cs:line 730 at WinHue3.MainFormView.AssociateBridgeWithApiKey(ObservableCollection1 bridge) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 655
at WinHue3.MainFormView.LoadBridge() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 668
at WinHue3.MainFormView.DoBridgePairing() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 878
at WinHue3.MainFormView.Temp_BridgeNotResponding(Object sender, EventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 722
at HueLib2.Bridge.GetBridgeDataStore() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\HueLib2\Bridge\Bridge.cs:line 194
at WinHue3.HueObjectHelper.GetBridgeDataStore(Bridge bridge) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Utils\HueObjectHelper.cs:line 639
at WinHue3.MainFormView.RefreshView() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 1051
at WinHue3.MainFormView.set_SelectedBridge(Bridge value) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 537
at WinHue3.MainFormView.LoadBridge() in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 702
at WinHue3.MainFormView..ctor(Form_EventLog fel) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 81
at WinHue3.MainWindow.Window_ContentRendered(Object sender, EventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\MainWindow.xaml.cs:line 81
at System.Windows.Window.OnContentRendered(EventArgs e)
at System.Windows.Window.b__198_0(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinHue3.App.Main()`

Unstable? and Unable to change light brightness with GUI

So recently when I try to open up the latest BETA 16 , once in a while it freaks out and throws a weird error. Unfortunately I haven't been smart enough to screenshot it yet...

On the other hand, a reproducible error is the inability to change a single light brightness through the GUI. Maybe my computer needs to be restarted, however when I click on a light, and try to move the brightness slider, the controls snap away as soon as I click on the slider. Quite frustrating. Any clues on how to diagnose?

It's possible this may be an error from running Windows 10 Home Insider Preview Build 14379.rs1_release.160627-1607

I have not tested the latest BETA 16 on my server yet so I cannot be sure, however the brightness bug is reproducible on this particular computer so I figured I'd report it.

Can't Edit a scene

When I try to save the scene after editing, I get this strange error. Any
ideas?

Creator : fiveseven808

Right click on scene -> edit
Click on a few lights under "Selected Lights"
Uncheck "on" for some of those lights
Click "Save Scene"

Philips hue motion sensor

i don´t know if this is the right place to post this and my English is not the best

i have a Philips hue motion sensor and can´t use it, because i don´t have android or iOS

with winhue 3 beta 21 i was able to switch the lights on when motion is detected but i don´t know how to switch the light of when no motion is detected after a period of time.

is this possible ?

Crashing on schedule edit

Right click on schedule, click on edit, the program crashes. Lemme know if you need logs. Thanks!

User Guide?

Is there a UG for WinHue3? I have a lot of questions about how the program works and the meaning of several screens.

First one, what is 'Daylight' under Home|Sensors? I didn't purchase such a device so wondering if this is embedded in the Philips bridge? Can I remove it?

Another, I have 8 rules for Dimmer 2 (Dimmer 2.1, Dimmer 2.2, etc). Do these somehow reflect the actions of things like clicking the ON button repeatedly?

Craig

WinHue remembers legacy IP

After installing a new router, with a new subnet by default, my batch scripts won't work anylonger. I keep getting the response that the bridge under IP XYZ is not responding, although I deleted the old bridge and added the same bridge with the new IP via UI.

Here is the response (hence the new IP is 192.168.178.29):
Error getting light {}
An error occured while sending the light state to the bridge.
Type : -999, Bridge is not responding at address 192.168.2.100.

Everything within the WinHue UI works fine.

Clap on / Clap off

Just a simple clap on clap off feature ... would be helpful if you werent at your keyboard for whatever reason.

Tips and tricks

I will be posting here tips and trick to enhance your Philips hue experience. If you have some of your own feel free to add them here.


Adding a delay to the motion sensor off rule.

instead of using the dx operator use the ddx operator and add a timer value of your choice.
your rule should look like this :

presence eq false
lastupdate dx PT00:05:00 ( this will add a 5 minutes delay to the execution of the rule )

PT is for timer and the other characters are HH ( hours ) : MM ( minutes ) and SS for seconds.


Operators explained :

dx= changed
gt = greater than
lt = lower than
in / not in = inside a range or not
dx / ddx = changed (no value) and delayed change (need a value)
stable / not stable = value is stable or not


NullReferenceException when Bridge not responding

My bridge hiccups regularly, causing an exception shortly thereafter. Occured multiple times.
(don't mind the timestamp of the exception log entry, it seems to use the time after confirming the exception dialog)

2016-08-25 20:19:13,890 [1] DEBUG WinHue3.HueObjectHelper [GetBridgeLight:147] ==> Getting light ID : 1 from Bridge : 192.168.178.103
2016-08-25 20:19:16,890 [1] INFO WinHue3.MainFormView [MessageAdded:605] ==> {Type : -999, Bridge is not responding at address none.}
2016-08-25 20:19:16,890 [1] DEBUG WinHue3.HueObjectHelper [GetBridgeLight:149] ==> Light : {}
2016-08-25 21:33:47,115 [1] FATAL WinHue3.App [CurrentDomain_UnhandledException:73] ==> Unexpected Exception :
System.NullReferenceException: Object reference not set to an instance of an object.
at WinHue3.HueObjectHelper.GetBridgeLight(Bridge bridge, String id) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Utils\HueObjectHelper.cs:line 152
at WinHue3.MainFormView.RefreshObject(HueObject obj, Boolean logging) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 814
at WinHue3.MainFormView._refreshStates_Tick(Object sender, EventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 94
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinHue3.App.Main()

Feature Request: Effects

I'd like it so I can have it run something like 'Red Alert' and have it change to Red but also flash the lights on and off. Thanks.

Crash while searching for new Lights

Fresh Start of WinHue3 BETA 18. Paired with first Hue Bridge 2.0 - worked fine.

Pressed the "Search for new Lights" Button.
Crash with the following Stacktrace:

2016-10-12 22:45:21,101 [1] FATAL WinHue3.App [CurrentDomain_UnhandledException:74] ==> Unexpected Exception :
System.NullReferenceException: Object reference not set to an instance of an object.
at WinHue3.HueObjectHelper.ProcessSearchResult(Bridge bridge, SearchResult results, Boolean type) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Utils\HueObjectHelper.cs:line 102
at WinHue3.HueObjectHelper.GetBridgeNewLights(Bridge bridge) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Utils\HueObjectHelper.cs:line 57
at WinHue3.MainFormView._findlighttimer_Tick(Object sender, EventArgs e) in D:\Documents\Visual Studio 2012\Projects\WinHue3_1\WinHue3\Views\MainFormView.cs:line 735
at System.Windows.Threading.DispatcherTimer.FireTick(Object unused)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.DispatcherOperation.InvokeImpl()
at System.Windows.Threading.DispatcherOperation.InvokeInSecurityContext(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at MS.Internal.CulturePreservingExecutionContext.Run(CulturePreservingExecutionContext executionContext, ContextCallback callback, Object state)
at System.Windows.Threading.DispatcherOperation.Invoke()
at System.Windows.Threading.Dispatcher.ProcessQueue()
at System.Windows.Threading.Dispatcher.WndProcHook(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
at System.Windows.Threading.ExceptionWrapper.TryCatchWhen(Object source, Delegate callback, Object args, Int32 numArgs, Delegate catchHandler)
at System.Windows.Threading.Dispatcher.LegacyInvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
at System.Windows.Application.RunDispatcher(Object ignore)
at System.Windows.Application.RunInternal(Window window)
at System.Windows.Application.Run(Window window)
at System.Windows.Application.Run()
at WinHue3.App.Main()

HUEMOTION

Hi I have a huemoton and I can't use it can you add something to make it work :)

Can't change brige IP after pairing

It is not possible to change the IP or reset the bridge detection list.
After I change my router and reconnect the bridge it was not possible to connect to.
Because it is not possible to change the IP of the connected bridge or add a IP manually

Auto-Refresh on Scene change

If you double click and activate a scene, you still need to hit the "Refresh View" Button to see the change that was made/ what the status of the lights you turned on were.

Could you pull a refresh when the scene command is sent? I noticed the lights affected by the scene become "green" highlighted however their picture status in Winhue GUI is not reflected (i.e. they still show as "off" even though their color and brightness attributes appear to have changed).

Error when saving a new scene

I'm configuring my new setup. I've created a group with my 4 light.
I click create a scene. I enter "Blue" as name, i set blue color in step 2, Step 3 i add my 4 lights, and click "Save Scene".

It don't save and popup this error:
"One or more errors occured while creating the object:
Type : 4. method, POST, not available for ressource, /sscenes at address /scenes"

What does it mean ?

In event log i see the command :
Scene to be created : {"name":"Blue","lights":["1","2","3","4"],"recycle":false}

Cannot send XY color to Group in console

C:\Program Files (x86)\WinHue 3>whc -lg
[ID]=1, Name=Master Bedroom, MembersID=[7,8], Type=Room
[ID]=2, Name=Living Room, MembersID=[2,5,9,10,11], Type=Room
[ID]=3, Name=Bathroom, MembersID=[6], Type=Room
[ID]=4, Name=Hallway, MembersID=[1], Type=Room

C:\Program Files (x86)\WinHue 3>whc -g:2 -on:true -bri:254 -x:0.3789 -y:0.4586 -sat:254
Object reference not set to an instance of an object.

Any ideas?

Turn off a bulb?

If I turn power off to a set of bulbs, then turn the power back on, all the bulbs come on. If I then double click on a scene which sets only one bulb to 50% brightness, it does that but it does not turn the other bulbs off. I tried adding the other bulbs to the scene and setting the intensity to 0 but it still left the bulbs unchanged. How do I setup a scene so it will turn off a bulb?

Running Winhue without admin privileges?

Hello,

ist it possible to run Winhue without UAC asking for the admin password? Or in other words: Why does Winhue need admin privileges anyway?

Kind Regards!

MQTT

(improvement) Any plans on adding MQTT support?
A subscribe and publish function would be useful for adding triggers from outside the system, the daylight sensor already seems to be of a similar format. I haven't really looked at the code so I don't know how hard this would be to implement but MQTT is proving to be so trivial to roll in to my other stuff that I would expect it to be fairly easy to add hooks.

Shortcuts to work system wide

Instead of the shortcuts only working while the app is currently focused, it would be nice if i could stay in the current application and hit a shortcut to change the lights.

Sort items on the bridge and other feature request

Hello.
Thank you for this awsome program.

Ill just need some aditional functionality.
Is it possible for you to implement a sorting routine on the lights, groups, sensors, scenes and rules view. Im thinking about alphabetic sort, both desc and acs.
Another great feature will be an field to display current item number, eg. bulb number 5, when selecting an item.
The last feature request I'll have today is an "copy rule" guide, allowing users to reuse same rules on different sensors just with the target as different, eg. group or lights...

Best regards
Christian Kragh

Console bug saturation

For some reason which ever --sat value I enter in the console, it gets ignored. It always stays at 76.
Please fix.

whc not recognizing that bridge is paired

Hello sir, thanks for your efforts on this program. I've just installed beta 24, and got my bridge paired in the GUI, and all the scenes and lights are visible and working fine. I would like to use the command line for scripting but every time I try to pull any info from whc it tells me "Please pair at least one bridge with WinHue in order to use whc."

I see that there was some issue with the location of the settings file - it is in appdata roaming and nowhere else - do I need to move the settings file elsewhere for whc to notice it?

Many thanks. es

BUG: Unexpected exception upon inserting a rule

To use multiple Philips Dimmer Switches with the Bridge, the iOS App uploads a set of rules. With Windows, those rules have to be created manually.

I can enter all data and configuration information required, however when I press the button to create the rule, I get a pop-up message box: "Sorry but an unexpected exception occured. Please report the exception ....". I have no ther choice but to Press the OK button, and WinHue3 terminates.

After restart of the Hue3 app, i can edit the rule and everything works fine.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.