New Homebridge Plug-in via MakerAPI

Thanks! I can reproduce the issue and confirm that it has to do with the attribute filtering. Crunching my brain on how to solve it cleanly.....

1 Like

Ok, that one was a bit tougher...The issue reported by @tsviper had to do with the ability of filtering out attributes and capabilities and homebridges caching of dynamic accessories. Made it a bit messy...

Anyhow, I published a new version and that should resolve that issue.

2 Likes

Just tried latest update and getting "No Response" on all of my devices now.

Here is the log:

[5/1/2019, 9:50:41 PM] Homebridge is running on port 51826.
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Fan, ID 499
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Bedroom Fan, ID 495
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Side Gate Motion
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Side Gate Motion, ID 247
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Garage Lights, ID 496
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Side Gate Lights, ID 1126
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Upstairs Motion, ID 249
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Right Living Room Window, ID 233
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Driveway Motion
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Driveway Motion, ID 246
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Garage Door, ID 241
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Mode-Away, ID 1254
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Dining Room Window, ID 232
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Garage Motion
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Garage Motion, ID 777
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Slider Lock, ID 238
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Side Door Lock, ID 243
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Living Room Lamps, ID 498
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Mode-Night, ID 1255
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Dining Room Lights, ID 209
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Slider Door, ID 901
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Removing attribute: presence for device: Christina
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Christina, ID 934
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Porch Motion
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Porch Motion, ID 248
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Nook Lights, ID 206
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Patio Lights, ID 205
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Left Living Room Window, ID 234
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Mode-Disarmed, ID 1253
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Configuration of cached accessories not done, wait for a bit... 37
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Dining Room Motion, ID 1
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Front Door Light, ID 490
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Plug 5, ID 998
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Office Lamps, ID 491
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Inside Garage Door, ID 240
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Front Door Lock, ID 226
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Plug 3, ID 965
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Plug 4, ID 997
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Pause Motion Notifications, ID 393
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Laundry Room Leak Sensor, ID 198
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Alarm System Hubitat, ID hsmHubitat
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Kitchen Motion, ID 253
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Bedroom Lamps, ID 494
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Classroom Motion, ID 582
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Stairway Lights, ID 199
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Carriage Lights, ID 500
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Removing attribute: presence for device: Tim
[5/1/2019, 9:50:42 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Tim, ID 933
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name RV Parked, ID 648
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Landscape Lights, ID 222
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Classroom Window, ID 239
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: motion for device: Porch Multisensor
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Porch Multisensor
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Porch Multisensor, ID 776
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Kitchen Window, ID 235
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Living Room Motion, ID 583
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Porch Lights, ID 501
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Office Motion, ID 250
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Kids Lamp, ID 219
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Left Office Window, ID 492
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Patio Motion
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Patio Motion, ID 778
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Classroom Lights, ID 1125
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Front Office Window, ID 227
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Nook Motion, ID 254
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: motion for device: Patio Multisensor
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: illuminance for device: Patio Multisensor
HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008A-0000-1000-8000-0026BB765291. Adding anyway.
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Patio Multisensor, ID 774
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Right Office Window, ID 228
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Kitchen Lights, ID 1061
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Smoke Detectors, ID 231
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: humidity for device: Upstairs Thermostat
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: battery for device: Upstairs Thermostat
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Upstairs Thermostat, ID 102
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: humidity for device: Downstairs Thermostat
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Removing attribute: battery for device: Downstairs Thermostat
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Device Added (Cache) - Name Downstairs Thermostat, ID 101
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Fetching Hubitat-MakerAPI devices. This can take a while depending on the number of devices configured in MakerAPI!
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] Refreshing All Device Data
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] latest version on npmjs is 0.2.3
[5/1/2019, 9:50:43 PM] [Hubitat hhm:0.2.3] your version of the plugin is up2date
[5/1/2019, 9:50:44 PM] [Hubitat hhm:0.2.3] Received All Device Data
[5/1/2019, 9:50:44 PM] [Hubitat hhm:0.2.3] Loading HSM
[5/1/2019, 9:50:44 PM] [Hubitat hhm:0.2.3] Processing HSM
[5/1/2019, 9:50:44 PM] [Hubitat hhm:0.2.3] attempt connection to ws://10.0.0.54/eventsocket
[5/1/2019, 9:50:44 PM] [Hubitat hhm:0.2.3] connection to ws://10.0.0.54/eventsocket established

@tsviper This is driving me :crazy_face: :crazy_face::crazy_face::crazy_face::crazy_face:

