[Edge Driver] Hue Motion Sensor (No Hue Bridge)

I made an Edge Driver for “Hue Motion Sensor”

31u0gojmGSS.AC

This is a port of the well known DTH by @bogdanalexe90
Hue motion sensor (use ST hub, but no hue bridge) - Devices & Integrations / Community Created Device Types - SmartThings Community
ConfigureReporting values are adapted from the DTH.

You can install the driver to your SmartThings Hub with the Invitation link that I’ve created.
https://bestow-regional.api.smartthings.com/invite/qWjB0pNyY62y

Click Invitation Link → Enroll your ST hub → Goto Available Drivers → Install Hue Dimmer Switch driver → Pair your device

These two preferences are implemented in the Edge Driver:

  • Temperature Offset : applied when next temperature packet is sent from the device.
  • Motion Sensitivity : Low/Medium/High. default value is High.

You’d better turn OFF Zigbee secure mode in SmartThings Hub settings.

Also, I uploaded the source code of the Edge Driver to my github, for anyone who are interested.

There’s a quirk in the source code to avoid the error of the ST library.

7 Likes

Hi, I have the outdoor sensor and can se in your github that fingerprint.yml list device as

zigbeeManufacturer:

  • id: hue-motion-sensor
    deviceLabel: Hue Motion Sensor
    manufacturer: Philips
    model: SML001
    deviceProfileName: hue-motion-sensor

while the outdoor sensor is SML002.

Are you planing on releasing a driver for the outdoor sensor as well?

I don’t have the SML002 sensor, but, it seems that their packets are identical, by the source code of zigbee2mqtt.
zigbee-herdsman-converters/philips.js at master · Koenkk/zigbee-herdsman-converters (github.com)

I’ve just added the fingerprint of SML002, without changing the other part of the code.
It will take some time to be applied.

4 Likes

You where fast! :slight_smile: I downloaded your code and did the change as well in a new folder structure. ST-Edge-Driver/hue-outdoor-sensor at master · mogafaga/ST-Edge-Driver · GitHub

But I don’t have a channel to publish to. Maybe you can publish it to your channel and i can test it.

Or will this code be published to your channel and in that case will it work with dual id in fingerprints file?

I’ve already published to my channel before the first reply.
Like DTH, edge driver can have multiple fingerprints in fingerprints.yaml file.

ST-Edge-Driver/fingerprints.yml at master · iquix/ST-Edge-Driver (github.com)

1 Like

Thanks I will try it out!

Works perfectly so far. I had some problems with lost connection on the old DHT driver and will report back if I have any problems. Thanks and god work!

1 Like

@iquix

Do you want to port my hue button DTH as well?

I am using SmartThings WiFi, so I can’t try to port it yet due to the hub firmware being different.

1 Like

It seems that it will work with the built in zigbee-button local dth.

1 Like

@iquix
But does it support the held action?
The old default DTH did not, that’s why I wrote mine as it requires a workaround specific to this model.

1 Like

Uh… I’m sorry.

Long press start packet seems different from the built in zigbee-button.

You can refer to my Edge Driver source code for IKEA Shortcut Button, which is also Non-IAS button.

2 Likes

Hi @iquix! I accepted the invitation to install the drivers from earlier in this post. Would you post the install instructions for this shortcut button driver? I might be behind the curve with this knowledge, so if there is another place where you have posted that, I apologize for belaboring the request. Thank you for your help!

Dan

Click available drivers and you should see the list of drivers in that channel. :thinking:

:man_facepalming: Please forgive my ignorance. Where do I find the available divers options? I’m not seeing it in IDE or the ST app. Certainly I am missing something here. Thank you for your help!

Click Invitation Link → Enroll your ST hub → Goto Available Drivers → Install Hue Dimmer Switch driver → Pair your device

@iquix Thank you! I did all of those steps, and when I repeated them, it verified that I had installed a couple of drivers already (the zigbee button and the hue dimmer switch). But I get stuck on paring my device. How do I do that? Is there a generic way to add a zigbee device? I know how to pair a device that already has a profile/preset. But I’ve had trouble pairing the shortcut button with the IKEA on/off button preset. So past that, I don’t know what do to. Are the installed drivers supposed to show up in the app or the IDE dashboard?

Please forgive my ignorance here. I believe there is some critical information that I am just now aware of. But I don’t know what I am missing. Thank you again for your help!

@iquix Also, How do I install the edge driver for the ikea button. I see it on you git hub but it does not show up in you list of drivers. I installed the “zigbee button” driver from your list. Is that the same or is your ikea shortcut button different? Thanks again!

Oh I’m sorry. I thought you’re talking about Hue Motion Sensor Edge Driver.

I’ve made the Edge driver for IKEA shortcut button, but this device is VERY VERY HARD to pair, especially with the Edge Driver.

When you’re using groovy IDE, there’s workaround for pairing IKEA Shortcut Button, as below.
New Ikea tradfri Shortcut Button? - Devices & Integrations / Connected Things - SmartThings Community
But with Edge driver, there’s no workaround like this one.

All you can do is repeating paring & deleting the device until it finally works.
For me, it took about 20~30 times repeating pairing & deleting to make this device work successfully with Edge Driver.

That’s why I’m not officially releasing this Edge Driver to the Community.

addendum>
‘zigbee button’ in my edge driver channel contains driver for “IKEA shortcut button”. No other IKEA buttons are supported with my Edge Driver.

1 Like

@iquix Ah! Thank you! This helps me not feel so crazy with my experience with this thing. I Guess I’ll keep trying.
Here a few more questions, if you don’t mine answering:

  1. Do you use the Ikea On/off button preset to pair the shortcut button, or something else?
  2. How do I pair the Hue Dimmer switch?
  3. Once a device is paired, is the driver automatically activated, or is there another step I need to do activate the driver I previously installed through your link?

again, thank you thank you thank you!

Please read official guide from ST staff about applying Edge Driver.

1 Like