Tradfri gateway going offline every few days

openhab2 2.5.3-1
Better but not fixed.

Took 9 hour to regain connection but a step forward now it atleast recover even if it takes way to long.

2020-04-12 02:23:54.846 [hingStatusInfoChangedEvent] - 'tradfri:gateway:gwa0c9a0d8a641' changed from ONLINE to OFFLINE (COMMUNICATION_ERROR)
2020-04-12 02:23:54.850 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65545' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.854 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65549' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.857 [hingStatusInfoChangedEvent] - 'tradfri:0820:gwa0c9a0d8a641:65538' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.859 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65539' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.862 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65546' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.868 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65556' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.870 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65553' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.873 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65554' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.876 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65555' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.879 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65548' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.881 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65542' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.884 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65552' changed from OFFLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.887 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65541' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.889 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65540' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.892 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65544' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.894 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65551' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.897 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65550' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.899 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65547' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)
2020-04-12 02:23:54.902 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65543' changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-04-12 11:35:02.953 [hingStatusInfoChangedEvent] - 'tradfri:gateway:gwa0c9a0d8a641' changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE
2020-04-12 11:35:02.955 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65545' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:02.958 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65545' changed from ONLINE to UNKNOWN
2020-04-12 11:35:02.964 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65549' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:02.966 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65556' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:02.969 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65549' changed from ONLINE to UNKNOWN
2020-04-12 11:35:02.971 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65546' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:02.974 [hingStatusInfoChangedEvent] - 'tradfri:0820:gwa0c9a0d8a641:65538' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:02.982 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65539' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:02.984 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65546' changed from ONLINE to UNKNOWN
2020-04-12 11:35:02.993 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65552' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.006 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65539' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.008 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65556' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.010 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65552' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.012 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65553' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.014 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65555' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.016 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65554' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.018 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65553' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.020 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65555' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.021 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65548' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.023 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65547' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.025 [hingStatusInfoChangedEvent] - 'tradfri:0820:gwa0c9a0d8a641:65538' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.026 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65547' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.028 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65542' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.029 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65541' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.031 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65542' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.032 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65541' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.033 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65548' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.035 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65543' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.036 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65544' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.038 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65543' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.039 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65544' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.041 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65550' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.042 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65540' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.044 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65550' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.045 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65540' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.046 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65554' changed from ONLINE to UNKNOWN
2020-04-12 11:35:03.047 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65551' changed from OFFLINE (BRIDGE_OFFLINE) to ONLINE
2020-04-12 11:35:03.048 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65551' changed from ONLINE to UNKNOWN
2020-04-12 11:35:05.975 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65545' changed from UNKNOWN to ONLINE
2020-04-12 11:35:05.999 [hingStatusInfoChangedEvent] - 'tradfri:0830:gwa0c9a0d8a641:65549' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.026 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65546' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.032 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65556' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.038 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65552' changed from UNKNOWN to OFFLINE
2020-04-12 11:35:06.045 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65539' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.053 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65555' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.057 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65553' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.061 [hingStatusInfoChangedEvent] - 'tradfri:0820:gwa0c9a0d8a641:65538' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.066 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65547' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.073 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65548' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.078 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65541' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.083 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65540' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.089 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65543' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.094 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65542' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.100 [hingStatusInfoChangedEvent] - 'tradfri:0010:gwa0c9a0d8a641:65544' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.107 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65551' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.113 [hingStatusInfoChangedEvent] - 'tradfri:0100:gwa0c9a0d8a641:65550' changed from UNKNOWN to ONLINE
2020-04-12 11:35:06.117 [hingStatusInfoChangedEvent] - 'tradfri:0220:gwa0c9a0d8a641:65554' changed from UNKNOWN to ONLINE

Interesting. I am still on 2.5.2 and the problem just magically disappeared a few weeks ago. I donā€™t know if maybe Ikea did something or what. But I am kind of afraid of upgrading my Openhab in case the problem returns.

Hello

Iā€™m facing the same issue since some timeā€¦ Iā€™m on 2.5.9-1 now and I have a full configuration with things an items files and now Iā€™m trying with auto discoveryā€¦ in both situations the hub is online but every 3 minutes its going down

