Still not working for me.
Reports the current state, but won’t allow me to change it. I can see my lights are on, but I can’t turn them off!
Update
After a few minutes, it started working, but with a delay.
However, if I reboot again, I have to go through the whole process of removing the gw commenting out my things, re add the gw etc.
Let’s hope I don’t have to reboot again for a while!
@Thedannymullen curious…I have performed the following operation three or four times
delete bridge def from text file, restart OH2
discover and add bridge through PaperUI;
copy out Identity code and delete thing in PaperUI (mostly using the delete function in PaperUI, but once I simply deleted the whole jsonDB and its backups to see if that makes a difference)
add newly received identity code in text file for bridge definition
OH2 tries to add bridge Thing as now defined in text file, but status is stuck somewhere around “uninitialized”
In every single iteration of the above, I received a different value for the token identity…
I had similar issues before when the power went down, there is an extra thread for this. My workaround there was to change the gateway ip in habmin to something wrong, then back again to the correct value. This helped here, too.
@Thedannymullen thanks much
This is looks exactly like what I have (except, my values for the preSharedKey and identity and are much longer) and I believe was posted earlier by @Johan_S in post#20 in step8 unless I am missing something. Still for me the effects as I described above remain.
Connect to to the gateway with python3 -i -m pytradfri IP
Enter Security Code of the gateway
You can now find the generated Identity in the first lines. It looks like DEBUG:pytradfri.api.libcoap_api:Executing $GATEWAY_IP post ['15011', '9063']: {'9090': 'xxx-your-identity'}
The new pre shared key is a line after and looks like DEBUG:pytradfri.api.libcoap_api:Received: {"9091":"xxx-your-preshared-key","9029":"1.8.0025"}
With that info you can now connect to the gateway again via the Paper UI in Openhab Things.
Add a new Tradfri Gateway
Enter Security Code
Click on ‘Show More’
Enter Identity and PSK
Save
When the gateway is back online again go to all relating things, click edit and update the selected gateway there.
Gateway was offline when I got home from my Easter vacation. I got it Online several times, but it did not stick. I wonder if it could be related to the Gateway trying to update my 10+ 5 button remotes. Noticed now that several has run out of battery because of the update …
So at the moment, no manual backup either. Must go shopping for CR2032s.
If it keeps bugging me, I have both a HUE and Conbee gateway I can move the lights to.
Yes it’s possible the updates are causing an issue.
If you have not done so, ping gateway ip from a computer make sure it responds then.
I would try deleting the gateway thing from openhab.
Shutdown openhab
Cycle power on gateway
Clear cache
Start openhab.
Add gateway in paper ui
In all the changes I did not clear cache once and had an error. May or may not have been related but a cache clear then start fixed if.
Thanks for pitching in.
I have done som more testing, and it looks like the Ikea Gateway partially hangs.
I can always ping it.
After I manage to get it Online after numerous bundle:restart in karaf, it only stays online for a couple of minutes, 30min max.
Strange thing is that when it goes Offline, I’m not even able to connect with the Ikea Android App.
After power cycling the gateway, it comes Online again for a while.
I have 9 remotes with status Update pending …
Strange behaviour.
Think I will try stopping the bundle while the gateway is Updating the remotes.
Maybe I am missing something but I too am having issues with the Tradfri binding after the update. I have followed the suggestions in this thread and done the following:
comment out Things file entries for Tradfri
add gateway via inbox of PaperUI
entered the code from gateway into Thing configuration
restarted services
expanded show more to retreive the identity and pre-shared key
This is where things get messy. The pre-shared key is just **********.
Where can I get the actual key?
I have tried with just “” for key but it still isn’t working.
Actually, I simply copied and pasted the ******** from the pre-shared key field in PaperUI into my Things file; it “magically” transformed from the series of dots into the plain ASCII sequence (which in my case is the code from the gateway anyway)