guerrerotook / securitas-direct-new-api

This repository contains the new securitas direct API that can be integrated in Home Assistant
Apache License 2.0
79 stars 30 forks source link

the integration is not starting #60

Closed fulviomeomartini closed 2 years ago

fulviomeomartini commented 2 years ago

i have used this component from a month, but from yesterday it doesn't work anymore. ps.my country is italy (IT)

guerrerotook commented 2 years ago

Do you have any logs that I can take a look at?

TheGui01 commented 2 years ago

Hello, Mine is disabled as well since 1 hour ago logs are : 2022-06-21 19:32:51 WARNING (SyncWorker_1) [homeassistant.loader] We found a custom integration securitas which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant 2022-06-21 19:33:11 ERROR (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Unauthorized 2022-06-21 19:33:33 WARNING (SyncWorker_5) [homeassistant.helpers.service] Unable to find services.yaml for the securitas integration 2022-06-21 19:38:09 ERROR (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Unauthorized

bilbon0bud commented 2 years ago

Hello

it's the same for me, with the same logs...

Best Regards

fulviomeomartini commented 2 years ago

same too

Lugib commented 2 years ago

Same here…. (Échanos un cable compi!! )

itadna commented 2 years ago

Here too. Stopped working two days ago...

siom7 commented 2 years ago

Hello,

Same issue, maybe following logs may help you :

2022-06-22 09:44:07 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {'operationName': 'mkLoginToken', 'variables': {'id': 'OWPXXXXXXXXXXXXXXXXXXX', 'country': 'FR', 'callby': 'OWP_10', 'lang': 'fr', 'user': 'XXXXXXXXX', 'password': 'XXXXXXXXX'}, 'query': 'mutation mkLoginToken($user: String!, $password: String!, $id: String!, $country: String!, $lang: String!, $callby: String!) {\n xSLoginToken(user: $user, password: $password, id: $id, country: $country, lang: $lang, callby: $callby) {\n res\n msg\n hash\n lang\n legals\n mainUser\n changePassword\n needDeviceAuthorization\n }\n}\n'}

2022-06-22 09:44:21 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"data":{"xSLoginToken":{"res":"OK","msg":"Utilisateur correctement validé","hash":null,"lang":"FR","legals":true,"mainUser":true,"changePassword":false,"needDeviceAuthorization":true}}}

2022-06-22 09:44:21 DEBUG (MainThread) [custom_components.securitas] Log in Securitas: True

2022-06-22 09:44:22 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {'operationName': 'mkInstallationList', 'query': 'query mkInstallationList {\n xSInstallations {\n installations {\n numinst\n alias\n panel\n type\n name\n surname\n address\n city\n postcode\n province\n email\n phone\n }\n }\n}\n'}

2022-06-22 09:44:27 DEBUG (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] {"errors":[{"message":"Unauthorized","name":"SecurityError","time_thrown":"2022-06-22T07:44:23.086Z","data":{"auth-code":"10010"},"path":["xSInstallations"]}],"data":{"xSInstallations":null}}

2022-06-22 09:44:27 ERROR (MainThread) [custom_components.securitas.securitas_direct_new_api.apimanager] Unauthorized

Sound like MFA issue :-/

guerrerotook commented 2 years ago

This is related to #52, so I'm going to close this issue and focus on the other one.