thomasgermain / vaillant-component

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

Missing entities #145

Closed 06bka01 closed 1 year ago

06bka01 commented 2 years ago

Hi,

Using the multiMATIC integration (separate login) combined with VR921 + MultiMATIC app (app works without any problem). Only the following entities are created:

Any idea what might be the problem?

Thanks en regards, Bas

thomasgermain commented 2 years ago

Hello, could you check here and do the manipulation ? https://github.com/thomasgermain/vaillant-component/issues/141#issuecomment-1221249637

I think this is because of the VR921

06bka01 commented 2 years ago

Hi,

Thank you for your prompt reply!

Not yet familiar with running scripts but tried to learn and run the script _printresponse.ps1 in windows powershell (administrator + unrestricted policy). Seems I need to learn something more before working, any thoughts?

Knipsel

caroso-de commented 2 years ago

Similar issue here VR920 Gateway + Multimatic VR700 + Multimatic App. Just installed the custom component, which ist - very slowly - starting up. I added the separate user using the app, hope this is ok.

A few sensors are created, such as.

binary_sensor.multimatic_quick_mode

EDIT: print-response.sh returns {"errorCode":"NO_FACILITY_FOR_SERIAL"}

Here's my log:

2022-09-18 18:27:09.238 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration multimatic 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-09-18 18:27:09.239 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs 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-09-18 18:27:15.974 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_zones coordinator
2022-09-18 18:27:15.974 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_zones
2022-09-18 18:27:15.974 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get zones
2022-09-18 18:27:34.189 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_zones data in 18.215 seconds (success: True)
2022-09-18 18:27:34.190 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_rooms coordinator
2022-09-18 18:27:34.190 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_rooms
2022-09-18 18:27:34.190 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get rooms
2022-09-18 18:27:40.358 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_rooms data in 6.168 seconds (success: True)
2022-09-18 18:27:40.359 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_dhw coordinator
2022-09-18 18:27:40.359 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_dhw
2022-09-18 18:27:40.359 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get dhw
2022-09-18 18:28:10.683 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: multimatic
2022-09-18 18:28:14.557 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_dhw data in 34.198 seconds (success: True)
2022-09-18 18:28:14.558 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_live_reports coordinator
2022-09-18 18:28:14.558 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_live_reports
2022-09-18 18:28:14.558 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get reports
2022-09-18 18:28:27.407 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_live_reports data in 12.849 seconds (success: True)
2022-09-18 18:28:27.408 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_outdoor_temperature coordinator
2022-09-18 18:28:27.408 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_outdoor_temperature
2022-09-18 18:28:27.408 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get outdoor temperature
2022-09-18 18:28:54.419 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_outdoor_temperature data in 27.011 seconds (success: True)
2022-09-18 18:28:54.420 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_ventilation coordinator
2022-09-18 18:28:54.420 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_ventilation
2022-09-18 18:28:54.420 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get ventilation
2022-09-18 18:29:03.547 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_ventilation data in 9.128 seconds (success: True)
2022-09-18 18:29:03.548 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_quick_mode coordinator
2022-09-18 18:29:03.548 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_quick_mode
2022-09-18 18:29:03.548 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get quick_mode
2022-09-18 18:29:10.789 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: multimatic
2022-09-18 18:29:16.875 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_quick_mode data in 13.327 seconds (success: True)
2022-09-18 18:29:16.876 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_holiday_mode coordinator
2022-09-18 18:29:16.876 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_holiday_mode
2022-09-18 18:29:16.876 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get holiday_mode
2022-09-18 18:29:19.051 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_holiday_mode data in 2.175 seconds (success: True)
2022-09-18 18:29:19.052 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_hvac_status coordinator
2022-09-18 18:29:19.052 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_hvac_status
2022-09-18 18:29:19.052 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get hvac status
2022-09-18 18:29:46.201 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_hvac_status data in 27.149 seconds (success: True)
2022-09-18 18:29:46.202 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_facility_detail coordinator
2022-09-18 18:29:46.202 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_facility_detail
2022-09-18 18:29:58.122 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_facility_detail data in 11.920 seconds (success: True)
2022-09-18 18:29:58.122 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_gateway coordinator
2022-09-18 18:29:58.123 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_gateway
2022-09-18 18:30:10.890 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: multimatic
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_gateway data in 13.409 seconds (success: True)
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_emf_reports coordinator
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_emf_reports
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get emf reports
2022-09-18 18:30:15.663 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_emf_reports data in 4.131 seconds (success: True)
2022-09-18 18:30:15.691 INFO (MainThread) [custom_components.multimatic.binary_sensor] Adding 5 binary sensor entities
2022-09-18 18:30:15.691 INFO (MainThread) [custom_components.multimatic.sensor] Adding 0 sensor entities
2022-09-18 18:30:15.692 INFO (MainThread) [custom_components.multimatic.climate] Adding 0 climate entities
thomasgermain commented 2 years ago

