[RELEASE] Homebridge Hubitat v2.0

Go to App Settings and turn off the logging...

I submitted a PR for this.

They’ve all been off but still getting the warning, but thanks for the suggestion.

You're right, I thought that had fixed it for me but I must have missed the messages in the logs for that iteration. Looking at the code it looks like an easy fix (2 if statements).

This was my bad... I left the debug log there :frowning:

3 Likes

How can I make the fan controls not show in the Home iOS app?

I've set up Homebridge (via Homebridge Hubitat v2.0) which works great. I've got hydronic heat at home (hot water radiators) controlled by Honeywell T6 Pro thermostats. The Home iOS app lets me show temperature and fan controls either as separate tiles or together (see attached) but the fan controls are useless to me regardless, because I don’t have ducts or fans, and would like them to not be shown at all.

The Homebridge v2 app offers filtering options but I am not seeing fan as one of them (see attached). What does it take to make the fan filterable through the Homebridge v2 Hubitat app?

So next, I turned to my Homebridge config file. Here’s what I’ve tried in it:

"excluded_capabilities": {
            "HUBITAT-DEVICE-ID-47": [
                "Fan",
                "Thermostat Fan Mode",
                "Fan Control",
                "Fan Speed",
                "Fan Light"
            ]
}
  1. The device id I got by going to Hubitat > Devices > Thermostat and looking at the url of that page (in my case …/device/edit/47). Is this the right ID? There’s a couple of different ID listed on that device page. Is "HUBITAT-DEVICE-ID-47" the right way to write it? I’ve tried "47" alone. It didn’t seem to make a difference.
  2. How do I know what keywords to use for fan controls? I’m throwing spaghetti at the wall here and copy/pasting what I saw in this thread hoping one of those would do the trick but no luck.

Hi every one I'm having problems with config...at the moment I am using the API method but thought I'd try this way but I'm having issues with the config file, I've tried various ways of changing the existing config. I have even tried typing it in line by line.

