GithubHelp home page GithubHelp logo

Comments (24)

bilan avatar bilan commented on August 16, 2024 1

Turn off the addon and try tomorrow. Maybe you hit some rate limits.

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024 1

@bulava92 I logged in to your account in the connectlife iOS app (https://apps.apple.com/pl/app/connectlife/id1519398796). The app forced me to select my region. I did that and no devices were added to your account, empty. I think you have to use VPN because the problem is related with your region.

from connectlife-api-connector.

moskovskiy82 avatar moskovskiy82 commented on August 16, 2024 1

@bulava92 I logged in to your account in the connectlife iOS app (https://apps.apple.com/pl/app/connectlife/id1519398796). The app forced me to select my region. I did that and no devices were added to your account, empty. I think you have to use VPN because the problem is related with your region.

Can confirm that. Guess there are several datacenters. Couldn't even log in to swagger when it was up.
So for the integration to work you have to change the region to some EU country.
For some reason i couldn't do that on the android app (region was forced). So i had to use an iphone.

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

That's all you can catch. the login and password from the application are correct, MQTT works, I don't know what's going on

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
[14:39:15] ERROR: Got unexpected response from the API: Service not enabled
Config OK
MQTT creds: / / / no-ssl
MQTT configuration not found, running HTTP API only.
2024-04-02 14:39:16,892 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-04-02 14:39:16,892 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-04-02 14:39:16,893 INFO Included extra file "/home/app/docker-files/supervisord/_header.conf" during parsing
2024-04-02 14:39:16,893 INFO Included extra file "/home/app/docker-files/supervisord/_header.conf" during parsing
2024-04-02 14:39:16,893 INFO Included extra file "/home/app/docker-files/supervisord/_program-webapi.conf" during parsing
2024-04-02 14:39:16,893 INFO Included extra file "/home/app/docker-files/supervisord/_program-webapi.conf" during parsing
2024-04-02 14:39:16,904 INFO supervisord started with pid 168
2024-04-02 14:39:16,904 INFO supervisord started with pid 168
2024-04-02 14:39:17,909 INFO spawned: 'webapi' with pid 169
2024-04-02 14:39:17,909 INFO spawned: 'webapi' with pid 169
2024-04-02 14:39:18,788 DEBG 'webapi' stdout output:

INFO Server running on [http://0.0.0.0:8000].

2024-04-02 14:39:18,788 DEBG 'webapi' stdout output:

INFO Server running on [http://0.0.0.0:8000].

2024-04-02 14:39:18,789 DEBG 'webapi' stdout output:
Press Ctrl+C to stop the server

2024-04-02 14:39:18,789 DEBG 'webapi' stdout output:
Press Ctrl+C to stop the server

2024-04-02 14:39:19,791 INFO success: webapi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-04-02 14:39:19,791 INFO success: webapi entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024

Wrong credentials to MQTT server I think.

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

Wrong credentials to MQTT server I think.
Exactly correct, other services are connected

Tried to run through the console

pi@raspberrypi:~/connectlife-api-connector $ sudo docker run -it -p 8000:8000 -e CONNECTLIFE_LOGIN=$$$$ -e CONNECTLIFE_PASSWORD=$$$$-- -e LOG_LEVEL=info -e MQTT_HOST=192.168.3.172 -e MQTT_USER=pi -e MQTT_PASSWORD=$$$$ -e MQTT_PORT=1883 -e MQTT_SSL=false ha-connectlife-addon /bin/ash -c 'php artisan app:mqtt-loop'
[2024-04-02 11:47:42] production.INFO: MQTT [192.168.3.172:1883] [connectlife-api] Connection with broker established successfully. {"host":"192.168.3.172","port":1883,"clientId":"connectlife-api","errorCode":"0x00"}
[2024-04-02 11:47:42] production.INFO: Getting access token.
[2024-04-02 11:47:42] production.INFO: Response ["{

"callId": "54e5f228f4b648c08cd56143521c3e27",

"errorCode": 403120,

"errorDetails": "Account temporarily locked out",

"errorMessage": "Account Temporarily Locked Out",

"apiVersion": 2,

"statusCode": 403,

"statusReason": "Forbidden",

"time": "2024-04-02T11:47:42.905Z"

}"]
[2024-04-02 11:47:42] production.ERROR: Call to a member function body() on array {"exception":"[object] (Error(code: 0): Call to a member function body() on array at /home/app/app/Services/ConnectlifeApiService.php:83)
[stacktrace]
#0 /home/app/vendor/laravel/framework/src/Illuminate/Cache/Repository.php(397): App\Services\ConnectlifeApiService->App\Services\{closure}()
#1 /home/app/vendor/laravel/framework/src/Illuminate/Cache/CacheManager.php(429): Illuminate\Cache\Repository->remember()
#2 /home/app/vendor/laravel/framework/src/Illuminate/Support/Facades/Facade.php(355): Illuminate\Cache\CacheManager->__call()
#3 /home/app/app/Services/ConnectlifeApiService.php(62): Illuminate\Support\Facades\Facade::__callStatic()
#4 /home/app/app/Services/ConnectlifeApiService.php(154): App\Services\ConnectlifeApiService->getAccessToken()
#5 /home/app/app/Services/ConnectlifeApiService.php(133): App\Services\ConnectlifeApiService->devices()
#6 /home/app/app/Services/MqttService.php(18): App\Services\ConnectlifeApiService->getOnlineAcDevices()
#7 [internal function]: App\Services\MqttService->__construct()
#8 /home/app/vendor/laravel/framework/src/Illuminate/Container/Container.php(952): ReflectionClass->newInstanceArgs()
#9 /home/app/vendor/laravel/framework/src/Illuminate/Container/Container.php(795): Illuminate\Container\Container->build()
#10 /home/app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(957): Illuminate\Container\Container->resolve()
#11 /home/app/vendor/laravel/framework/src/Illuminate/Container/Container.php(731): Illuminate\Foundation\Application->resolve()
#12 /home/app/vendor/laravel/framework/src/Illuminate/Foundation/Application.php(942): Illuminate\Container\Container->make()
#13 /home/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(181): Illuminate\Foundation\Application->make()
#14 /home/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(124): Illuminate\Container\BoundMethod::addDependencyForCallParameter()
#15 /home/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\Container\BoundMethod::getMethodDependencies()
#16 /home/app/vendor/laravel/framework/src/Illuminate/Container/Util.php(41): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#17 /home/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#18 /home/app/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(35): Illuminate\Container\BoundMethod::callBoundMethod()
#19 /home/app/vendor/laravel/framework/src/Illuminate/Container/Container.php(662): Illuminate\Container\BoundMethod::call()
#20 /home/app/vendor/laravel/framework/src/Illuminate/Console/Command.php(211): Illuminate\Container\Container->call()
#21 /home/app/vendor/symfony/console/Command/Command.php(326): Illuminate\Console\Command->execute()
#22 /home/app/vendor/laravel/framework/src/Illuminate/Console/Command.php(180): Symfony\Component\Console\Command\Command->run()
#23 /home/app/vendor/symfony/console/Application.php(1096): Illuminate\Console\Command->run()
#24 /home/app/vendor/symfony/console/Application.php(324): Symfony\Component\Console\Application->doRunCommand()
#25 /home/app/vendor/symfony/console/Application.php(175): Symfony\Component\Console\Application->doRun()
#26 /home/app/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(201): Symfony\Component\Console\Application->run()
#27 /home/app/artisan(35): Illuminate\Foundation\Console\Kernel->handle()
#28 {main}
"}

In ConnectlifeApiService.php line 83:

Call to a member function body() on array

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024

Try changing connectlife password.

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

Try changing connectlife password.

Changed, unfortunately nothing has changed, the same log (

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

It's the same today, the same mistakes (

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024

Are you able to login here:
https://api.connectlife.io/swagger/index.html
(authorize button)
?

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

Yes, after that I immediately connected like a plugin, but the device was not created

2024-04-04 17:00:50,076 DEBG 'mqtt' stdout output:
[2024-04-04 14:00:50] production.INFO: Response ["{

"callId": "f1890e90bf6c41109a78be2f2ef7a586",

"errorCode": 0,

"apiVersion": 2,

"statusCode": 200,

"statusReason": "OK",

"time": "2024-04-04T14:00:50.042Z",

...

2024-04-04 17:00:51,543 DEBG 'mqtt' stdout output:
[2024-04-04 14:00:51] production.INFO: Response ["[]"]

2024-04-04 17:00:51,543 DEBG 'mqtt' stdout output:
[2024-04-04 14:00:51] production.INFO: Response ["[]"]

2024-04-04 17:00:51,543 DEBG 'mqtt' stdout output:
Home Assistant discovery created.

2024-04-04 17:00:51,543 DEBG 'mqtt' stdout output:
Home Assistant discovery created.

2024-04-04 17:00:51,544 DEBG 'mqtt' stdout output:
Home Assistant subscribes created.

2024-04-04 17:00:51,544 DEBG 'mqtt' stdout output:
Home Assistant subscribes created.

2024-04-04 17:00:51,619 DEBG 'mqtt' stdout output:
[2024-04-04 14:00:51] production.INFO: Response ["[]"]

2024-04-04 17:00:51,619 DEBG 'mqtt' stdout output:
[2024-04-04 14:00:51] production.INFO: Response ["[]"]

2024-04-04 17:01:51,843 DEBG 'mqtt' stdout output:
[2024-04-04 14:01:51] production.INFO: Response ["[]"]

2024-04-04 17:01:51,843 DEBG 'mqtt' stdout output:
[2024-04-04 14:01:51] production.INFO: Response ["[]"]

2024-04-04 17:02:52,308 DEBG 'mqtt' stdout output:
[2024-04-04 14:02:52] production.INFO: Response ["[]"]

2024-04-04 17:02:52,308 DEBG 'mqtt' stdout output:
[2024-04-04 14:02:52] production.INFO: Response ["[]"]

2024-04-04 17:03:52,595 DEBG 'mqtt' stdout output:
[2024-04-04 14:03:52] production.INFO: Response ["[]"]

2024-04-04 17:03:52,595 DEBG 'mqtt' stdout output:
[2024-04-04 14:03:52] production.INFO: Response ["[]"]

2024-04-04 17:04:52,759 DEBG 'mqtt' stdout output:
[2024-04-04 14:04:52] production.INFO: Response ["[]"]

2024-04-04 17:04:52,759 DEBG 'mqtt' stdout output:
[2024-04-04 14:04:52] production.INFO: Response ["[]"]

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

My air conditioner is connected to the network and controlled through the "connect life" application, but it is not visible through this plugin (

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024

Paste your logs after add-on start please.

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

s6-rc: info: service s6rc-oneshot-runner: starting
s6-rc: info: service s6rc-oneshot-runner successfully started
s6-rc: info: service fix-attrs: starting
s6-rc: info: service fix-attrs successfully started
s6-rc: info: service legacy-cont-init: starting
s6-rc: info: service legacy-cont-init successfully started
s6-rc: info: service legacy-services: starting
s6-rc: info: service legacy-services successfully started
Config OK
MQTT creds: 192.168.3.172 / pi / 1883 / no-ssl
HTTP API disabled, running MQTT client only.
2024-04-05 18:21:06,284 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-04-05 18:21:06,284 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message.
2024-04-05 18:21:06,285 INFO Included extra file "/home/app/docker-files/supervisord/_header.conf" during parsing
2024-04-05 18:21:06,285 INFO Included extra file "/home/app/docker-files/supervisord/_header.conf" during parsing
2024-04-05 18:21:06,285 INFO Included extra file "/home/app/docker-files/supervisord/_program-mqtt.conf" during parsing
2024-04-05 18:21:06,285 INFO Included extra file "/home/app/docker-files/supervisord/_program-mqtt.conf" during parsing
2024-04-05 18:21:06,296 INFO supervisord started with pid 142
2024-04-05 18:21:06,296 INFO supervisord started with pid 142
2024-04-05 18:21:07,301 INFO spawned: 'mqtt' with pid 143
2024-04-05 18:21:07,301 INFO spawned: 'mqtt' with pid 143
2024-04-05 18:21:07,660 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:07] production.INFO: MQTT [192.168.3.172:1883] [connectlife-api] Connection with broker established successfully. {"host":"192.168.3.172","port":1883,"clientId":"connectlife-api","errorCode":"0x00"}

2024-04-05 18:21:07,660 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:07] production.INFO: MQTT [192.168.3.172:1883] [connectlife-api] Connection with broker established successfully. {"host":"192.168.3.172","port":1883,"clientId":"connectlife-api","errorCode":"0x00"}

2024-04-05 18:21:07,673 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:07] production.INFO: Getting access token.

2024-04-05 18:21:07,673 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:07] production.INFO: Getting access token.

"email": "[email protected]",

\"photoURL\": \"https://lh3.googleusercontent.com/a/secret=s96-c?sz=500\",

\"thumbnailURL\": \"https://lh3.googleusercontent.com/a/secret=s96-c?sz=50\"

},

"registered": "2024-04-02T16:08:32.646Z",

"socialProviders": "googleplus,site",

"verified": "2024-04-02T16:08:24.766Z",

"verifiedTimestamp": 1712074104766,

"newUser": false,

"sessionInfo": {

\"cookieName\": \"secret-_A\",

\"cookieValue\": \"st2.s.AcbHicdg9w.secret-d1gHi15SjL2k0-secret-secret-m2ATw-HLdOmf_Tjw.sc3\"

}

}"]

2024-04-05 18:21:08,304 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:08] production.INFO: Response ["{

"callId": "secret",

"errorCode": 0,

"apiVersion": 2,

"statusCode": 200,

"statusReason": "OK",

"time": "2024-04-05T15:21:08.270Z",

"id_token": "secret.secret-secret-9z0N-secret-secret"

}"]

2024-04-05 18:21:08,304 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:08] production.INFO: Response ["{

"callId": "secret",

"errorCode": 0,

"apiVersion": 2,

"statusCode": 200,

"statusReason": "OK",

"time": "2024-04-05T15:21:08.270Z",

"id_token": "secret.secret-secret-9z0N-secret-secret"

}"]

