Ikea Tradfri Gateway Crashes hoops bridge
**Description**
The Ikea Tradfri Gateway (Certified) plugin is crashing my Hoobs bridge service. It's been working fine for months, then all of a sudden the bridge stopped. I've un-installed all my plugins and removed config files then reinstalled them one by one until I found the bridge stop again as soon as the tradfri gateaway plugin is installed.

**Version**
3.2.10.

**Did you upgrade**
Please let us know if you upgraded from a previous version.
- [ ] Yes
- [x ] No

**Pervious version**
If you upgraded, please let us know your previous version.

**Did you orginally upgrade to HOOBS 3 from HOOBS 2.1.1?**
Did you perform an upgrade from HOOBS 2.1.1? Some things are different.
- [ ] Yes
- [x ] No

**What device are you using?**
Please let us know the device you are running HOOBS on.
- [ ] HOOBS Box
- [x ] HOOBS SD Card
- [ ] Custom Install

**If this is a custom install, what's your operating system?**
Please let us know what operating system and version you are using. Ex. Fedora 30 or macOS Catalina.

**List your plugins**
"homebridge-smartthings-v2",
"homebridge-dummy-garage",
"homebridge-shelly",
"homebridge-camera-ffmpeg",
"homebridge-samsung-tizen",
"homebridge-marantz-volume",
"homebridge-dummy",
"homebridge-denon-v2",
"homebridge-ikea-tradfri-gateway"

**Post your config**
This can be found in the interface, Configuration -> Advanced or you can get it via SSH `cat ~/.hoobs/etc/config.json`

* Remove any passwords from the config file. This is public.

