This worked for me. Thanks.
this DH is for the new shortcut button and it works great https://github.com/andusch/ikea-shortcut-button-smartthings
Well after 9 months of not being able to get my Ikea Shortcut Button working with SmartThings I was finally successful using iquixās Zigbee Button edge driver.
Good to hear. So many have had problem with it. I managed to pair it after few tries and it has worked ever since. I hope battery runs forever so I donāt have try to re-pair it ever again.
All Edge drivers run locally as far as I know.
@Sakari how can i add iquixās edge driver to my hub without any link ?
And the ikea short cut button, the held function does it run before release or do you need to release before it triggers the held state ?
Sorry for all my questions i am new to the smartthings community and home automation
@DJFliX has driver for this device in his channel. Hereās the link SmartThings. Add a little smartness to your things..
Enroll to the channel and install driver. Remove device first. Then go to add device, scan nearby and put button to pair mode. If not found just keep trying and trying. Eventually it should be found.
What come to releasing and pressing Iām not 100% sure because I only use it as a single press button.
Thanks for mentioning me! Itās nice to see that stuff that I try to hack together for myself also benefits others . In terms of battery level: Iāve paired my decide at approx 35% when I published my first edge driver (which would be 12 days ago) and itās currently sitting at 30%. So Iām pretty sure this isnāt the worst result but it isnāt great either.
I do see the pressed and released events in Logcat so Iām fairly confident that they should work. However I have had no use for them so far.
Also I think itās fair to mention @iquix here since it is basically his driver (and for that reason I left the copyright notice intact)
Good point.
And the ikea short cut button, the held function does it run before release or do you need to release before it triggers the held state ?
To answer your question: on a driver level: yes. But in smartthings: no. It seems like SmartThings does not facilitate triggers that keep firing while the button is pressed. I do see the held event being generated when I am watching the device with logcat. There might be a way to emulate it, but with the current driver as it is, it is not possible yet.
Edit: As mentioned by @yotiko below: you can not use the held event in the SmartThings app. So while the logcat for the edge driver does output the correct events they will not be usable as such within SmartThings. Iāve edited my message to reflect this. My original message:
Oh, yeah. To answer your question: the held event is emitted as soon as the button is held. As soon as you release the button a release event is emitted. So you can use the held event to do stuff while the button is held.
I now tried it.
This is what i see.
And held even
thats not going to work because smartthings only recognized the held event after releasing the button. And i even tried it didnāt work
Butt the push event is now faster thanks for that
And its execution is in the cloud not local
As with other IKEA buttons, it depends on the integration. The buttons report held after a short delay and the stock Ikea Button DTH uses that for the held event.
As I am hit badly by the battery drain issue I donāt have my Shortcut Button installed, but if I remember correctly @iquix uses that report as a hold start and waits for the release. Whether the held event is sent then depends on the length of the hold (there is a maximum as well as a minimum).
I still have an On/Off button on SmartThings using the DTH and it seems to me the hold period has been longer since I updated the button firmware.
The IDE works in the legacy ecosystem and only really understands Groovy DTHs and the local handlers in the hub firmware. It remains useful for those. Other integrations are just represented by āplaceholderā device types. So it doesnāt truly understand them.
For the current ecosystem you get better mileage from the apps, the CLI and direct use of the API.
Thanks, itās helpful. I managed to get button online. Single click, but much better then dead hardware.
Thanks man!
Hello all! As you can see, this is my first time here.
Because Iām new to this whole āDIY home automationā I bought a lot of gadgets, and like many others, Iām having a hard time pairing an āIkea Tradfri Shortcut Buttonā to my Aeotec SmartThings V3 Hub.
First of all, I have two identical Ikea Tradfri Shortcut Buttons (you will see why this maybe matter in a little bit).
Let me give you some detailed steps of what I did (and in what exact order) and where I am stuck at the moment:
- I tried to pair both buttons to my hub like any other device with no luck.
- Googled around and found out about DTHs, googled more to find out what they are and how they work (repeated this for the IDE). Then I stumbled across this beauty: New Ikea tradfri Shortcut Button? - #33 by iquix (btw, thank you @iquix for this!) and added it into my IDE.
- Added my first shortcut button, got recognized as a āThingā, went into IDE, and set the type to āIkea Tradfri Shortcut Buttonā then BAM! - working like a charm.
- Tried to do the same for the second shortcut buttonā¦ not so much ābamā sadly. Tried a few dozen times, but failed to work every timeā¦
- Tried all that āZigbee Buttonā mumbo jumbo with no luck.
- Learned about Edge Drivers because of @Sakari (thanks!) and enrolled on this SmartThings. Add a little smartness to your things. (thanks @DJFliX) then installed the āIKEA Shortcut Buttonā driver.
- Deleted the button from ST, readded it by using the āscan nearbyā function, got detected as the correct type, got excited, went to test itā¦ fail!
- Went into the IDE and saw that the new āIKEA Shortcut Buttonā that I just added, has the type āplaceholderā, and for the āZigbee Idā and āDevice Network Idā fields I see no values.
- Got stuckā¦ (<- I am here now, please help me to get to step 10: Success!)
Do you guys think that this might happen because I already have another shortcut button paired?
To be honest, Iām afraid to unpair the first button because I might not be able to pair it again.
All I want is to have them both paired (with DTH or Driver) and work for press and hold.
Is it too much to ask?
The IDE was not made for Edge or c2c devices.
Edge devices are always listed as placeholders, and most other field are blank. So what you are seeing in the IDE is normal and correct.
Thanks @Paul_Oliver for the clarification!
I tried again a few more times today (with DTH and with Driver), but no luck ā¦
Hereās a stupid question: do I have to add a new DTH for every button?
Iām thinking no, but I donāt get why the second button itās not working since the first button works like a charm.
What am I missing?