Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Heat pump power consumption #301

Open
stefanvogel64 opened this issue Feb 18, 2023 · 23 comments
Open

Heat pump power consumption #301

stefanvogel64 opened this issue Feb 18, 2023 · 23 comments

Comments

@stefanvogel64
Copy link

I like PyViCare. It’s very helpful. But I’m missing the value for heat pump power consumption.
I upgrade to the new version. There is a function get….power consumption. But it doesn’t work. Python return an error

@nagelp
Copy link
Contributor

nagelp commented Feb 18, 2023

Can you show your script and the error message?

I don't have a heat pump, so I can't test your specific case directly, but maybe with that info we can find out what's going on.

@stefanvogel64
Copy link
Author

stefanvogel64 commented Feb 20, 2023 via email

@JeB2022Nov
Copy link

When looking at the JSON, is there an entry for power consumption for your device at all and if it is, is it enabled? It could be that this feature is not available for the device and/or the free API version.

@stefanvogel64
Copy link
Author

stefanvogel64 commented Feb 22, 2023 via email

@JeB2022Nov
Copy link

Hi, so far I can see, there is no feature returing power consumption for the heatpump in the JSON at all. The PyVicare can only report what is in there. Question is, whether you see power consumption if using the App? In this case, power consumption would be available for your account / device and the remaining question is, why it is not available using the API? If it is not visible with the App either, this feature is just not available for your account/device.

@stefanvogel64
Copy link
Author

stefanvogel64 commented Feb 24, 2023 via email

@stefanvogel64
Copy link
Author

on my mobile device I upgraded to Pro version of ViCare App which costs 3,99€ per month. There I now can also see power consumption on different time levels (down to hour) for complete time range.
Why can't I access this data via pyViCare libarary? Or does it takes a couple of days till it's released for my account.
I still can't the power consumption in JSON heat pump object.

@dennisheitmann
Copy link

@stefanvogel64 The Viessmann developer account (which is used by this library) is to my knowledge independent from the in-app subscription.

@dennisheitmann
Copy link

@stefanvogel64 Please look here for api subscriptions: https://developer.viessmann.com/start/pricing.html

@stefanvogel64
Copy link
Author

This means I have to pay to get just the data from may own heat pump? Unbelievable.
With basic access I can get and set all IOT points. But power consumption values are not allowed? Is it possible to access the heat pump directly within my own network?

@dennisheitmann
Copy link

dennisheitmann commented Feb 26, 2023

@stefanvogel64 Please always remember that this open source library only uses the official Viessmann API. The Viessmann company decides for itself what is possible with this API and your device. This library only makes easy access for Python scripts to this API.

@dennisheitmann
Copy link

@stefanvogel64 Unfortunately there is no direct access to the devices in our own networks. Otherwise, I guess, 90% of the users of this library would immediately switch to direct data read...

@stefanvogel64
Copy link
Author

Thanks for your help. It’s a very helpful and great library you developed. I just complain about Viessmann that they want to have extra money for own heat pump data

@woehrl01
Copy link
Collaborator

@stefanvogel64 in order to see if the api returns data for you, you can generate a dump like described in the Readme. Maybe there are a few additional methods missing. Unfortunately not every data is returned for every device, and we are depending on hints for missing data fields.

@stefanvogel64
Copy link
Author

I did the dump using the coding from your readme file. So, my Vitocal 222S doens't return all the power consumption data. In the Viessmann API description it's part of the BASIC(free) package. Can I do some further tests for you?
It's strange that the ViCare App shows the power consumption data in their payed version.

@JeB2022Nov
Copy link

@stefanvogel64: Is it possible to access the heat pump directly within my own network?

I don't know any solution to interact directly with the vitoconnect modem device by WLAN. However, if you google around, there are solutions, to build an own optolink to USB connector and a Raspi SW, where you be the man in the middle on the way to the vitoconnect and you can read and control much more than by the API. However, it was looking too complicated for me and I didn't study it in more detail. Another option is a commercial KNX interface to the heating system.

@woehrl01
Copy link
Collaborator

@stefanvogel64 If you pay for the data, I suggest you write to the developer support of Viessmann directly. The data should be there, it least that's the reason why they sell that.

@crazyfx1
Copy link
Collaborator

If you have the Vitoconnect 100 (which most of us have), you can use it's USB to Optolink Cable instead of building one. The only downside is that then you don't have a cable for the Vitoconnect anymore ;)

Some more info direct access in via vonctrold for Home-Assistant is here:
https://community.home-assistant.io/t/viessmann-openv-vcontrold-client-optolink/496463

@kjfschils
Copy link

I'm having similar issue where my Vitocal 222A doesn't show power consumption in PyViCare because not available in JSON. But I do see power consumption in ViCare App and also https://viguide.viessmann.com/ shows power consumption (as per screenshot). Is this an issue on Viessmann side or are changes in PyViCare integration required?
image

@crazyfx1
Copy link
Collaborator

crazyfx1 commented May 9, 2023

If it's not in the JSON there is nothing we can do.

@stefanvogel64
Copy link
Author

that's bad that Viessmann doesn't support the API with all parameters. In my payed mobile App I get consumption values down to quarter hour base.
But JSON object shows now consumption per week.

@crazyfx1
Copy link
Collaborator

I have a Vitocal 200 from 2018 and I'm also seeing the consumption in the ViCare app. This must be a newer feature, haven't seen it before.
But the API still doesn't provide any consumption values for me.

@stefanvogel64
Copy link
Author

I checked the JSON opbject and then add 3 functions to moule PyViCareHeatpump.py:

test ownFunktion

def getPowerTotal(self):
    return self.service.getProperty("heating.compressors.0.power.consumption.dhw.week")
def getPowerTotal2(self):
    return self.service.getProperty("heating.compressors.0.heat.production.dhw.week")
def getPowerTotal3(self):
    return self.service.getProperty("heating.compressors.0.power.consumption.heating.week")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants