thomasgermain / vaillant-component

Multimatic integration for Home Assistant (also compatible with sensoAPP)
MIT License
137 stars 24 forks source link

Don't appears the sensor for outdoor temperature #113

Closed ZancaAngelo closed 2 years ago

ZancaAngelo commented 2 years ago

I have installed the component, from the logs, I have no error, but the external temperature sensor is not displayed. The other entities are correctly read.

What can I do?

Version H.A 2021.12.10 Component 1.12.21

Immagine 2022-01-24 153243 Immagine 2022-01-24 153209

thomasgermain commented 2 years ago

Hello,

This is a bit strange, but senso is not fully supported, the API is almost -but not exactly- the same as multimatic API.

Could you check here: https://github.com/thomasgermain/pymultiMATIC/tree/master/script 1) get print_response.ps1 (for windows) or print_response.sh for linux 2) open powershell (for windows) or terminal for linux 3) ./print_response.xx username password https://smart.vaillant.com/mobile/api/v4//facilities/{serial-number}/systemcontrol/v1/status. Don't forget to put your serial number.

Could post the result ?

Normally, you should receive a response which looks like this:

{
  "body": {
    "datetime": "2021-06-23T11:43:12.000Z",
    "outside_temperature": 12.5
  },
  "meta": {
    "resourceState": [
      {
        "state": "SYNCED",
        "timestamp": 1624441392223,
        "link": {
          "rel": "self",
          "resourceLink": "/facilities/xxx/systemcontrol/v1/status"
        }
      }
    ]
  }
}

Thanks !

ZancaAngelo commented 2 years ago

Dear Thomas, thanks for the reply, i tried to follow your indications, but i couldn't get the script to work. The pymultimatic module I downloaded and unzip in the following path: /home/pi/Downloads/pymultiMATIC/script

From the SSH terminal I placed myself in the path indicated above and I launched the following command: sh print_response.sh username password https://smart.vaillant.com/mobile/api/v4/facilities/2...........2/systemcontrol/v1/status

The answer obtained is the following: pi@raspberrypi:~/Downloads/pymultiMATIC/script $ print_response.sh: 18: jq: not found (23) Failed writing body {"errorCode":"INVALID_PARAMS"}curl: (3) URL using bad/illegal format or missing URL

Where am I doing wrong?

thomasgermain commented 2 years ago

Sounds like there is some missing package.

As far as I understand, you're running this command from your HA machine ? You don't have to, you can simply run it on your computer

ZancaAngelo commented 2 years ago

I followed your advice to run the script from my pc, and for my convenience, I wrote the user and password and url values inside the script. the result I got is the following

Immagine 2022-02-04 101723

thomasgermain commented 2 years ago

Thanks for the feedback.

This is what I thought it was, some part of your system is under the "senso" API (as I said, this is pretty much the same, but still, with some differences). It means your system is not fully compatible with the integration.

There is no plan to support senso (except somebody is submitting a PR), because myVaillant is being launched (or should be launched pretty soon) and It should unify all different APIs vaillant has.

I'm sorry for the inconvenience :/