```
{
    "server": {
        "autostart": 1,
        "port": 8080,
        "origin": "*",
        "polling_seconds": 1,
        "home_setup_id": "X-HM://0023ISYWYG89F"
    },
    "client": {
        "locale": "en",
        "latitude": "51.5705131",
        "country_code": "GB",
        "longitude": "0.5602555",
        "default_route": "status",
        "postal_code": "",
        "theme": "hoobs-dark",
        "temp_units": "celsius",
        "inactive_logoff": 60
    },
    "bridge": {
        "name": "HOOBS",
        "port": 51826,
        "pin": "031-45-154",
        "username": "D8:A6:25:E5:63:87"
    },
    "description": "031-45-154",
    "ports": {},
    "accessories": [
        {
            "maxVolume": 100,
            "defaultVolume": 25,
            "accessory": "marantz-volume",
            "plugin_map": {
                "plugin_name": "homebridge-marantz-volume",
                "index": 0
            },
            "host": "192.168.0.5",
            "name": "Marantz Volume"
        },
        {
            "plugin_map": {
                "plugin_name": "homebridge-dummy-garage",
                "index": 0
            },
            "accessory": "DummyGarage",
            "name": "Dummy Garage",
            "autoCloseDelay": 0
        },
        {
            "slaveCount": 1,
            "plugin_map": {
                "plugin_name": "homebridge-occupancy-delay",
                "index": 0
            },
            "accessory": "OccupancyDelay",
            "name": "OccupancyDelay",
            "delay": 120
        },
        {
            "slaveCount": 1,
            "plugin_map": {
                "plugin_name": "homebridge-occupancy-delay",
                "index": 0
            },
            "accessory": "OccupancyDelay",
            "name": "HallOccupancyDelay",
            "delay": 120
        },
        {
            "slaveCount": 1,
            "plugin_map": {
                "plugin_name": "homebridge-occupancy-delay",
                "index": 0
            },
            "accessory": "OccupancyDelay",
            "name": "loungeOccupancyDelay",
            "delay": 120
        },
        {
            "slaveCount": 1,
            "plugin_map": {
                "plugin_name": "homebridge-occupancy-delay",
                "index": 0
            },
            "accessory": "OccupancyDelay",
            "name": "outsideOccupancyDelay",
            "delay": 120
        },
        {
            "delay": 5000,
            "disableSensor": false,
            "accessory": "DelaySwitch",
            "name": "delayLounge",
            "startOnReboot": false
        }
    ],
    "platforms": [
        {
            "platform": "Shelly",
            "plugin_map": {
                "plugin_name": "homebridge-shelly"
            },
            "name": "Shelly",
            "admin": {
                "enabled": true
            }
        },
        {
            "platform": "SamsungTizen",
            "app_list": true,
            "switches": [
                {
                    "name": "Change input",
                    "command": "KEY_HDMI"
                },
                {
                    "mute": "true",
                    "name": "mute"
                },
                {
                    "name": "BBC1",
                    "channel": 106
                },
                {
                    "name": "BBC2",
                    "channel": 102
                },
                {
                    "name": "ITV",
                    "channel": 111
                },
                {
                    "name": "CANNEL4",
                    "channel": 104
                },
                {
                    "name": "CH5",
                    "channel": 105
                }
            ],
            "devices": [
                {
                    "name": "SAMSUNG-TV",
                    "mac": "54:bd:79:01:9a:e3",
                    "ip": "192.168.0.14"
                }
            ],
            "name": "SamsungTizen",
            "inputs": [
                {
                    "power": true,
                    "name": "01 TV GUIDE",
                    "type": "command",
                    "value": [
                        "KEY_TV",
                        "KEY_ENTER",
                        "KEY_GUIDE"
                    ]
                },
                {
                    "name": "02 LIVE TV",
                    "type": "command",
                    "value": [
                        "KEY_SOURCE",
                        "KEY_LEFT*3",
                        "KEY_ENTER"
                    ]
                },
                {
                    "type": "app",
                    "power": true,
                    "refresh": 5000,
                    "value": "11101200001",
                    "name": "03 NETFLIX"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "3201512006963",
                    "name": "04 PLEX"
                },
                {
                    "type": "command",
                    "power": true,
                    "value": [
                        "KEY_SOURCE",
                        "KEY_LEFT*6",
                        "KEY_RIGHT*4",
                        "KEY_ENTER"
                    ],
                    "name": "05 APPLE TV"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "3201601007670",
                    "name": "06 BBC iPLAYER"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "121299000089",
                    "name": "07 ITV HUB"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "3201512006785",
                    "name": "08 AMAZON PRIME"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "3201603008746",
                    "name": "09 NOW TV"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "111299002148",
                    "name": "10 All 4"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "121299000612",
                    "name": "11 MY5"
                },
                {
                    "type": "app",
                    "power": true,
                    "value": "111299001912",
                    "name": "12 YOUTUBE"
                },
                {
                    "name": "BBC1",
                    "type": "command",
                    "value": [
                        "channel",
                        "102"
                    ]
                }
            ]
        },
        {
            "platform": "TadoPlatform",
            "plugin_map": {
                "plugin_name": "homebridge-tado-smart-thermostat"
            },
            "areOccupancySensorsEnabled": true,
            "isGlobalHomeAwayEnabled": true,
            "isAutoAssistEnabled": false,
            "switchToAutoInNextTimeBlock": true,
            "isAlternativeStateLogicEnabled": false,
            "username": "",
            "password": "",
            "homeName": "Manor Road"
        },
        {
            "platform": "SmartThings-v2",
            "plugin_map": {
                "plugin_name": "homebridge-smartthings-v2"
            },
            "name": "SmartThings-v2",
            "direct_port": 8000,
            "temperature_unit": "C",
            "validateTokenId": true,
            "logConfig": {
                "debug": false,
                "showChanges": true,
                "hideTimestamp": true,
                "hideNamePrefix": true,
                "file": {
                    "enabled": true,
                    "level": "Good"
                }
            },
            "app_url": "https://graph-eu01-euwest1.api.smartthings.com/api/smartapps/installations/",
            "access_token": "xxxxxxxx",
            "app_id": "xxxxxxx"
        }
    ]
}
```

**Post your log**
You can get the log from the intercafe. This is in the Log section.

