I am trying to use the habitat plugin, but am having difficulties. There is no documentation that I can find on how to actually get this accomplished, and I have no experience with this. Any help, specifically step by step instructions would be much appreciated!
Announcement
Collapse
No announcement yet.
Hubitat plugin instructions
Collapse
X
-
Yes it would seem the documentation needs to be updated now with the release. I'll get on that.
In the meantime here's a quick intro:
Pre-Requisites:- Hubitat Hub setup with devices
- Hubitat Maker API app installed
- Go to Apps
- Add Built-In App
- Click Maker API in the list
- Security - Local IP Address must be on. Cloud access is up to you
- Select Devices (Click to Set)
- Select the device(s) you want to be available through Maker API
- Endpoints - Local URLS
- Copy the "Get All Devices with Full Details" Link
- You can come back to the Maker API app to get this link if you miss this step
- Click Done
- Hubitat Maker API URL
- Paste the URL form Step 2.4.1 above
- Select your room/floor
- Click Connect / Re-Scan Devices
-
I am having trouble getting the plugin setup. Here is the page I see
Enable Logging
Allow Endpoint to Control These Devices.
WARNING: Any device selected here will have full access to its attributes and events as well as have the ability to send any command to the device
Endpoints
Local URLS
URLS:
Get All Devices
Get All Devices with Full Details
Get Device Info (replace [Device ID] with actual subscribed device id
http://192.168.0.117/apps/api/11/devices/[Device ID]?access_token=44501821-0dd6-4cde-8ea2-(balance omitted)
Get Device Event History (replace [Device ID] with actual subscribed device id
http://192.168.0.117/apps/api/11/devices/[Device ID]/events?access_token=44501821-0dd6-4cde-8ea2-(balance omitted)
Get Device Commands (replace [Device ID] with actual subscribed device id
http://192.168.0.117/apps/api/11/devices/[Device ID]/commands?access_token=44501821-0dd6-4cde-8ea2-(balance omitted)
Get Device Capabilities (replace [Device ID] with actual subscribed device id
http://192.168.0.117/apps/api/11/devices/[Device ID]/capabilities?access_token=44501821-0dd6-4cde-8ea2-(balance omitted)
Send Device Command (replace [Device ID] with actual subscribed device id and [Command] with a supported command. Supports optional [Secondary value]
http://192.168.0.117/apps/api/11/devices/[Device ID]/[Command]/[Secondary value]?access_token=44501821-0dd6-4cde-8ea2-(balance omitted)
What goes in the Hubitat Maker API URL: Box on the setup page?
Comment
-
hello,
I was able to create the root device for my 2 devices in hubitat (rheem econet app and Sinope floor thermostat Th1300zb) but it only created the root device and the temperature measurement for each.
It didn't create the other devices.
Here is what was created in homeseer
Thank you1 Photo
Comment
-
Originally posted by ebenisteriecst View Posthello,
I was able to create the root device for my 2 devices in hubitat (rheem econet app and Sinope floor thermostat Th1300zb) but it only created the root device and the temperature measurement for each.
It didn't create the other devices.
Here is what was created in homeseer
Thank you
Easy Way. Send me devices.
Longer more difficult way. Send me the full output from Maker API (email or private message) please do not format or change it just copy it and save it all to a text file and send it. Send me screenshots of the device pages for the devices so I can see what controls Hubitat is showing so I can mimic them. I can then review it and see how the devices are presented through Maker API and start on adding the devices. This part will be a long back and forth of changes being made and betas being uploaded and you testing.
Comment
-
All I get is an error in the logs:
Posting back to plugin web page HubitatConfig: Invalid IL code in System.Net.Http.HttpClient:.ctor (): method body is empty. -> Server stack trace: Exception rethrown at [0]: at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr) at (wrapper remoting-invoke) HomeSeerAPI.IPlugInAPI:PostBackProc (string,string,string,int) at Scheduler.proxyPage.postBackProc (Scheduler.StateObject& state, System.String Data) [0x00036] in <7559e587c425419191158a614d9e22a2>:0
Comment
-
Originally posted by pcgirl65 View PostAll I get is an error in the logs:
Posting back to plugin web page HubitatConfig: Invalid IL code in System.Net.Http.HttpClient:.ctor (): method body is empty. -> Server stack trace: Exception rethrown at [0]: at (wrapper managed-to-native) System.Object:__icall_wrapper_mono_remoting_wrapper (intptr,intptr) at (wrapper remoting-invoke) HomeSeerAPI.IPlugInAPI:PostBackProc (string,string,string,int) at Scheduler.proxyPage.postBackProc (Scheduler.StateObject& state, System.String Data) [0x00036] in <7559e587c425419191158a614d9e22a2>:0
Comment
-
I am getting similar errors in the log when I try to configure Hubitat.Posting back to plugin web page HubitatConfig: A task was canceled.-> Server stack trace: Exception rethrown at [0]: at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IPlugInAPI.PostBackProc(string,string,string,int ) at Scheduler.proxyPage.postBackProc (Scheduler.StateObject& state, System.String Data) [0x00036] in <47f3a07f91174a3295a188939bcd1b0d>:0
Mono version5.16.0.179
HomeSeer Version: HS3 ZEE S2 Edition 3.0.0.548Linux version: Linux HomeTrollerZeeS2V5 4.9.35-v7+ #1014 SMP Fri Jun 30 14:47:43 BST 2017 armv7l GNU/Linux System Uptime: 0 Days 1 Hour 16 Minutes 57 SecondsIP Address: 192.168.1.64Number of Devices: 104Number of Events: 121Available Threads: 398HSTouch Enabled: TrueEvent Threads: 0Event Trigger Eval Queue: 0Event Trigger Priority Eval Queue: 0Device Exec Queue: 0HSTouch Event Queue: 0Email Send Queue: 0
Enabled Plug-Ins3.0.7.2: Hubitat3.0.7.1: Insteon3.0.1.252: Z-Wave
Comment
-
Michael, I upgraded to mono 5.20.1.19 and at least got a different error. It's hard to say if it's progress or not.
Posting back to plugin web page HubitatConfig: Index was outside the bounds of the array.-> Server stack trace: Exception rethrown at [0]: at (wrapper managed-to-native) System.Object.__icall_wrapper_mono_remoting_wrapper(intptr,i ntptr) at (wrapper remoting-invoke) HomeSeerAPI.IPlugInAPI.PostBackProc(string,string,string,int ) at Scheduler.proxyPage.postBackProc (Scheduler.StateObject& state, System.String Data) [0x00036] in <47f3a07f91174a3295a188939bcd1b0d>:0
Thanks Chuck
Comment
-
This can be painful when the issue is in the bowels of the core software. What I did with the attached is remove all the processing in the PostBackProc of the plugin. With the attached it simply returns an empty string. If you continue to get the error then it is happening before the plugin has any chance to deal with it. If you do not get the error then it becomes more debug to see where along the way of handling it is happening.
Save your existing HSPI_Hubitat.exe and replace it with the one in the attached. If it works then no error in the HS LogAttached Files
Comment
Comment