Similar issue here VR920 Gateway + Multimatic VR700 + Multimatic App. Just installed the custom component, which ist - very slowly - starting up. I added the separate user using the app, hope this is ok.

A few sensors are created, such as.

binary_sensor.multimatic_quick_mode

EDIT: print-response.sh returns {"errorCode":"NO_FACILITY_FOR_SERIAL"}

Here's my log:

2022-09-18 18:27:09.238 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration multimatic 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-09-18 18:27:09.239 WARNING (SyncWorker_0) [homeassistant.loader] We found a custom integration hacs 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-09-18 18:27:15.974 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_zones coordinator
2022-09-18 18:27:15.974 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_zones
2022-09-18 18:27:15.974 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get zones
2022-09-18 18:27:34.189 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_zones data in 18.215 seconds (success: True)
2022-09-18 18:27:34.190 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_rooms coordinator
2022-09-18 18:27:34.190 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_rooms
2022-09-18 18:27:34.190 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get rooms
2022-09-18 18:27:40.358 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_rooms data in 6.168 seconds (success: True)
2022-09-18 18:27:40.359 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_dhw coordinator
2022-09-18 18:27:40.359 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_dhw
2022-09-18 18:27:40.359 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get dhw
2022-09-18 18:28:10.683 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: multimatic
2022-09-18 18:28:14.557 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_dhw data in 34.198 seconds (success: True)
2022-09-18 18:28:14.558 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_live_reports coordinator
2022-09-18 18:28:14.558 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_live_reports
2022-09-18 18:28:14.558 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get reports
2022-09-18 18:28:27.407 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_live_reports data in 12.849 seconds (success: True)
2022-09-18 18:28:27.408 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_outdoor_temperature coordinator
2022-09-18 18:28:27.408 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_outdoor_temperature
2022-09-18 18:28:27.408 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get outdoor temperature
2022-09-18 18:28:54.419 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_outdoor_temperature data in 27.011 seconds (success: True)
2022-09-18 18:28:54.420 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_ventilation coordinator
2022-09-18 18:28:54.420 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_ventilation
2022-09-18 18:28:54.420 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get ventilation
2022-09-18 18:29:03.547 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_ventilation data in 9.128 seconds (success: True)
2022-09-18 18:29:03.548 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_quick_mode coordinator
2022-09-18 18:29:03.548 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_quick_mode
2022-09-18 18:29:03.548 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get quick_mode
2022-09-18 18:29:10.789 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: multimatic
2022-09-18 18:29:16.875 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_quick_mode data in 13.327 seconds (success: True)
2022-09-18 18:29:16.876 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_holiday_mode coordinator
2022-09-18 18:29:16.876 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_holiday_mode
2022-09-18 18:29:16.876 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get holiday_mode
2022-09-18 18:29:19.051 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_holiday_mode data in 2.175 seconds (success: True)
2022-09-18 18:29:19.052 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_hvac_status coordinator
2022-09-18 18:29:19.052 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_hvac_status
2022-09-18 18:29:19.052 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get hvac status
2022-09-18 18:29:46.201 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_hvac_status data in 27.149 seconds (success: True)
2022-09-18 18:29:46.202 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_facility_detail coordinator
2022-09-18 18:29:46.202 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_facility_detail
2022-09-18 18:29:58.122 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_facility_detail data in 11.920 seconds (success: True)
2022-09-18 18:29:58.122 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_gateway coordinator
2022-09-18 18:29:58.123 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_gateway
2022-09-18 18:30:10.890 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: multimatic
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_gateway data in 13.409 seconds (success: True)
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic] Adding multimatic_emf_reports coordinator
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic.coordinator] calling get_emf_reports
2022-09-18 18:30:11.532 DEBUG (MainThread) [custom_components.multimatic.coordinator] Will get emf reports
2022-09-18 18:30:15.663 DEBUG (MainThread) [custom_components.multimatic.coordinator] Finished fetching multimatic_emf_reports data in 4.131 seconds (success: True)
2022-09-18 18:30:15.691 INFO (MainThread) [custom_components.multimatic.binary_sensor] Adding 5 binary sensor entities
2022-09-18 18:30:15.691 INFO (MainThread) [custom_components.multimatic.sensor] Adding 0 sensor entities
2022-09-18 18:30:15.692 INFO (MainThread) [custom_components.multimatic.climate] Adding 0 climate entities

So yeah, as you said, your installation is not compatible with the integration and using another API

Hi,

Thank you for your prompt reply!

Not yet familiar with running scripts but tried to learn and run the script _printresponse.ps1 in windows powershell (administrator + unrestricted policy). Seems I need to learn something more before working, any thoughts?

Knipsel

It sounds like the download of the script went wrong, could you try to copy/paste the content from here https://raw.githubusercontent.com/thomasgermain/pymultiMATIC/master/script/print_response.ps1 to your local print_response.ps1 file ?

caroso-de commented 2 years ago

