Home Monitoring with Things Gateway 0.6

Hi everyone,

Today we are announcing the release of Things Gateway 0.6 which comes with new home monitoring features including support for door sensors, motion sensors and push notifications.

Other enhancements include support for push buttons and a wider range of Apple HomeKit devices, as well as general robustness improvements and better error reporting.

You can check out the blog post for more details and download the 0.6 release from our website. If you already have a Things Gateway running on a Raspberry Pi it should automatically update itself soon.

We can’t wait to see what creative things you do with all these new features. Let us know here on Discourse and on Twitter!

3 Likes

Congrats!

Is there a roadmap for the next things you aim to tackle?

1 Like

Hi @buttonmash,

We haven’t planned the 0.7 release yet, but you can see our product backlog on Waffle.

Input always welcome.

Ben

1 Like

I tried to connect an Eve Degree and an Eve Room, but the sensors do not show up.

Any hint on how to connect them?

@mstegeman Have you tested these devices by any chance?

@benfrancis I’ve not tested with these specific devices, but they should (in theory) work.

@rei_vilo Are you running on the Raspberry Pi? These are both using BLE, so if you’re running on something else, a Bluetooth adapter will be required. Are you saying that they don’t show up at all on the “add things” page?

Another caveat is that they can’t already be paired with anything else.

Yes, I’m running on a Raspberry Pi. No active HomeKit concentrator is active.

There are two problems:

  • The Configure homekit-adapter page only provides the MAC addresses and generic names, like Eve, except the specific name for the Eve Energy (switch).

  • Entering the pin is then a random operation.

Using any BLE utility provides much more information, like the specific name.

Even the lescan utility provides the specific names, but with different MAC addresses!

$ sudo hcitool lescan
LE Scan ...
F5:11:86:21:73:91 Eve
F5:11:86:21:73:91 Eve Energy 47C0
DC:D7:55:23:8F:58 Eve
DC:D7:55:23:8F:58 Eve Energy 23C7
EB:D8:24:E7:A6:64 Eve
EB:D8:24:E7:A6:64 Eve Room ABA1
DC:D7:55:23:8F:58 Eve Energy 23C7
C6:D3:E9:03:4A:27 Eve
C6:D3:E9:03:4A:27 Eve Weather 2359

@rei_vilo I discovered several issues with the HomeKit adapter this morning. I just pushed out an update. You’ll also need to update your “Web Thing” adapter to the new version, and disable Bluetooth scanning in its configuration. It turns out that the two were conflicting and causing issues.

The naming issue seems to be adapter-specific. All we get is what the noble NodeJS module gives us.

Thank you for investigating. Is the new release numbered 0.31?

How to disable scanning?

Yes, that’s the correct version. To disable Bluetooth scanning:

  1. Navigate to Settings -> Add-ons
  2. Click Configure next to “Web Thing”
  3. Check and uncheck the box next to “bluetoothEnabled” (otherwise the form won’t recognize the change)
  4. Click Apply

Thank you for the procedure. There is some improvement. The name of the device is now shown, Eve Room in this case.

Unfortunately, the correct PIN is rejected.

Did you ever get that resolved?

Would like a more elaborate roadmap to this. got confused.

Add-ons keep getting added, independent of the core gateway releases, which occur quarterly. At a high level, gateway updates typically include additional device support (for example, need to add smart locks), structural features (for example, the recent change for notification add-ons, and a new router build for OpenWrt), and standards-body (W3C WoT) updates.

What future improvements would you like to see?

What happened to the bluetooth scan option? Was it taken out?

In the Web Thing adapter? Yes, that’s gone now. That adapter no longer uses Bluetooth at all.

