colinbendell / homebridge-blink-for-home

Blink For Home Camera Homebridge plugin
MIT License
88 stars 27 forks source link

Removing the Blink-for-home plugin doesn't remove the cameras #16

Closed monteroman closed 3 years ago

monteroman commented 3 years ago

Since I got flagged by Blink for having 3rd party scripts, I removed the plugin from Homebridge, but it appears that all of the cameras and sensors are still showing up in the app. It didn't remove them. The config.json doesn't have the information for a login.

colinbendell commented 3 years ago

Can you explain more about being flagged?

The plug-in is managed by homebridge. If it’s still showing up you should check your homebridge setup. If you turn off homebridge do the devices show an error? Have you restated homebridge? Do you have other blink homebridge services installed?

ratsoid commented 3 years ago

Just remembered that I saw this issue with on the old blink homebridge plugin. I believe it's an automated message, because if you google: "My name is Tori and I am with the Blink team. While doing a routine server audit, your account was flagged and subsequently disabled due to unsupported scripts or apps running on your system. The only automation that is permitted for use with the Blink system is through Alexa and/or IFTTT. Please disable these scripts or apps and reach back out to me so that I can re-enable your account."

you get a lot of results. Some more relevant threads are on home-assistant.io from what I see.

As for my setup:

Pi 3, homebridge official image, 3x Blink XT + 1x Blink XT2, everything worked, logs when things started to fail and terminate:

[10/11/2020, 09:00:00] [Blink] POST /api/v4/account/login (401 Unauthorized)
[10/11/2020, 09:00:00] [Blink] {
  connection: 'keep-alive',
  'content-length': '147',
  'content-type': 'application/json',
  date: 'Tue, 10 Nov 2020 07:00:00 GMT',
  server: 'nginx + Phusion Passenger',
  status: '401 Unauthorized',
  via: '1.1 d821b8789930abef3b648d54ffad08de.cloudfront.net (CloudFront)',
  'x-amz-cf-id': '......',
  'x-amz-cf-pop': 'OTP50-C1',
  'x-blink-served-by': 'i-0a17137fba2cb01ee',
  'x-cache': 'Error from cloudfront',
  'x-content-type-options': 'nosniff',
  'x-powered-by': 'Phusion Passenger'
}
[10/11/2020, 09:00:00] [Blink] Error: 401 Unauthorized
    at BlinkAPI._request (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink-api.js:122:19)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (internal/process/task_queues.js:93:5)
    at BlinkAPI.login (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink-api.js:256:21)
    at BlinkAPI._request (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink-api.js:115:17)
    at BlinkAPI.disarmNetwork (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink-api.js:1161:16)
    at Blink.setArmedState (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink.js:519:25)
    at BlinkNetwork.setTargetArmed (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink.js:162:13)
    at SecuritySystemTargetState.setCallback (/usr/local/lib/node_modules/homebridge-blink-for-home/src/blink.js:70:13)

Also I'm still currently locked down from my Blink account, meaning I can't use the app. Waiting for them to unlock it.... I'll give it a week and then I'll reinstall the plugin afterwards.

colinbendell commented 3 years ago

Was your account actually disabled?

I go to great lengths to impersonate the original blink cameras and reduce the frequency of the API calls. I’m going to reach out to the dev team.

ratsoid commented 3 years ago

Yeah but they'll re-enable it, it won't take more than 24h I think.

Regarding the frequency of the API call I think that's a good idea tbh. I would test this for sure... Maybe an option to disable the camera view entirely? Just have the alarm system would suffice for more generic cases.

I have also FW'd you the email I received, but it looks pretty automated

colinbendell commented 3 years ago

It already has a throttled API calls. There is only one API call needed to track the status. The only thing You might adjust is the frequency for the thumbnail. This is available in the settings

colinbendell commented 3 years ago

Also, if you want to try and red enable the plug-in, change the name field in setting. This is used to generate a unique client id

monteroman commented 3 years ago

Can you explain more about being flagged? The plug-in is managed by homebridge. If it’s still showing up you should check your homebridge setup. If you turn off homebridge do the devices show an error? Have you restated homebridge? Do you have other blink homebridge services installed?

I don't have any other homebridge BLINK plugins installed. Yours is the only one. Yes, the account is disabled and I can't log in.

When I try to log in, I get "Unauthorized Access, contact support."

colinbendell commented 3 years ago

removing the accessories is a homebridge issue. I would verify that you restarted the homebridge service after you removed the plugin. failing that, I would manually remove the accessories (or remove the cached accessories in the homebridge folder)