So yeah, as you said, your installation is not compatible with the integration and using another API

Too bad :( IIRC I used this (or is there another?) integration quite a while ago and it worked. Is there anything I can do to make it work from my side? The hardware (gateway multimatic) and the app seem compatible after all.

caroso-de commented 2 years ago

Ok, turns out they're having some problems with their services. After getting more and more errors, now the api starts returning sensible stuff.

ChristianSteffens commented 2 years ago

I can confirm: The Vaillant service / API was down due to maintenance work (there was a message within the Vaillant App). Now it's working again (the component and the app itself).

thomasgermain commented 2 years ago

So yeah, as you said, your installation is not compatible with the integration and using another API

Too bad :( IIRC I used this (or is there another?) integration quite a while ago and it worked. Is there anything I can do to make it work from my side? The hardware (gateway multimatic) and the app seem compatible after all.

It sounds there was some kind of "mini-migration" from one API to another behind the scene. As far as I can see, both API are almost the same except some point, but the endpoint are not the same. I'm welcome to receive a PR, but I can't provide support myself, since it's impossible for me to test (and there is no dc :(). Also, at some point myVaillant should come and apparently it should unify all different APIs (multimatic, "the other multimatic" and sensoApp)

caroso-de commented 2 years ago

So yeah, as you said, your installation is not compatible with the integration and using another API

Too bad :( IIRC I used this (or is there another?) integration quite a while ago and it worked. Is there anything I can do to make it work from my side? The hardware (gateway multimatic) and the app seem compatible after all.

It sounds there was some kind of "mini-migration" from one API to another behind the scene. As far as I can see, both API are almost the same except some point, but the endpoint are not the same. I'm welcome to receive a PR, but I can't provide support myself, since it's impossible for me to test (and there is no dc :(). Also, at some point myVaillant should come and apparently it should unify all different APIs (multimatic, "the other multimatic" and sensoApp)

Does this also apply to my problems from #147? I don't have a lot of time at the moment but if it's a small fix, I'd try to create a PR (no promises!). However, I'll need a few pointers on where to start. As far as i can see, the actual api-client is implemented elsewhere?

thomasgermain commented 2 years ago

It sounds like yes, because your app knows there is an error, but the error is not given by the API call I'm using in the integration. I will provide you with more details on the other issue ;)

06bka01 commented 2 years ago

I managed to execute the script and received the following response: {"errorCode":"NO_FACILITY_FOR_SERIAL"}

The multimac app shows the VWL 125/6 A and the VWZ MEH 97/6 MB3, for both I double checked the serialnumber when running the script.

Can the cause possibly be that the SensoAPP is running also? Both are installed on my phone.

Knipsel 190922-1930

caroso-de commented 2 years ago

I managed to execute the script and received the following response: {"errorCode":"NO_FACILITY_FOR_SERIAL"}

The multimac app shows the VWL 125/6 A and the VWZ MEH 97/6 MB3, for both I double checked the serialnumber when running the script.

That's exactly what I've got while vaillant was doing their updates, see above

06bka01 commented 2 years ago

I managed to execute the script and received the following response: {"errorCode":"NO_FACILITY_FOR_SERIAL"} The multimac app shows the VWL 125/6 A and the VWZ MEH 97/6 MB3, for both I double checked the serialnumber when running the script.

That's exactly what I've got while vaillant was doing their updates, see above

Just ran the script... Vaillant still updating?

caroso-de commented 2 years ago

Just ran the script... Vaillant still updating?

I'm not sure but that's what I've got up until yesterday.

EDIT: btw: after a while my set of entities now seems complete. Maybe it is really just a matter of time? In any case I probably can't help with a PR either since I currently have no missing entities left. Still I'm happy to help if I can check anything out for you on my system

thomasgermain commented 2 years ago

Didn't you guys migrate to myVaillant :sweat_smile: ?

Joke apart, I know vaillant infrastructure have a lot of troubles these time:

It was down yesterday between 8pm and 9.30 pm (CEST) and also sooner today from 5.30pm to 6.30

caroso-de commented 2 years ago

As we're talking about that: What's all the fuzz about myVaillant? I've read lot's of announcements that the multimatic app will display a migration notice. But that never happened to me. Is the myVaillant integration smoother or easier in any way?

thomasgermain commented 1 year ago

Normally, myVaillant should unify all APIs (both multimatic, sensoAPP, and maybe other). We also discover that they will certainly do a connector (like I did) in python an other languages, so it can easily be used to by HA (and other home automation tool) to get data from the API.

I also hope that their infrastructure stability will be improved

caroso-de commented 1 year ago

Well, that acutally sounds better than i expected :)

thomasgermain commented 1 year ago

So, I added a small note on the readme about the VR921. It sounds like, in certain cases, that the VR921 is using a different API than the one supported in the integration.

I'm gonna close all the issues related to the incompatibility. But I'm still open to receive a PR to support this API.