Phillips hue

Tell us how Jarvis makes your life easier and share your methods.
Site Admin
Posts: 2423
Joined: January 11th, 2014, 12:29 am

Re: Phillips hue

Post by Zunair »

Hmm I'll have to test that...

For now test this... After loading lhue.exe as plugin

social sample:

command: turn on the living room light
response: [LHue.Switch("on","Living Room Light","living room light is now {state}","living room is already {on}")]
this is not tested.

Verify the exact command from tray menu...

You can also look up curl.exe and send put requests thru that

Sent from my XT1039 using

Also put this with the exe
Tapatalk// ...
(133.02 KiB) Downloaded 112 times
Posts: 11
Joined: April 14th, 2017, 3:42 pm

Re: Phillips hue

Post by Bengt »

Added the command and response just like you wrote it, but Jarvis just reads (speaks) the response.

ColorSliderLibrary.dll is loaded and enabled ok
LHue is added to the tray menu but not enabled.
When I try to enable it I get an error message:

************** Exception Text **************
System.Exception: Could not load file or assembly 'Q42.HueApi, Version=, Culture=neutral, PublicKeyToken=null' or one of its dependencies. The system cannot find the file specified.
at jarvisWPF.Classes.Plugins.PluginController.LoadPlugin(String FullPathOrName)
at jarvisWPF.MainWindow.PluginSubMenu_DropDownItemClicked(Object sender, ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.OnDropDownItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDownItem.DropDown_ItemClicked(Object sender, ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStripDropDown.OnItemClicked(ToolStripItemClickedEventArgs e)
at System.Windows.Forms.ToolStrip.HandleItemClick(ToolStripItem dismissingItem)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Then there are a lot of lines that seems to be ok.
at the end list, this comes (not sure if it has something to say regarding ehe errormessage) :
************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the section.
The application must also be compiled with debugging

For example:

< jitDebugging="true" />

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.
Site Admin
Posts: 2423
Joined: January 11th, 2014, 12:29 am

Re: Phillips hue

Post by Zunair »

Unload color slider... Only load lhue may need another DLL ... Hmm....

Get Newtonsoft.Json DLL from here

Sent from my XT1039 using Tapatalk
Post Reply