Giter VIP home page Giter VIP logo

Comments (19)

macieq56 avatar macieq56 commented on September 18, 2024 1

Hello, I have a dump for Hisense/Gorenje Split Pandora AST-18UW4RXATE00A air conditioner (attached)
airCondDumpHisense.json

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024 1

I have just pushed the branch climate, but it's only a starting point, and not ready to go even to HACS. Feel free to fork the repository and contribute PRs!

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024 1

I found my bug! I was passing deviceId as puid 🤦

I will make a release shortly.

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

Hi @nikogusm - thank you for you feedback!

I'm currently investigating legal values for all the sensors. The next step is indeed to try to send commands to the API, but as I only have a dishwasher I have very limited testing possibilities.

It would be nice to make a climate entity of the air conditioner - are you able to share a JSON dump of the attributes for you appliance?

from connectlife-ha.

nikogusm avatar nikogusm commented on September 18, 2024

i tried to do an export but i don't know how to do it. can you help me?

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

i tried to do an export but i don't know how to do it. can you help me?

With Python 3.11 or newer:

pip install connectlife
python -m connectlife.dump my_connectlife_username my_connectlife_password

Replace my_connectlife_username and my_connectlife_password of course.

This should produce a JSON dump with private information redacted (deviceId, puid, and wifiId)

from connectlife-ha.

Monacoslo avatar Monacoslo commented on September 18, 2024

i tried to do an export but i don't know how to do it. can you help me?

If you are not familiar with the phyton, you can also installl https://github.com/bilan/connectlife-api-connector and just copy the content of the log produced by addon and share it.

Which appliance do you have?

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

I have started porting support for air conditioner from https://github.com/bilan/connectlife-api-connector, but since I don't own one myself I'll not be able to test it properly. I can push the development branch when it's a bit more polished if someone wants to contribute coding and/or testing it.

from connectlife-ha.

nikogusm avatar nikogusm commented on September 18, 2024

hello @oyvindwe sorry for the late reply. i can test it out, when you push i'm going to update your plugin from HACS store.

from connectlife-ha.

psylenced avatar psylenced commented on September 18, 2024

One more:

  {
    "bindTime": 1716010840136,
    "createTime": 0,
    "deviceFeatureCode": "104",
    "deviceFeatureName": "104\u51b7\u6696\u8282\u80fd\u65e0\u529f\u7387",
    "deviceId": "<redacted>",
    "deviceNickName": "Split air conditioner",
    "deviceTypeCode": "009",
    "deviceTypeName": "",
    "offlineState": 1,
    "puid": "<redacted>",
    "role": 1,
    "roomId": 4355056,
    "roomName": "Lounge Room",
    "seq": 0,
    "statusList": {
      "daily_energy_kwh": 0,
      "f_e_arkgrille": "0",
      "f_e_incoiltemp": "0",
      "f_e_incom": "0",
      "f_e_indisplay": "0",
      "f_e_ineeprom": "0",
      "f_e_inele": "0",
      "f_e_infanmotor": "0",
      "f_e_inhumidity": "0",
      "f_e_inkeys": "0",
      "f_e_intemp": "0",
      "f_e_invzero": "0",
      "f_e_inwifi": "0",
      "f_e_outcoiltemp": "0",
      "f_e_outeeprom": "0",
      "f_e_outgastemp": "0",
      "f_e_outtemp": "0",
      "f_e_push": "0",
      "f_temp_in": "20",
      "t_eco": "0",
      "t_fan_mute": "0",
      "t_fan_speed": "0",
      "t_fan_speed_s": "0",
      "t_power": "0",
      "t_sleep": "0",
      "t_super": "0",
      "t_temp": "22",
      "t_temp_type": "0",
      "t_up_down": "1",
      "t_work_mode": "1"
    },
    "useTime": 1716010840115,
    "wifiId": "<redacted>"
  }
]

from connectlife-ha.

trajano avatar trajano commented on September 18, 2024

@psylenced I have a dehumidifier in my case I have a
t_fan_speed and t_work_mode value like yours does your mapping and my mapping match?

  • t_work_mode
    • 1 == manual (which allows setting of target)
    • 0 == continuous
    • 2 == auto which basically sets humidity to 50 and auto
  • t_fan_speed
    • 2 == auto
    • 1 == high
    • 0 == low

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

I must admit I'm really struggling with setting properties. I'm trying to do the same as in https://github.com/bilan/connectlife-api-connector/blob/main/app/Services/ConnectlifeApiService.php#L30-L44

However, all I get back is

{
    "message": "Server Error"
}

from connectlife-ha.

trajano avatar trajano commented on September 18, 2024

@oyvindwe do you have your branch with the code to do the update so I can take a look at it maybe it's something odd with the HTTP client implementation

from connectlife-ha.

trajano avatar trajano commented on September 18, 2024

I tried to do it via curl but I am getting blocked by cloudflare

curl -v -H 'Content-type: application/json' -H 'X-Token: <token>' -XPOST --data '
{
"puid": "<redacted>",
"properties": { 
}
}' https://connectlife.bapi.ovh/appliances

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

do you have your branch with the code to do the update

Note that most properties are probably read-only. I have tried to set the property value as both string and integer without success. I'm mostly experiencing using curl.

I tried to do it via curl but I am getting blocked by cloudflare

As you discovered in #6 (comment) User-Agent seems to be a required header.

from connectlife-ha.

CyberrNerd avatar CyberrNerd commented on September 18, 2024

Hoe can I set values? I only see sensors for my dishwasher? Great job!

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

@CyberrNerd I just updated README.md with instructions.

from connectlife-ha.

CyberrNerd avatar CyberrNerd commented on September 18, 2024

Ah great thanks, do you perhaps know which value to remote start the dishwasher? Or better, how can I see which values are available?

from connectlife-ha.

oyvindwe avatar oyvindwe commented on September 18, 2024

Ah great thanks, do you perhaps know which value to remote start the dishwasher? Or better, how can I see which values are available?

These are the great questions! As there is no data dictionaries published, we will need to figure out the properties and values to use ourselves.

For AC devices, the t_* properties seems writeable. E.g. set t_power to 0 to turn off and to 1 to turn it on.

I only have a dishwasher myself. I have not yet figured out how to remote control it, but you will first have to set it to remote start on the actual appliance.

from connectlife-ha.

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.