bloomkd46 / homebridge-XfinityHome

A Repository For Controlling Your Xfinity Home System and Devices
Apache License 2.0
11 stars 0 forks source link

Bug Report: Multiple unknown accessories #31

Open tornadus opened 1 year ago

tornadus commented 1 year ago

Describe The Bug:

I've got a handful of unknown sensors at launch, and the one thing they all share in common is the fact that they were from a previous alarm system installation which was taken over by Xfinity. There's the motion sensors (which show up as one sensor, not individual zones) and then there's a few window sensors as well.

To Reproduce:

Start homebridge while logged into the account with these sensors.

Expected behavior:

The motions should appear as a motion sensor, and the window sensors should appear as contact sensors.

Logs:

[18/07/2023, 00:56:41] [Xfinity Home] Motions: Unknown accessory! 
[18/07/2023, 00:56:41] [Xfinity Home] Motions: Please open an issue about this. 
[18/07/2023, 00:56:41] [Xfinity Home] Motions: {
  "hardwareId": "114",
  "status": "online",
  "technology": "legacyAlarmPanel",
  "_links": {
    "self": {
      "href": "/client/icontrol/device/114"
    },
    "isBypassed": {
      "method": "POST",
      "href": "network/instances/114.0/points/isBypassed"
    },
    "label": {
      "method": "POST",
      "href": "network/instances/114.0/points/label"
    },
    "functionType": {
      "method": "POST",
      "href": "network/instances/114.0/points/functionType"
    }
  },
  "deletable": true,
  "deviceType": "sensor",
  "id": "114.0",
  "deviceSubtype": "default",
  "trouble": [],
  "properties": {
    "isFaulted": false,
    "displayOrder": 1,
    "isBypassed": false,
    "label": "Motions",
    "functionType": "interiorFollower",
    "type": "motion"
  },
  "name": "Motions"
} 
[18/07/2023, 00:56:41] [Xfinity Home] Adding new accessory: Office/Dinning Window
[18/07/2023, 00:56:41] [Xfinity Home] Office/Dinning Window: Unknown accessory! 
[18/07/2023, 00:56:41] [Xfinity Home] Office/Dinning Window: Please open an issue about this. 
[18/07/2023, 00:56:41] [Xfinity Home] Office/Dinning Window: {
  "hardwareId": "115",
  "status": "online",
  "technology": "legacyAlarmPanel",
  "_links": {
    "self": {
      "href": "/client/icontrol/device/115"
    },
    "isBypassed": {
      "method": "POST",
      "href": "network/instances/115.0/points/isBypassed"
    },
    "label": {
      "method": "POST",
      "href": "network/instances/115.0/points/label"
    },
    "functionType": {
      "method": "POST",
      "href": "network/instances/115.0/points/functionType"
    }
  },
  "deletable": true,
  "deviceType": "sensor",
  "id": "115.0",
  "deviceSubtype": "default",
  "trouble": [],
  "properties": {
    "isFaulted": false,
    "displayOrder": 2,
    "isBypassed": false,
    "label": "Office/Dinning Window",
    "functionType": "perimeter",
    "type": "window"
  },
  "name": "Office/Dinning Window"
} 
[18/07/2023, 00:56:41] [Xfinity Home] Adding new accessory: Master/Green Windows
[18/07/2023, 00:56:41] [Xfinity Home] Master/Green Windows: Unknown accessory! 
[18/07/2023, 00:56:41] [Xfinity Home] Master/Green Windows: Please open an issue about this. 
[18/07/2023, 00:56:41] [Xfinity Home] Master/Green Windows: {
  "hardwareId": "116",
  "status": "online",
  "technology": "legacyAlarmPanel",
  "_links": {
    "self": {
      "href": "/client/icontrol/device/116"
    },
    "isBypassed": {
      "method": "POST",
      "href": "network/instances/116.0/points/isBypassed"
    },
    "label": {
      "method": "POST",
      "href": "network/instances/116.0/points/label"
    },
    "functionType": {
      "method": "POST",
      "href": "network/instances/116.0/points/functionType"
    }
  },
  "deletable": true,
  "deviceType": "sensor",
  "id": "116.0",
  "deviceSubtype": "default",
  "trouble": [],
  "properties": {
    "isFaulted": false,
    "displayOrder": 3,
    "isBypassed": false,
    "label": "Master/Green Windows",
    "functionType": "perimeter",
    "type": "window"
  },
  "name": "Master/Green Windows"
} 
[18/07/2023, 00:56:41] [Xfinity Home] Adding new accessory: Boat Window
[18/07/2023, 00:56:41] [Xfinity Home] Boat Window: Unknown accessory! 
[18/07/2023, 00:56:42] [Xfinity Home] Boat Window: Please open an issue about this. 
[18/07/2023, 00:56:42] [Xfinity Home] Boat Window: {
  "hardwareId": "119",
  "status": "online",
  "technology": "legacyAlarmPanel",
  "_links": {
    "self": {
      "href": "/client/icontrol/device/119"
    },
    "isBypassed": {
      "method": "POST",
      "href": "network/instances/119.0/points/isBypassed"
    },
    "label": {
      "method": "POST",
      "href": "network/instances/119.0/points/label"
    },
    "functionType": {
      "method": "POST",
      "href": "network/instances/119.0/points/functionType"
    }
  },
  "deletable": true,
  "deviceType": "sensor",
  "id": "119.0",
  "deviceSubtype": "default",
  "trouble": [],
  "properties": {
    "isFaulted": false,
    "displayOrder": 6,
    "isBypassed": false,
    "label": "Boat Window",
    "functionType": "perimeter",
    "type": "window"
  },
  "name": "Boat Window"
}

Config:

{
    "name": "Xfinity Home",
    "refreshToken": "****",
    "logLevel": 3,
    "platform": "XfinityHomePlatform"
}

Operating System:

Raspberian

Node Version:

18.16.0

NPM Version:

9.5.1

Homebridge Version:

1.6.1

Plugin Version:

3.4.1

rdeutsch3 commented 1 year ago

FWIW: This reads really similar to issue #15, as the unknown accessories in that issue are from an Xfinity takeover as well. The issue was re-titled to indicate the issue which is in the accessory cache, but I wiped out the cache and reinstalled everything and the unknown accessories are still present.