IKEA Grillplats and Home Assistant Green
So, I went shopping at the IKEA and ran into some really neat home automation gadgets. The Grillplats plug especially interested me as I would like to track power consumption of devices, and I did not yet find a good solution for that. One impulse buy later I was home with my new Grillplats plug.
Of course I did a quick google search in the store to see if it was compatible with home assistant, and I found some articles explaining how to add it to your setup. So I was unworried when I started tinkering. That soon changed.
It turns out that one requires a Thread border router for these devices. Of course IKEA sells them, but would I rather no add another device to my network. Home Assistant it self has a connector that can be used, the connect zbt-2, which just plugs into the USB port of my Home Assistant Green.
I bought the ZBT-2 and connected it. Followed the instructions on screen and configured it for Threads. This is a well thought out integration.
And that is it, right? No. Here are the gotcha's that I ran into and how I fixed them.
IPv6
Matter / Threads uses IPv6 to do their communication. That means that your network has to support IPv6. On my Amplifi Alien router I enabled IPv6 under Internet and made sure the DHCP was working.
On my laptop I was able to confirm IPv6 and mDNS (the way the devices find eachother) was working by running avahi-browser -a, it shows all the mDNS requests on the network.
New installations of Home Assistant Green will not have the next issue, but mine is a bit older. I had to enable IPv6 for the docker instance on the Home Assistant by running ha docker options --enable-ipv6=true in a terminal. I installed a SSH app on the Home Assistant for this purpose.
Provisioning the device / WiFi
I learned that when you provision the device with your phone, it first uses the phone (Android) to do a lot of heavy lifting, including transferring credentials for the Thread network, it then switches over to the Thread border router to do the rest, while your phone connects to the device over WiFi.
These devices use 2.4GHz to connect on the WiFi spectrum. My phone is modern and uses the 5GHz band if it is available (higher bandwidth), so it went from “Discovering Device”, “Generating Matter Credentials”, “Confirming connection to Thread network X” to “Could not connect to device”. The last bit stumped me for a long while, but then I turned off 5GHz on my WiFi and tried again. It finally worked.
Conclusion
The plug is working now. The 8 euro buy turned into a 53 euro buy, but I am monitoring my energy usage on the plug now :D.
I wonder how the IKEA device does this, a non-technical person would not be able to resolve the issues I've had to get it going. Perhaps it builds its own WiFi network for the devices? If you know, do send me a message!



