-
Notifications
You must be signed in to change notification settings - Fork 508
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IKEA SOMRIG Shortcut Button support #7450
Comments
Can you please add all screenshots? |
added some more screenshots above and updated. |
I bought this sensor and can t connect it to deconz. @Smanar have you a magic ddf ? |
Can try this DDF
It will enable and configure the device (Need to use the 0xFC80 cluster) but it will not work yet. |
But I think you can do some optimisation with this code from Z2M
On deconz value to use are
and
It's like you have done a double clic for the button 2. |
Ok where I have to put :
|
For exemple by deduction to have a double press on button 1
For a long press on button 2
|
What do you think of :
|
You have the device ^^, you can test your work. On deconz we don't use the S_BUTTON_ACTION_INITIAL_PRESS, useless, we use instead the S_BUTTON_ACTION_SHORT_RELEASED to trigger event when the button is released, so you can remove 2 lines. Value can be different from z2m, but easy to correct whith try, else it seem good for me. |
@Idaho947 If you could share in text form what's working for you, we could quickly add it to the upcoming release 😉 |
I made that. Hope it's Ok :
|
Ha right, I have made a typo ^^. One of you want to make the PR ? |
I made a DDF file and changed buttons file here: https://github.com/noud-github/deconz-rest-plugin/tree/somrig not sure what the rules are for a PR, need to read up on that first ;-) |
There is an online validator for "rules" now. And don't worry you can retry all time you want, you can't break something, don't worry ^^ |
after testing I moved it back to the wrong folder, fixed now, simple question does the validator run on the |PR if I creat it? |
@noud-github After that I restarted deCONZ, paired the somrig shortcut button and when I press the buttons I see the following in the logs: No button map for: SOMRIG shortcut button, unicast to 0x0000, endpoint 0x01, custer: FC80 (0xFC80), command: COMMAND_1 (0x01), payload: 00, zclseq: 95 What can be a cause for this? IS the buttons_map.json correctly loaded? is there something wrong there? EDIT: Do you have an idea what is the correct file to update? Thanks! Thanks for your support! |
I added the buttons file in the wrong folder it should be : (edit: I fixed that yesterday) |
defualt That is docker behavior, I use command other option is to map the changed files into your container so the will be there (mount -v option on docker) |
Hi @noud-github! Thanks for the hint! I am now able to see the events inside Homeassistant, nevertheless I can't pick the right event id, in order to create an automation. Is that something that needs to be done in the DDF? EDIT: Created automation with the following data and worked: id: ikea_somrig_switch (name that I gave to the switch) Now I can turn a Yeelight bulb with the somrig shortcut button!! Fantastic work @noud-github !! |
@CerealPT I used this blueprint: https://github.com/noud-github/ha-blueprints does a nice mapping between events and button names you can understand ;-) |
Man....this is so sweet 🤟 Thanks a lot and hope to see all of these new developments on the new deconz release! |
Picked one up today. My observations:
|
For supported command he use on his PR
So all is fine, on this side. |
Can there be support added for the battery of the SOMRIG? It's currently showing 0%. |
You have just included it ? Can need time, because I m looking the DDF again, I don't see something bad. |
@Smanar Yes, I included it yesterday. How long can/should it take for the correct value to show up? |
Ha have see something, there is no poll in case the bind is not working
By
After 24h if the bind is not working deconz will poll itself the device to have the value. |
Hello, thank you for doing this integration. Battery still shows 0%. Will there be any fix? |
With the changes on previous post it still doesn't work ? |
Hey, I am sorry but I am a total noob on this. I only added to deconz but neither the battery nor the button mapping works after adding the device. What DDF file are you using for this remote? Does someone has it with all the modifications from this conversation? Best regards |
Hello, make a try with this DDF https://github.com/dresden-elektronik/deconz-rest-plugin/blob/master/devices/ikea/somrig_shortcut_button.json You need to have the DDF nativley, else what is your deconz version ? |
Is there already an existing issue for this?
Product name
IKEA SOMRIG Shortcut Button
Manufacturer
IKEA of Sweden
Model identifier
SOMRIG shortcut button
Device type to add
None
Node info
Endpoints and clusters
Basic
Further relevant clusters
Power Configuration
Poll Control
Identity
Groups
ZLL Commissioning
IKEA specific
Link to Product
https://www.ikea.com/at/de/p/somrig--shortcut-button-weiss-smart-50560334/
The text was updated successfully, but these errors were encountered: