Switching activities powers off activity
**Describe the bug**
When switching activities in the Home app, the accessories are powered off instead off actually switching activities.

**To Reproduce**
It occurs on both hubs when switching from "TV Kijken" to "Apple TV Kijken". So, switching from "Apple TV Kijken" to "TV Kijken" it all goes well but when switching from "TV Kijken" to "Apple TV Kijken" all devices are powered off on both hubs.

**Expected behavior**
I would expect that activities would switch instead of powering off.

**Screenshots**
No applicable screenshots to help explain your problem.

**IOS (please complete the following information):**
- Version: iOS 15.3
- Device: iPhone 13 Pro Max
- Version: 15.3
- Device: iPhone XS

**Logs**

**Televisie Woonkamer:**

[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - GET Characteristic.CurrentVisibilityState : DEFAULT - 0
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - GET Characteristic.Active 
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - refreshCurrentActivity : Refresh needed since last update is too old or current Activity is not set : 45834462
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - GET Characteristic.ActiveIdentifier
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - refreshCurrentActivity : Refresh needed since last update is too old or current Activity is not set : 45834462
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - refreshCurrentActivity : Cancelling refresh since a refresh is allready in progress 45834462
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - refreshCharacteristic : updating Characteristic.ActiveIdentifier to 1
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - GET Characteristic.CurrentVisibilityState : DEFAULT - 0
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - GET Characteristic.ActiveIdentifier
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - refreshCurrentActivity : Refresh needed since last update is too old or current Activity is not set : -1
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - GET Characteristic.Active 
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - refreshCurrentActivity : Refresh needed since last update is too old or current Activity is not set : -1
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - refreshCurrentActivity : Cancelling refresh since a refresh is allready in progress -1
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - refreshCharacteristic : updating Characteristic.Active to false
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - GET Characteristic.CurrentVisibilityState : DEFAULT - 0
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - GET Characteristic.CurrentVisibilityState : DEFAULT - 0
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - commands found for override : TV Kijken-ARROW_UP:{"command":"VolumeUp","type":"IRCommand","deviceId":"71445326"}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - commands found for override : TV Kijken-ARROW_DOWN:{"command":"VolumeDown","type":"IRCommand","deviceId":"71445326"}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - commands found for override : TV Kijken-ARROW_LEFT:{"command":"ChannelDown","type":"IRCommand","deviceId":"71442499"}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - commands found for override : TV Kijken-ARROW_RIGHT:{"command":"ChannelUp","type":"IRCommand","deviceId":"71442499"}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - commands found for override : TV Kijken-BACK:{"command":"Mute","type":"IRCommand","deviceId":"71445326"}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)keysMap is :{"0":"{\"command\":\"Rewind\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}","1":"{\"command\":\"FastForward\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}","4":["{\"command\":\"VolumeUp\",\"type\":\"IRCommand\",\"deviceId\":\"71445326\"}"],"5":["{\"command\":\"VolumeDown\",\"type\":\"IRCommand\",\"deviceId\":\"71445326\"}"],"6":["{\"command\":\"ChannelDown\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}"],"7":["{\"command\":\"ChannelUp\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}"],"8":"{\"command\":\"Select\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}","9":["{\"command\":\"Mute\",\"type\":\"IRCommand\",\"deviceId\":\"71445326\"}"],"10":"{\"command\":\"Exit\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}","11":"{\"command\":\"Play\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}","15":"{\"command\":\"Info\",\"type\":\"IRCommand\",\"deviceId\":\"71442499\"}"}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - refreshCharacteristic : updating Characteristic.Active to true
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)keysMap is :{}
[2/6/2022, 11:46:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - refreshCharacteristic : updating Characteristic.ActiveIdentifier to 0
[2/6/2022, 11:46:04 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - GET Characteristic.TargetVisibilityState : DEFAULT - 0
[2/6/2022, 11:46:04 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - GET Characteristic.TargetVisibilityState : DEFAULT - 0
[2/6/2022, 11:46:06 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - SET Characteristic.ActiveIdentifier 2
[2/6/2022, 11:46:06 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - sendInputCommand : Activty PowerOff will be activated 
[2/6/2022, 11:46:06 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - activityCommand : Returned from hub {"cmd":"harmony.activityengine?runactivity","code":200,"id":"0.3692538206950131","msg":"OK"}
[2/6/2022, 11:46:06 AM] [Televisie Woonkamer] (Televisie Woonkamer)keysMap is :{}
[2/6/2022, 11:46:06 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"configVersion":115,"activityId":"45834462","syncStatus":0,"time":1644144089,"stateVersion":2689,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"contentVersion":92,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","updates":[],"activityStatus":3,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","activitySetupState":false,"runningActivityList":"45834462","hubUpdate":false,"discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","accountId":"14325679"}}
[2/6/2022, 11:46:07 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"configVersion":115,"activityId":"-1","syncStatus":0,"time":1644144089,"stateVersion":2690,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"contentVersion":92,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","updates":[],"activityStatus":0,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","activitySetupState":false,"runningActivityList":"45834462","hubUpdate":false,"discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","accountId":"14325679"}}
[2/6/2022, 11:46:07 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"configVersion":115,"activityId":"-1","syncStatus":0,"time":1644144089,"stateVersion":2691,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"contentVersion":92,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","updates":[],"activityStatus":0,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","activitySetupState":false,"runningActivityList":"","hubUpdate":false,"discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","accountId":"14325679"}}
[2/6/2022, 11:46:07 AM] [Televisie Woonkamer] (Televisie Woonkamer)INFO - onMessage : Refreshing activity to -1
[2/6/2022, 11:46:07 AM] [Televisie Woonkamer] (Televisie Woonkamer)keysMap is :{}

**Televisie Slaapkamer:**

[2/6/2022, 11:54:02 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - GET Characteristic.TargetVisibilityState : DEFAULT - 0
[2/6/2022, 11:54:02 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - GET Characteristic.TargetVisibilityState : DEFAULT - 0
[2/6/2022, 11:54:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - SET Characteristic.ActiveIdentifier 1
[2/6/2022, 11:54:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - sendInputCommand : Activty TV Kijken will be activated 
[2/6/2022, 11:54:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - activityCommand : Returned from hub {"cmd":"harmony.activityengine?runactivity","code":200,"id":"0.5971326031799675","msg":"OK"}
[2/6/2022, 11:54:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)keysMap is :{"0":"{\"command\":\"Rewind\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","1":"{\"command\":\"FastForward\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","2":"{\"command\":\"SkipForward\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","3":"{\"command\":\"SkipBack\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","4":"{\"command\":\"DirectionUp\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","5":"{\"command\":\"DirectionDown\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","6":"{\"command\":\"DirectionLeft\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","7":"{\"command\":\"DirectionRight\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","8":"{\"command\":\"OK\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","9":"{\"command\":\"Back\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","10":"{\"command\":\"Exit\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","11":"{\"command\":\"Play\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","15":"{\"command\":\"Info\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}"}
[2/6/2022, 11:54:03 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"contentVersion":70,"activityId":"47241830","syncStatus":0,"activitySetupState":false,"stateVersion":553,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","runningActivityList":"47535212","activityStatus":1,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","time":1644144094,"configVersion":114,"hubUpdate":false,"updates":[],"accountId":"14656391"}}
[2/6/2022, 11:54:07 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"contentVersion":70,"activityId":"47241830","syncStatus":0,"activitySetupState":false,"stateVersion":554,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","runningActivityList":"47535212","activityStatus":2,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","time":1644144094,"configVersion":114,"hubUpdate":false,"updates":[],"accountId":"14656391"}}
[2/6/2022, 11:54:07 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"contentVersion":70,"activityId":"47241830","syncStatus":0,"activitySetupState":false,"stateVersion":555,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","runningActivityList":"47241830","activityStatus":2,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","time":1644144094,"configVersion":114,"hubUpdate":false,"updates":[],"accountId":"14656391"}}
[2/6/2022, 11:54:07 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : Refreshing activity to 47241830
[2/6/2022, 11:54:07 AM] [Televisie Woonkamer] (Televisie Slaapkamer)keysMap is :{"0":"{\"command\":\"Rewind\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","1":"{\"command\":\"FastForward\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","2":"{\"command\":\"SkipForward\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","3":"{\"command\":\"SkipBack\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","4":"{\"command\":\"DirectionUp\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","5":"{\"command\":\"DirectionDown\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","6":"{\"command\":\"DirectionLeft\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","7":"{\"command\":\"DirectionRight\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","8":"{\"command\":\"OK\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","9":"{\"command\":\"Back\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","10":"{\"command\":\"Exit\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","11":"{\"command\":\"Play\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}","15":"{\"command\":\"Info\",\"type\":\"IRCommand\",\"deviceId\":\"73341286\"}"}
[2/6/2022, 11:54:35 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - SET Characteristic.ActiveIdentifier 2
[2/6/2022, 11:54:35 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - sendInputCommand : Activty PowerOff will be activated 
[2/6/2022, 11:54:35 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - activityCommand : Returned from hub {"cmd":"harmony.activityengine?runactivity","code":200,"id":"0.8849779459334928","msg":"OK"}
[2/6/2022, 11:54:35 AM] [Televisie Woonkamer] (Televisie Slaapkamer)keysMap is :{}
[2/6/2022, 11:54:35 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"contentVersion":70,"activityId":"47241830","syncStatus":0,"activitySetupState":false,"stateVersion":556,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","runningActivityList":"47241830","activityStatus":3,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","time":1644144094,"configVersion":114,"hubUpdate":false,"updates":[],"accountId":"14656391"}}
[2/6/2022, 11:54:36 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"contentVersion":70,"activityId":"-1","syncStatus":0,"activitySetupState":false,"stateVersion":557,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","runningActivityList":"47241830","activityStatus":0,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","time":1644144094,"configVersion":114,"hubUpdate":false,"updates":[],"accountId":"14656391"}}
[2/6/2022, 11:54:36 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : received message : {"type":"connect.stateDigest?notify","data":{"sleepTimerId":-1,"runningZoneList":[],"contentVersion":70,"activityId":"-1","syncStatus":0,"activitySetupState":false,"stateVersion":558,"tzOffset":"3600","mode":3,"hubSwVersion":"4.15.290","deviceSetupState":[],"tzoffset":"3600","isSetupComplete":true,"sequence":false,"discoveryServer":"https://svcs.myharmony.com/Discovery/Discovery.svc","discoveryServerCF":"https://cf-svcs.myharmony.com/Discovery/Discovery.svc","runningActivityList":"","activityStatus":0,"wifiStatus":1,"tz":"CET-1CEST,M3.4.0,M10.5.0/3","time":1644144094,"configVersion":114,"hubUpdate":false,"updates":[],"accountId":"14656391"}}
[2/6/2022, 11:54:36 AM] [Televisie Woonkamer] (Televisie Slaapkamer)INFO - onMessage : Refreshing activity to -1
[2/6/2022, 11:54:36 AM] [Televisie Woonkamer] (Televisie Slaapkamer)keysMap is :{}

**Config**

{
    "bridge": {
        "name": "Homebridge",
        "username": "XX:XX:XX:XX:XX:XX",
        "port": 51002,
        "pin": "xxx-xx-xxx",
        "advertiser": "ciao"
    },
    "accessories": [],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "auth": "form",
            "theme": "auto",
            "tempUnits": "c",
            "lang": "auto",
            "sessionTimeout": 600,
            "platform": "config"
        },
        {
            "name": "Televisie Woonkamer",
            "hubIP": "xxx.xxx.xxx.xxx",
            "hubName": "Televisie Woonkamer",
            "DELAY_BEFORE_RETRY_AFTER_NETWORK_LOSS": 60000,
            "HUB_CONNECT_TIMEOUT": 10000,
            "HUB_SEND_TIMEOUT": 30000,
            "TVAccessory": true,
            "SortInput": 0,
            "mainActivity": "Apple TV Kijken",
            "remoteOverrideCommandsList": [
                {
                    "ActivityName": "TV Kijken",
                    "CommandsList": [
                        {
                            "CommandName": "ARROW_RIGHT",
                            "NewCommand": "TV Woonkamer;ChannelUp"
                        },
                        {
                            "CommandName": "ARROW_LEFT",
                            "NewCommand": "TV Woonkamer;ChannelDown"
                        },
                        {
                            "CommandName": "ARROW_UP",
                            "NewCommand": "Harman Kardon AV-ontvanger;VolumeUp"
                        },
                        {
                            "CommandName": "ARROW_DOWN",
                            "NewCommand": "Harman Kardon AV-ontvanger;VolumeDown"
                        },
                        {
                            "CommandName": "BACK",
                            "NewCommand": "Harman Kardon AV-ontvanger;Mute"
                        }
                    ]
                },
                {
                    "ActivityName": "Apple TV Kijken",
                    "CommandsList": [
                        {
                            "CommandName": "ARROW_UP",
                            "NewCommand": "Harman Kardon AV-ontvanger;VolumeUp"
                        },
                        {
                            "CommandName": "ARROW_DOWN",
                            "NewCommand": "Harman Kardon AV-ontvanger;VolumeDown"
                        }
                    ]
                }
            ],
            "publishGeneralMuteSwitch": false,
            "publishGeneralVolumeSwitches": false,
            "linkVolumeControlToTV": false,
            "otherPlatforms": [
                {
                    "name": "Televisie Slaapkamer",
                    "hubIP": "xxx.xxx.xxx.xxx",
                    "hubName": "Televisie Slaapkamer",
                    "TVAccessory": true,
                    "SortInput": 0,
                    "mainActivity": "Apple TV Kijken"
                }
            ],
            "platform": "HarmonyHubWebSocket"
        }
    ]
}

**Additional context**
Using version 1.6.0-beta1.
The problem did not occur using version 1.5.4.