bilan / connectlife-api-connector

Connectlife API proxy / MQTT Home Assistant integration
51 stars 13 forks source link

My air conditioner is not visible #34

Closed prodiksun closed 1 month ago

prodiksun commented 1 month ago

I created an account using google. I started the container with ha-connectlife-addon, but I can't see my device Hisense AS-09UW4RYDDB05G. I deleted it from the application and added it again, but the problem remained.

root@HA:~/connectlife-api-connector# curl -v http://0.0.0.0:8000/api/devices
*   Trying 0.0.0.0:8000...
* Connected to 0.0.0.0 (127.0.0.1) port 8000 (#0)
> GET /api/devices HTTP/1.1
> Host: 0.0.0.0:8000
> User-Agent: curl/7.88.1
> Accept: */*
> 
< HTTP/1.1 200 OK
< Host: 0.0.0.0:8000
< Connection: close
< X-Powered-By: PHP/8.2.19
< Cache-Control: no-cache, private
< Date: Tue, 28 May 2024 09:47:27 GMT
< Content-Type: application/json
< 
* Closing connection 0
bilan commented 1 month ago

Try creating account by e-mail, not google or other social account.

prodiksun commented 1 month ago

  [Exception]                                                                  
  Cannot login to Connectlife. Response: {"callId":"2bf167659a0742cc9ae2f5417  
  224e781","errorCode":403120,"errorDetails":"Account temporarily locked out"  
  ,"errorMessage":"Account Temporarily Locked Out","apiVersion":2,"statusCode  
  ":403,"statusReason":"Forbidden","time":"2024-05-28T10:18:11.778Z"}  

Created a new account. It goes through the application normally, but authorization does not take place in the container. After many attempts, they were blocked. I guess I'll have to wait for it to be unlocked.

prodiksun commented 1 month ago

Surprisingly, on the website https://oauth.hijuconn.com / writes that such a login does not exist. Снимок экрана 2024-05-28 132234

bilan commented 1 month ago

The problem is in your region I think, check out this thread: https://github.com/bilan/connectlife-api-connector/issues/25

prodiksun commented 1 month ago

The problem is in your region I think, check out this thread: #25

Yes, I read it, as a result, I made the traffic flow through the VPN.

prodiksun commented 1 month ago

But Russia is defined in the application, but I don't know how to change it.

bilan commented 1 month ago

iOS app asked me about location on account creation process or first login (didn't remember).

prodiksun commented 1 month ago

Yes, it helped, but you can do it on android, if you do not click that a citizen of Russia is offered a choice of country.

prodiksun commented 1 month ago

Thank you very much, everything worked out! Снимок экрана 2024-05-28 145141

Monacoslo commented 1 month ago

Yes, it helped, but you can do it on android, if you do not click that a citizen of Russia is offered a choice of country.

Unfortunatelly this is due Russian legislation about data storage. But in the future I am affraid even that will not work anymore due the EU sanctions against Russia. Stupid political games...

capretto78 commented 3 weeks ago

Thank you very much, everything worked out! Снимок экрана 2024-05-28 145141

How did you manage to get this view of your air conditioner? I installed the component and detected the entity related to my air conditioner, but I can't get your view.

prodiksun commented 3 weeks ago

image

image

capretto78 commented 3 weeks ago

i have another situation... No mqtt but connectlife Did you used ConnectLife integration from hacs?

Screenshot 2024-06-11 alle 14 12 45
prodiksun commented 2 weeks ago

i have another situation... No mqtt but connectlife Did you used ConnectLife integration from hacs? Screenshot 2024-06-11 alle 14 12 45

No. I have launched a container in docker

prodiksun commented 2 weeks ago

@capretto78

version: '3.8'

services:
  ha-connectlife-addon:
    image: ha-connectlife-addon
    container_name: ha-connectlife-addon
    restart: always
    ports:
      - 8000:8000
    environment:
      - CONNECTLIFE_LOGIN=mail@mail.ru
      - CONNECTLIFE_PASSWORD=mail_pass
      - LOG_LEVEL=info
      - MQTT_HOST=192.168.88.200
      - MQTT_USER=homeassistant
      - MQTT_PASSWORD=passmqtt
      - MQTT_PORT=1883
      - MQTT_SSL=false
#      - DEVICES_CONFIG='{"117":{"t_work_mode":["fan only","heat","cool","dry","auto"],"t_fan_speed":{"0":"auto","5":"super low","6":"low","7":"medium","8":"high","9":"super high"},"t_swing_direction":["straight","right","both sides","swing","left"],"t_swing_angle":{"0":"swing","2":"bottom 1\/6 ","3":"bottom 2\/6","4">
    command: /bin/ash -c '/usr/bin/supervisord -c /home/app/docker-files/supervisord.conf'