Homebridge Plug-in


#183

Yeah I think that’s the paid version of Controller correct? I didn’t bother purchasing, was just playing around with it. So easy just to copy those folders.


#184

Correct. I had some app store credit.
It's yet to save my bum. I'll give it a shot.


#185

I do that a lot if I understand what you're saying...
I have a ZWave socket out front and it wasn't in Homebridge for Halloween. I went into the Homebridge App and added it to the long list of devices, clicked Next. There's a new screen/button offering to restart the Plug-in. I paused, verified Home app on my iPad was good and clicked save.

Everything's still good on the iPad.

So just now, I went thru the same only didn't add anything BUT did click the restart. Again worked fine, remained working, no loss of devices/rooms.

I must be misreading your message. :frowning:


#186

So I know I can trigger virtual switches from homekit to HE through homebridge. I am curious if there is a way to have homebridge/HomeKit recognize virtual presence devices. Just a preference but curious if anyone know how.


#188

I'm going to answer YES, because I have my presence "passed" to HE via a virtual presence driver.

@Cobra has a "dual driver" that is both a Presence sensor and a switch. It shows up as either/both.

I made one too from something he did prior... his code is sooooo much cooler than mine :slight_smile:


#189

Great find. Thanks for sharing!


#190

Would you consider adding the Rachio Gen 2 support back?


#191

GRR... 16 missed message on here! I'm not sure what's up with Discourse notifications but I haven't been getting any of them for my Discourse communities.

@SmartHomePrimer I'm glad that the error was solved.

@JDogg016 I can try to add it back in for the next release


#192

Well, I thought it was solved, but still getting constant warning "Connection Refused".

I have the latest groovy from github, latest Homebridge, latest Hubitat-Homebridge driver. I've deleted and replaced the app code and driver in Hubitat. Regenerated OAuth (including the client secret. Ensured by config.json is correct for the new PlugIn data configuration after I reinstalled the app.

Everything works, but I get these constant stream of warnings. What else can I try?
Hub platform is 1.1.7.120, app version is 1.1.6b and Plugin is 1.5.2

[app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:02.076:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:02.073:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:02.071:debugSending DEVICE Event (HE Porch Light | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:02.070:debugSending DEVICE Event (HE Porch Light | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.765:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.756:debugSending DEVICE Event (HE Overhead | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.753:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.749:debugSending DEVICE Event (HE Overhead | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.383:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.377:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.370:debugSending DEVICE Event (HE Kitchen Light | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:01.368:debugSending DEVICE Event (HE Kitchen Light | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:00.983:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:00.976:debugSending DEVICE Event (HE Floor Lamp | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:00.942:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:01:00.937:debugSending DEVICE Event (HE Floor Lamp | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.497:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.488:debugSending DEVICE Event (HE Porch Light | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.487:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.483:debugSending DEVICE Event (HE Porch Light | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.168:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.164:debugSending DEVICE Event (HE Overhead | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.142:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:52.130:debugSending DEVICE Event (HE Overhead | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.785:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.778:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.776:debugSending DEVICE Event (HE Kitchen Light | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.769:debugSending DEVICE Event (HE Kitchen Light | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.230:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.227:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.225:debugSending DEVICE Event (HE Floor Lamp | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:51.217:debugSending DEVICE Event (HE Floor Lamp | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:42.223:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:42.214:debugSending DEVICE Event (HE Porch Light | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:42.207:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:42.198:debugSending DEVICE Event (HE Porch Light | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.799:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.793:debugSending DEVICE Event (HE Overhead | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.791:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.785:debugSending DEVICE Event (HE Overhead | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.525:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.516:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.506:debugSending DEVICE Event (HE Kitchen Light | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.495:debugSending DEVICE Event (HE Kitchen Light | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.146:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.144:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.131:debugSending DEVICE Event (HE Floor Lamp | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:41.087:debugSending DEVICE Event (HE Floor Lamp | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.882:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.867:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.863:debugSending DEVICE Event (HE Porch Light | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.856:debugSending DEVICE Event (HE Porch Light | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.486:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.482:debugSending DEVICE Event (HE Overhead | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.476:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.470:debugSending DEVICE Event (HE Overhead | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.170:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.159:debugSending DEVICE Event (HE Kitchen Light | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.146:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:31.080:debugSending DEVICE Event (HE Kitchen Light | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:30.797:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:30.789:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:30.787:debugSending DEVICE Event (HE Floor Lamp | SWITCH: on) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:30.777:debugSending DEVICE Event (HE Floor Lamp | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.469:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.464:debugSending DEVICE Event (HE Porch Light | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.456:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.446:debugSending DEVICE Event (HE Porch Light | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.084:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.078:debugSending DEVICE Event (HE Overhead | SWITCH: off) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.051:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:22.041:debugSending DEVICE Event (HE Overhead | LEVEL: 0) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:21.812:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:21.810:debugSending DEVICE Event (HE Kitchen Light | LEVEL: 100) to Homebridge at (192.168.0.113:8005)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:21.807:warnConnection refused (Connection refused)

    [app:2395](http://192.168.0.113/logs#app2395)2018-11-07 09:00:21.784:debugSending DEVICE Event (HE Kitchen Light | SWITCH: on) to Homebridge at (192.168.0.113:8005)

#193

Is it possible the firewall on the system running homebridge is blocking connections? That can happen if you've recently updated Node but haven't told the app firewall that the new node executable is allowed to accept connections.


#194

I’ll look into it, but updated Homebridge to try to alleviate this issue to begin with. Have not updated the Mac it’s running on in a while. Still, it’s another place to look. Thanks for the suggestion.


#195

It's very strange because you're showing basically two messages:

a "warn" and a "debug"
The debug is found in the source code at line 784, but there's only one warn in the source at line 227 and it does not have the word "refused" anywhere in the App's source.

In your .homebridge directory, there's two subdirectories: accessories and persist. Copy those somewhere safe. Then do the upgrade/restart.


#196

Ok So I am using @cobra's driver for presence. My issue is HomeBridge is seeing this as a motion sensor and not a switch. Thoughts?


#197

Why are you using version 1.1.6b of the Groovy App. v1.5.2 is the latest version and is designed to work with plugin version 1.5.2

Basically v1.5+ uses the same code base as it's SmartThings version. The only difference is the hubaction classes used


#198

could you please point me to the latest groovy code? This is what's posted in your repo and it's 1.1.6b


#199

Crap!
I forgot about the hubitatCommunity repo
I maintain so many repo's i completely forgot.

https://raw.githubusercontent.com/tonesto7/homebridge-hubitat-tonesto7/master/smartapps/tonesto7/homebridge-hubitat.src/homebridge-hubitat.groovy


#200

You have an old repo link @SmartHomePrimer

I have been using: GitHub - tonesto7/homebridge-hubitat-tonesto7

Latest and greatest and I have been on the 1.5.2 for the past 16 days.


#201

I'm continuing to refine and optimize the App and Plugin.
V2 is a large rewrite of the plugin to make it easier to maintain. It even feels much faster...
It's going to be a little while before I release because of the ST work i'm doing to use the new API.


#202

Found my issue. Was still getting the warning after updating the HE app. @csteele I tired removing the persist and accessories directories, but that didn't help. @jason0x43 I checked, but no firewall is enabled on that Mac.

The issue was that I was using an old setting in my config.json that used to work with the version that was ported from @pdlovelace 's work, but it's apparently now incompatible.

        "update_method":"direct",
        "direct_ip":"192.168.0.113",
        "direct_port":"8005"

Any way to silence this event logging in the terminal of my Node.js server?


#203

Find the console.log lines in the node file and comment out.