I have the same issue with Eve Room 3359 (Eve Room 1): “Incorrect PIN”.
Log:
2019-10-08 08:14:52.609 INFO : homekit: Adapter: HomeKitAdapter id homekit-adapter pairing started
2019-10-08 08:15:21.278 INFO : AdapterProxy: setPin: xxx-xx-xxx for: homekit-xx:xx:xx:xx:xx:xx
2019-10-08 08:15:23.134 INFO : homekit: Pairing failed for device xx:xx:xx:xx:xx:xx: M1: Got error status: 6
2019-10-08 08:15:23.136 ERROR : homekit: AddonManagerProxy: Failed to set PIN for device homekit-xx:xx:xx:xx:xx:xx
2019-10-08 08:15:23.138 ERROR : homekit: undefined
2019-10-08 08:15:23.140 ERROR : Failed to set PIN for homekit-xx:xx:xx:xx:xx:xx: undefined
2019-10-08 08:15:52.608 INFO : Pairing timeout
2019-10-08 08:15:52.610 ERROR : Thing was not added

Any ideas?
Is only Eve Room 2 supported?

This tells me that the device is already paired with something else.

Thank you for the hint!
I did reset and restart the device a few more times. Even re-flashed Gateway.

Now I’m seeing the same “Incorrect PIN” in UI, but the log is different:

2019-10-08 17:01:44.266 INFO : homekit: at
2019-10-08 17:01:45.037 INFO : homekit: Found BLE device: { CoID: 76,
2019-10-08 17:01:45.038 INFO : homekit: TY: 6,
2019-10-08 17:01:45.040 INFO : homekit: AIL: 205,
2019-10-08 17:01:45.041 INFO : homekit: SF: 1,
2019-10-08 17:01:45.042 INFO : homekit: DeviceID: ‘2f:c3:eb:e6:8e:52’,
2019-10-08 17:01:45.043 INFO : homekit: ACID: 10,
2019-10-08 17:01:45.045 INFO : homekit: GSN: 3,
2019-10-08 17:01:45.046 INFO : homekit: CN: 1,
2019-10-08 17:01:45.047 INFO : homekit: CV: 2 }
2019-10-08 17:01:45.050 INFO : homekit: Error loading device 2f:c3:eb:e6:8e:52: Error: no pairing data available
2019-10-08 17:01:45.051 INFO : homekit: at HomeKitDevice.promise.adapter.db.loadPairingData.then (/home/pi/.mozilla-iot/addons/homekit-adapter/lib/homekit-device.js:103:15)
2019-10-08 17:01:45.052 INFO : homekit: at
2019-10-08 17:01:48.805 INFO : Opened a new things socket
2019-10-08 17:01:48.825 INFO : About to call startPairing on ThingURLAdapter
2019-10-08 17:01:48.826 INFO : About to call startPairing on HomeKitAdapter
2019-10-08 17:01:48.835 INFO : homekit: Adapter: HomeKitAdapter id homekit-adapter pairing started
2019-10-08 17:02:06.178 INFO : AdapterProxy: setPin: xxx-xx-xx for: homekit-2f:c3:eb:e6:8e:52
2019-10-08 17:02:26.936 INFO : homekit: Pairing failed for device 2f:c3:eb:e6:8e:52: Timeout
2019-10-08 17:02:26.941 ERROR : homekit: AddonManagerProxy: Failed to set PIN for device homekit-2f:c3:eb:e6:8e:52
2019-10-08 17:02:26.943 ERROR : homekit: undefined
2019-10-08 17:02:26.946 ERROR : Failed to set PIN for homekit-2f:c3:eb:e6:8e:52: undefined
2019-10-08 17:02:28.752 ERROR : Thing was not added
2019-10-08 17:02:28.754 ERROR : addNewThing cancelled
2019-10-08 17:02:28.761 INFO : thing-url: Adapter: ThingURLAdapter id thing-url-adapter pairing cancelled
2019-10-08 17:02:28.763 INFO : homekit: Adapter: HomeKitAdapter id homekit-adapter pairing cancelled

Does this “no pairing data available” indicate that Eve Room 1 model is not supported?