2024-04-05 18:21:08,305 INFO success: mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-04-05 18:21:08,305 INFO success: mqtt entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)
2024-04-05 18:21:09,143 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["{"resultCode":0,"code":"secret","redirect_uri":"https://api.connectlife.io/swagger/oauth2-redirect.html","state":null}"]

2024-04-05 18:21:09,143 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["{"resultCode":0,"code":"secret","redirect_uri":"https://api.connectlife.io/swagger/oauth2-redirect.html","state":null}"]

2024-04-05 18:21:09,214 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["{"resultCode":0,"access_token":"secret-secret","token_type":"Bearer","expires_in":1440,"scope":"","refresh_token":"secret-secret-secret"}"]

2024-04-05 18:21:09,214 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["{"resultCode":0,"access_token":"secret-secret","token_type":"Bearer","expires_in":1440,"scope":"","refresh_token":"secret"}"]

2024-04-05 18:21:09,555 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["[]"]

2024-04-05 18:21:09,555 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["[]"]

2024-04-05 18:21:09,557 DEBG 'mqtt' stdout output:
Home Assistant discovery created.
Home Assistant subscribes created.

2024-04-05 18:21:09,557 DEBG 'mqtt' stdout output:
Home Assistant discovery created.
Home Assistant subscribes created.

2024-04-05 18:21:09,632 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["[]"]

2024-04-05 18:21:09,632 DEBG 'mqtt' stdout output:
[2024-04-05 15:21:09] production.INFO: Response ["[]"]

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

Is there any information, can it work for me?

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024

I have no idea. I can debug it for you but I will need your credentials.

from connectlife-api-connector.

martin131 avatar martin131 commented on August 16, 2024

same problem on my installation

from connectlife-api-connector.

bulava92 avatar bulava92 commented on August 16, 2024

I have no idea. I can debug it for you but I will need your credentials.

Thank you! I sent your credentials to your email

from connectlife-api-connector.

bilan avatar bilan commented on August 16, 2024

Thanks for sharing this information.

from connectlife-api-connector.

Monacoslo avatar Monacoslo commented on August 16, 2024

The only difference is China and Russia. All other countries should work the same way

from connectlife-api-connector.

iTigere avatar iTigere commented on August 16, 2024

I can't turn on the split. all other functions are ok

from connectlife-api-connector.

iTigere avatar iTigere commented on August 16, 2024

How do I change the region in the app?

from connectlife-api-connector.

iTigere avatar iTigere commented on August 16, 2024

I tried uninstalling and reinstalling but it gives me the following error. Suggestions?

The add-on could not be installed
The command '/bin/ash -o pipefail -c composer install --no-interaction --no-dev' returned a non-zero code: 2

from connectlife-api-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.