2020-10-12 09:52:46.882 [hingStatusInfoChangedEvent] - ā€˜tradfri:gateway:gw44xxxā€™ changed from ONLINE to UNKNOWN

2020-10-12 09:52:46.914 [hingStatusInfoChangedEvent] - ā€˜tradfri:gateway:gw44xxxā€™ changed from UNKNOWN to OFFLINE (COMMUNICATION_ERROR)

2020-10-12 09:52:46.921 [hingStatusInfoChangedEvent] - ā€˜tradfri:0830:gw44xxx:65538ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.924 [hingStatusInfoChangedEvent] - ā€˜tradfri:0820:gw449xxx:65547ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.937 [hingStatusInfoChangedEvent] - ā€˜tradfri:0210:gw44xxx:65539ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.941 [hingStatusInfoChangedEvent] - ā€˜tradfri:0010:gw44xxx:65548ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.950 [hingStatusInfoChangedEvent] - ā€˜tradfri:0830:gw44xxx:65542ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.955 [hingStatusInfoChangedEvent] - ā€˜tradfri:0210:gw44xxx:65545ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.959 [hingStatusInfoChangedEvent] - ā€˜tradfri:0830:gw44xxx:65544ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.963 [hingStatusInfoChangedEvent] - ā€˜tradfri:0220:gw44xxx:65537ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.967 [hingStatusInfoChangedEvent] - ā€˜tradfri:0210:gwxxx:65543ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:46.970 [hingStatusInfoChangedEvent] - ā€˜tradfri:0830:gw44xxx:65536ā€™ changed from ONLINE to OFFLINE (BRIDGE_OFFLINE)

2020-10-12 09:52:47.049 [hingStatusInfoChangedEvent] - ā€˜tradfri:gateway:gw44xxxā€™ changed from OFFLINE (COMMUNICATION_ERROR) to ONLINE

This happens every 3 Minutesā€¦ sometimes the gateway does not change to online so I have to repower itā€¦

I changed the Tradfri Hub with a Hue Gateway, but I was not happy with Tradfri Bulbs an Controls on a Hue Gateway so I changed it backā€¦ so a full reset has been done tooā€¦

I really have no idea how to solve thisā€¦ I have set up rules triggered by ir sensors, when they are fired during an offline period, nothing happensā€¦

Has this issue been solved somehowā€¦ are there any tricks?

Thanks a lot for your answerā€¦ I tried almost everything!

Jan

I had posted this question also here a few month ago:

Jan

Sorry, canā€™t really help here. I am on latest OH version now (upgraded recently) and I havenā€™t had any issues with Tradfri for months.

Hello, I solved the problem of the gateway going offline every few days by declaring the bridge in a things file as follow:

ikea.things:
Bridge tradfri:gateway:gwxxxxxxxxxxxx [ host=ā€œ192.168.xxx.xxxā€, code=ā€œyyyyyyyyyyyyā€ ]

where code is the secret key of the gateway. I have no more problems since then.

Hello, I seem to have the same issue frequently. disabling en re-enabling the gateway manualy from the Paper UI can fix that. I created a rule as a workaround for this problem.

rule "Tradfri status change"
when
    Thing "tradfri:gateway:mytradfri" changed 
then
    var s = getThingStatusInfo("tradfri:gateway:mytradfri").getStatus().toString()
    var sd = getThingStatusInfo("tradfri:gateway:mytradfri").getStatusDetail().toString()
    if (sd != "DISABLED") {
        logInfo("RULE","Tradfri status changed to [" + s + "]")
        if (s != "ONLINE" && s != "INITIALIZING" ) {
            logInfo("RULE","Enabling Tradfri bridge again")
            sendHttpPutRequest("http://<IP-address>:8080/rest/things/tradfri:gateway:mytradfri/enable", "application/json", 'true') 
        }
    } 
end

Unfortunately this solution didnā€™t help for me. I even add the preSharedKey parameter:
Bridge tradfri:gateway:mytradfri ā€œTradfriā€ [ host=ā€œ10.0.100.100ā€, code=ā€œxxxā€, preSharedKey=ā€œyyyā€ ]