Here is what I have so far:
{
"bridge": {
"name": "Homebridge",
"username": "0A:3A:D1:73:58:25",
"port": 51936,
"pin": "358-92-9XX"
},
"mdns": {
"interface": "192.168.68.1XX"
},
"platforms": [
{
"platform": "Hubitat-v2",
"name": "Hubitat-v2",
"app_url_local": "http://192.168.68.1XX/apps/api/",
"app_url_cloud": "https://cloud.hubitat.com/api/b7ec81f2-78ab-4929-XXXX-9f8baa90968b/apps/",
"app_id": 1154,
"app_platform": "Hubitat",
"use_cloud": true,
"access_token": "ca9ca0f1-fd47-4009-XXXX-446fca2a1321",
"temperature_unit": "C",
"validateTokenId": false,
"logConfig": {
"debug": false,
"showChanges": true,
"hideTimestamp": false,
"hideNamePrefix": false,
"file": {
"enabled": true
}
}

Any ideas where I'm going wrong?

Thanks.

@jon.d.tyler - Are you missing an end square bracket "]" somewhere after "platforms"?

Note: probably just before the last "}"..

1 Like

I find indenting helps quite a bit when debugging these:

{
	"bridge": {
		"name": "Homebridge",
		"username": "0A:3A:D1:73:58:25",
		"port": 51936,
		"pin": "358-92-9XX"
	},
	"mdns": {
		"interface": "192.168.68.1XX"
	},
	"platforms": [
		{
			"platform": "Hubitat-v2",
			"name": "Hubitat-v2",
			"app_url_local": "http://192.168.68.1XX/apps/api/",
			"app_url_cloud": "https://cloud.hubitat.com/api/b7ec81f2-78ab-4929-XXXX-9f8baa90968b/apps/",
			"app_id": 1154,
			"app_platform": "Hubitat",
			"use_cloud": true,
			"access_token": "ca9ca0f1-fd47-4009-XXXX-446fca2a1321",
			"temperature_unit": "C",
			"validateTokenId": false,
			"logConfig": {
				"debug": false,
				"showChanges": true,
				"hideTimestamp": false,
				"hideNamePrefix": false,
				"file": {
					"enabled": true
				}
			}
		}
	]
}
1 Like

Managed to save the file....thanks to both of you...there's a reason I'm not a software engineer :wink:

I'm now having another problem. it only seems to be working one way...the homebridge can see the 4 devices I've added (2 Garage Doors & 2 Prescience Sensors) but does not control them. I've got a lot of these message:
[1/8/2021, 2:44:43 pm] [Hubitat-v2] ERROR: sendStartDirect Connection failure | Message: Request failed with status code 500
[1/8/2021, 2:44:44 pm] [Hubitat-v2] INFO: INFO: Your plugin version is up-to-date
[1/8/2021, 2:44:44 pm] [Hubitat-v2] NOTICE: Sending Plugin Status to Hubitat | UpdateAvailable: false | newVersion: 2.2.1
[1/8/2021, 2:44:45 pm] [Hubitat-v2] ERROR: sendUpdateStatus Connection failure | Message: Request failed with status code 500

2 Likes

Restart Homebridge

I've tried that a couple of time now. I'll try restarting hubitat

Now getting these errors after a reboot of Homebridge and Hubitat:
[1/8/2021, 3:01:35 pm] [Hubitat-v2] ERROR: getDevices Connection failure | Message: connect ECONNREFUSED 192.168.68.139:80
[1/8/2021, 3:01:35 pm] [Hubitat-v2] ALERT: Total Initialization Time: (0 seconds)
[1/8/2021, 3:01:35 pm] [Hubitat-v2] NOTICE: Unknown Capabilities: []
[1/8/2021, 3:01:35 pm] [Hubitat-v2] INFO: Hubitat DeviceCache Size: (4)
[1/8/2021, 15:01:36] [Homebridge UI] Homebridge Config UI X v4.36.0 is listening on :: port 8581
[1/8/2021, 3:01:35 pm] [Hubitat-v2] INFO: WebServer Initiated...
[1/8/2021, 3:01:35 pm] [Hubitat-v2] INFO: Sending StartDirect Request to Hubitat | UsingCloud: (false)
[1/8/2021, 3:01:35 pm] [Hubitat-v2] INFO: Direct Connect Active | Listening at 192.168.68.137:8000
[1/8/2021, 3:01:35 pm] [Hubitat-v2] ERROR: sendStartDirect Connection failure | Message: connect ECONNREFUSED 192.168.68.139:80
[1/8/2021, 3:01:37 pm] [Hubitat-v2] INFO: INFO: Your plugin version is up-to-date
[1/8/2021, 3:01:37 pm] [Hubitat-v2] NOTICE: Sending Plugin Status to Hubitat | UpdateAvailable: false | newVersion: 2.2.1
[1/8/2021, 3:01:37 pm] [Hubitat-v2] ERROR: sendUpdateStatus Connection failure | Message: connect ECONNREFUSED 192.168.68.139:80

Your hub is located at 192.168.68.139 ?

Your app id for HomeBridge is 1154?

Yes to both questions.

[1/8/2021, 3:01:35 pm] [Hubitat-v2] ERROR: sendStartDirect Connection failure | Message: connect ECONNREFUSED 192.168.68.139:80

Doesn't want to connect for some reason. Make sure your access token is okay I guess.

Also maybe check out the "Generated HomeBridge Plugin Platform Config" to see if any difference. I have "validateTokenId" set to true.

1 Like

Copy and pasted then into config again and the errors have gone....fingers crossed.

thanks for all your help.

1 Like

The ID number is suppose to be the serial number of the device within the Home app. However, the serial number isn't listed if you are using Homebridge Hubitat v2.0.

Have you tried using the "Heat Only Thermostat" option from within the app?

Screen Shot 2021-01-08 at 8.48.39 AM

Have you tried using the "Heat Only Thermostat" option from within the app?

Yup, both of my thermostats are in the "Heat Only Thermostats" section:

@Vettester Does your Fireplace thermostat not show fan controls in the Home iOS App!?

However, the serial number isn't listed if you are using Homebridge Hubitat v2.0.

Do you know of any way to loop up this number somewhere?

1 Like

The heat only option does show the fan, Try using just the Thermostat option.