I’ve been spending my last few months in Nymea University and made some good progress. As of yesterday, I got the following set up as ‘things’ in my Nymea Zigbee network:
Tradfri control outlet (Power socket)
Tradfri Shortcut Button
Tradfri on/off switch
I tested each device and experienced the following successes:
Can directly turn on / off the power to the socket
Can get button pressed logs in the device log of each
Therefore they are working.
Now, all I want to do is make it so that the on/off switch and the shortcut button trigger the power socket. Nothing more than that, but it seems like I’m unable to figure it out.
What I expected was either:
A) I could enter the power socket ‘thing’ and then associate the shortcut button or the on/off switch to it or
B) Enter the on/off switch or shortcut button ‘things’ and make them control the power switch
I was unable to find forum topics or documentations to do this task.
I think it ‘might’ have to happen by creating ‘magic’ but I’m not sure if I have to go through all this or not. Are there any docs I may have missed on this or instructions? I’d be happy to add them to documentation after doing it a few times if that helps,too.
Normally I’d say you create some magic that turns the switch on/off. However, given both devices are ZigBee based I’d recommend you go to the ZigBee settings for the remote control, create a binding to the power plug for the OnOff cluster.
I will try that. In the meantime, I just wrote this exhaustive guide which resulted in a win so that others can save a lot of time on this using the Magic option. I hope this helps and feel free to stick it wherever it makes sense!
How to Turn ON an Ikea Power Socket Using an Ikea Tradfri on/off switch in Nymea
Go to the main hamburger menu
Select “Magic” with the wand
Press the plus + sign at the top right
Press the “Create Magic Manually” button
Press the “Configure” button in the “Execute actions when something happens” section at the top
Select the first icon at the top “When one of my things triggers an event”
Select Tradfri on/off switch (Ikea)
Near the bottom of page, select ‘Button pressed’ text
Select the check box 'Only consider event if"
Select ‘is’ from dropdown and ‘OFF’ from second dropdown
Press OK button at bottom of page
Name your magic something logical like: “Ikea socket ON w Ikea on/off switch”
At the bottom, press the ‘Add an action’ button in the “…execute those actions:” section
Select the first option: “Execute an action on one of my things”
Under Power Sockets, select “Power socket (Ikea of Sweden…)”
Select: ‘Set Power’
Select radio dial: “Use static value as paramater”
Make sure toggle switch is in the ‘ON’ position at bottom
Press OK button at the bottom (this brings you back to main window)
Press the checkbox icon in upper right corner to save all your Magic
Test your switch - it should now turn ON your socket when you press the circle icon on the switch
How to Turn OFF an Ikea Power Socket Using an Ikea Tradfri on/off switch in Nymea
Now repeat the same thing, but with a tweak to turn off:
Go to the main hamburger menu
Select “Magic” with the wand
Press the plus + sign at the top right
Press the “Create Magic Manually” button
Press the “Configure” button in the “Execute actions when something happens” section at the top
Select the first icon at the top “When one of my things triggers an event”
Select Tradfri on/off switch (Ikea)
Near the bottom of page, select ‘Button pressed’ text
Select the check box 'Only consider event if"
Select ‘is’ from dropdown and ‘ON’ from second dropdown
Press OK button at bottom of page
Name your magic something logical like: “Ikea socket OFF w Ikea on/off switch”
At the bottom, press the ‘Add an action’ button in the “…execute those actions:” section
Select the first option: “Execute an action on one of my things”
Under Power Sockets, select “Power socket (Ikea of Sweden…)”
Select: ‘Set Power’
Select radio dial: “Use static value as paramater”
Make sure toggle switch is in the ‘OFF’ position at bottom
Press OK button at the bottom (this brings you back to main window)
Press the checkbox icon in upper right corner to save all your Magic
Test your switch - it should now turn OFF your socket when you press the line icon on the switch
When I bought these Ikea items I noticed that the instructions mentioned that you can bind some of the tradfri items without even the aid of a ZigBee coordinator. The instructions mentioned that the devices had to be very close to each other for the binding to take place. I haven’t the instructions at hand right now, but it might be worth a look for you.
The IKEA devices (and most other ZigBee remotes) support touch link binding, yes. For that, they need to be held close to each other and some button combination on the remote needs to be pressed as described in the devices manual.
However, you can also configure those bindings from the nymea ZigBee settings as I mentioned above. In that case they don’t need to be located close to each other. The end result will be the same.