I made another attempt to fix it, however, I want to do some more rigorous testing, so I will most likely post an update tomorrow. Sorry for the troubles and thanks for testing it!

I’m getting the same thing. Tried to roll back to the previous version but got the same.

Do me a favor and remove your thermostat once from MakerApi and restart Homebridge. If that is not too much trouble....

I don’t have a thermostat in makerapi. I use a nest plugin. Odd thing is it isn’t responding neither but my nest cams work.

Seems like the plugin crashes after it makes connection.

[5/2/2019, 7:38:37 AM] [Nest-cam] Create camera - Backyard
[5/2/2019, 7:38:37 AM] [Nest-cam] Create camera - Front Yard
[5/2/2019, 7:38:37 AM] [Nest-cam] Create camera - Living Room
[5/2/2019, 7:38:37 AM] Backyard is running on port 41003.
[5/2/2019, 7:38:37 AM] Please add [Backyard] manually in Home app. Setup Code: 031-55-154
[5/2/2019, 7:38:37 AM] Front Yard is running on port 42055.
[5/2/2019, 7:38:37 AM] Please add [Front Yard] manually in Home app. Setup Code: 031-55-154
[5/2/2019, 7:38:37 AM] Living Room is running on port 35323.
[5/2/2019, 7:38:37 AM] Please add [Living Room] manually in Home app. Setup Code: 031-55-154
[5/2/2019, 7:38:37 AM] [Hubitat hhm:0.2.2] Fetching Hubitat-MakerAPI devices. This can take a while depending on the number of devices configured in MakerAPI!
[5/2/2019, 7:38:37 AM] [Hubitat hhm:0.2.2] Refreshing All Device Data
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] Received All Device Data
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] Loading Modes
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] Processing Modes
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] Loading HSM
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] Processing HSM
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] attempt connection to ws://192.168.1.4/eventsocket
[5/2/2019, 7:38:38 AM] [Hubitat hhm:0.2.2] connection to ws://192.168.1.4/eventsocket established

Can you show me the output before that where it says “Device Added”. Then I can probably guide you to get you up and running for now

You could also temporarily disable any exclusions that you have configured in your config.json, that should get you up and running too until I have a stable version for you

I confirmed events are still being received but no connection to homekit. removed all exclusions. still wont connect.

@black01gt what HomeKit version are you running? Last night I upgraded HomeKit to 0.4.49 from 0.4.48 and it didn’t work at all (using Hubitat HomeBridge app). Downgrading back to 0.0.48 is working again now. Just thought that info might help?

Thanks but that didn’t work for me. Think I’ll redo the install this evening.

@black01gt, Try:

sudo npm install -g --unsafe-perm homebridge-hubitat-makerapi@0.1.17

Then delete your persist and accessories folders and restart. Gets me back up and running again.

Thanks got same results. I’m going to need to dig in deeper when I get home. I deleted the bridge from HomeKit will try re adding. Can see events happening in the logs. Just no connection to HomeKit.

I am at a customer site today but will look at all of this later today when I am on a train

3 Likes

Dan,

As of 0.1.17, all the fan stuff is working for me. Thanks! I've been away from the house for a while, so I haven't tried anything newer. Maybe tomorrow.

Thanks for your perseverence!

Andrew

Dan.t , I appreciate all the hard work on this. I finally got everything reinstalled. Opted to move the install to my Mac and everything is running great.

1 Like

Regarding the fan device, what determines how the code decides if the fan is a 3-speed or 4-speed fan? I looked through the code and it wasn't obvious to me.

I have my fans set up as 4-speed, given that my Hubitat fan controller device supports the FanControl capability, all of the setSpeed commands, and the speed attribute (using a HomeSeer FC-200+ Fan Controller, and a device driver derived from the WD-200+ dimmer code). The fan controller device works perfectly in Hubitat (all of the setSpeed commands work fine, Dashboard fan template works fine, switch on/off status is consistent with the setSpeed commands, etc.).

Reason I ask is when my fan device is set to "low" speed (25% level in my configuration), the Homebridge-created device shows a fan device at 32% level. Makes sense for a 3-speed fan, but not anything else.

In the latest release (0.2.4) it uses 3 speeds for FanControl as the plugin has no way to determine how many speeds are actually supported

"low" = 1% - 32%
"medium" = 33% - 65%
"high" = 66% - 100%

Given that many fans also support the setLevel command, I am going to see if I can make it a bit more flexible when it comes to setting / getting the right speed level. That is to come in the next version though.