```
HOOBS listening on port 8080.
27/11/2020, 12:25:48 Loaded plugin 'homebridge-delay-switch'
27/11/2020, 12:25:48 [11/27/2020, 12:25:48] Registering accessory 'homebridge-delay-switch.DelaySwitch'
27/11/2020, 12:25:48 Loaded plugin 'homebridge-dummy-garage'
27/11/2020, 12:25:48 [11/27/2020, 12:25:48] Registering accessory 'homebridge-dummy-garage.DummyGarage'
27/11/2020, 12:25:49 Loaded plugin 'homebridge-marantz-volume'
27/11/2020, 12:25:49 [11/27/2020, 12:25:49] Registering accessory 'homebridge-marantz-volume.marantz-volume'
27/11/2020, 12:25:49 Loaded plugin 'homebridge-occupancy-delay'
27/11/2020, 12:25:49 [11/27/2020, 12:25:49] Registering accessory 'homebridge-occupancy-delay.OccupancyDelay'
27/11/2020, 12:25:49 Loaded plugin 'homebridge-samsung-tizen'
27/11/2020, 12:25:49 [11/27/2020, 12:25:49] Registering platform 'homebridge-samsung-tizen.SamsungTizen'
27/11/2020, 12:25:49 Loaded plugin 'homebridge-shelly'
27/11/2020, 12:25:50 [11/27/2020, 12:25:50] Registering platform 'homebridge-shelly.Shelly'
27/11/2020, 12:26:02 Loaded plugin 'homebridge-smartthings-v2'
27/11/2020, 12:26:02 [11/27/2020, 12:26:02] Registering platform 'homebridge-smartthings-v2.SmartThings-v2'
27/11/2020, 12:26:02 Loaded plugin 'homebridge-tado-smart-thermostat'
27/11/2020, 12:26:02 Loading 4 platforms...
27/11/2020, 12:26:02 [11/27/2020, 12:26:02] Registering platform 'homebridge-tado-smart-thermostat.TadoPlatform'
27/11/2020, 12:26:02 [Shelly] Initializing Shelly platform...
27/11/2020, 12:26:02 [SamsungTizen] Initializing SamsungTizen platform...
27/11/2020, 12:26:02 [TadoPlatform] Initializing TadoPlatform platform...
27/11/2020, 12:26:02 [TadoPlatform] Homebridge API available.
27/11/2020, 12:26:02 [SmartThings-v2] Initializing SmartThings-v2 platform...
27/11/2020, 12:26:03 INFO: Homebridge Version: 2.6
27/11/2020, 12:26:03 INFO: SmartThings-v2 Plugin Version: 2.3.4
27/11/2020, 12:26:03 INFO: Checking Package Version for Updates...
27/11/2020, 12:26:03 Loading 7 accessories...
27/11/2020, 12:26:03 [Marantz Volume] Initializing marantz-volume accessory...
27/11/2020, 12:26:03 [Dummy Garage] Initializing DummyGarage accessory...
27/11/2020, 12:26:03 [OccupancyDelay] Initializing OccupancyDelay accessory...
27/11/2020, 12:26:03 [OccupancyDelay] Making a single slave switch
27/11/2020, 12:26:03 [OccupancyDelay] Create Switch: OccupancyDelay
27/11/2020, 12:26:03 [HallOccupancyDelay] Initializing OccupancyDelay accessory...
27/11/2020, 12:26:03 [HallOccupancyDelay] Making a single slave switch
27/11/2020, 12:26:03 [HallOccupancyDelay] Create Switch: HallOccupancyDelay
27/11/2020, 12:26:03 [loungeOccupancyDelay] Initializing OccupancyDelay accessory...
27/11/2020, 12:26:03 [loungeOccupancyDelay] Making a single slave switch
27/11/2020, 12:26:03 [loungeOccupancyDelay] Create Switch: loungeOccupancyDelay
27/11/2020, 12:26:03 [outsideOccupancyDelay] Initializing OccupancyDelay accessory...
27/11/2020, 12:26:03 [outsideOccupancyDelay] Making a single slave switch
27/11/2020, 12:26:03 [outsideOccupancyDelay] Create Switch: outsideOccupancyDelay
27/11/2020, 12:26:03 [delayLounge] Initializing DelaySwitch accessory...
27/11/2020, 12:26:03 [Shelly] 12 accessories loaded from cache
27/11/2020, 12:26:03 [TadoPlatform] Cached accessories loaded.
27/11/2020, 12:26:03 INFO: Fetching SmartThings-v2 Devices. NOTICE: This may take a moment if you have a large number of device data is being loaded!
27/11/2020, 12:26:03 GOOD: Refreshing All Device Data | Source: (First Launch)
27/11/2020, 12:26:03 Bridge is running on port 51826.
27/11/2020, 12:26:03 [Shelly] Admin server is running on port 8181
27/11/2020, 12:26:03 External port pool ran out of ports. Fallback to random assign.
27/11/2020, 12:26:03 SAMSUNG-TV is running on port 44515.
27/11/2020, 12:26:03 Please add [SAMSUNG-TV] manually in Home app. Setup Code: 031-45-154
27/11/2020, 12:26:03 ERROR: getDevices Error: [object Object] | Message: Request failed with status code 401
27/11/2020, 12:26:03 ALERT: Total Initialization Time: (0 seconds)
27/11/2020, 12:26:03 NOTICE: Unknown Capabilities: []
27/11/2020, 12:26:03 INFO: SmartThings DeviceCache Size: (10)
27/11/2020, 12:26:03 INFO: WebServer Initiated...
27/11/2020, 12:26:03 INFO: Sending StartDirect Request to SmartThings | SendToLocalHub: (false)
27/11/2020, 12:26:03 INFO: Direct Connect Active | Listening at 192.168.0.54:8000
27/11/2020, 12:26:04 ERROR: sendStartDirect Error: [object Object] | Message: Request failed with status code 401
27/11/2020, 12:26:04 [TadoPlatform] Create home device with ID 282298 and name Manor Road.
27/11/2020, 12:26:04 [TadoPlatform] Create heating zone with ID 1 and name Heating.
27/11/2020, 12:26:05 [TadoPlatform] Create mobile device with ID 882469 and name Lynn.
27/11/2020, 12:26:07 [TadoPlatform] Create mobile device with ID 1956009 and name Gary.
27/11/2020, 12:26:08 [TadoPlatform] Initialization completed.
27/11/2020, 12:26:08 ERROR: (update) | We received a request from a client that didn't provide a valid access_token and app_id
27/11/2020, 12:26:12 [SAMSUNG-TV] Opening handshake has timed out
27/11/2020, 12:26:16 INFO: INFO: Your plugin version is up-to-date
27/11/2020, 12:26:16 NOTICE: Sending Plugin Status to SmartThings | UpdateAvailable: false | newVersion: 2.3.4
27/11/2020, 12:26:16 ERROR: sendUpdateStatus Error: [object Object] | Message: Request failed with status code 401
27/11/2020, 12:26:17 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:26:17 [Marantz Volume] Get receiver volume 31 
27/11/2020, 12:26:17 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:26:17 [Marantz Volume] Get receiver volume 31 
27/11/2020, 12:26:22 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:26:22 [Marantz Volume] Get receiver volume 31 
27/11/2020, 12:26:24 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:26:24 [Marantz Volume] Get receiver volume 31 
27/11/2020, 12:26:28 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:26:28 [Marantz Volume] Get receiver volume 31 
27/11/2020, 12:28:27 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:28:27 [Marantz Volume] Get receiver volume 31 
27/11/2020, 12:28:45 ERROR: (update) | We received a request from a client that didn't provide a valid access_token and app_id
27/11/2020, 12:32:43 [Marantz Volume] Receiver MainZone Volume power state is 1
27/11/2020, 12:32:43 [Marantz Volume] Get receiver volume 31 
```

**Additional context**
Add any other context about the problem here.
