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

Vitodens 100w - expose consumption data #217

Closed
hnykda opened this issue Oct 9, 2021 · 11 comments
Closed

Vitodens 100w - expose consumption data #217

hnykda opened this issue Oct 9, 2021 · 11 comments

Comments

@hnykda
Copy link

hnykda commented Oct 9, 2021

Hi,

I noticed that my Gas Boiler Vitodens 100w just recently got an update in ViCare android app and I can see daily/weekly/monthly statistics. But when I try e.g. t.getGasConsumptionDomesticHotWaterToday, I get PyViCare.PyViCareUtils.PyViCareNotSupportedFeatureError: heating.gas.consumption.dhw. In the device.get_raw_json() I can see heating.power.consumption being enabled, but have no idea what that means. Is there any chance how to get it from API as well? Would be cool to have these statistics in my HA installation.

@hnykda hnykda changed the title Vitodens 100w - consumption data Vitodens 100w - expose consumption data Oct 9, 2021
@woehrl01
Copy link
Collaborator

woehrl01 commented Oct 9, 2021

Hi,

You just mentioned that heating.power.consumption is in the get_raw_json response. The method you use is the gas consumption. Does getPowerConsumptionDays() work for you?

@hnykda
Copy link
Author

hnykda commented Oct 10, 2021

Nope, I get:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/dan/.cache/pypoetry/virtualenvs/vicare-5rfMLF8Q-py3.9/lib/python3.9/site-packages/PyViCare/PyViCareUtils.py", line 45, in feature_flag_wrapper
    return wrapper(*args, **kwargs)
  File "/home/dan/.cache/pypoetry/virtualenvs/vicare-5rfMLF8Q-py3.9/lib/python3.9/site-packages/PyViCare/PyViCareUtils.py", line 38, in wrapper
    return func(*args, **kwargs)
  File "/home/dan/.cache/pypoetry/virtualenvs/vicare-5rfMLF8Q-py3.9/lib/python3.9/site-packages/PyViCare/PyViCareGazBoiler.py", line 110, in getPowerConsumptionDays
    return self.service.getProperty("heating.power.consumption.total")["properties"]["day"]["value"]
  File "/home/dan/.cache/pypoetry/virtualenvs/vicare-5rfMLF8Q-py3.9/lib/python3.9/site-packages/PyViCare/PyViCareCachedService.py", line 26, in getProperty
    return readFeature(entities, property_name)
  File "/home/dan/.cache/pypoetry/virtualenvs/vicare-5rfMLF8Q-py3.9/lib/python3.9/site-packages/PyViCare/PyViCareService.py", line 17, in readFeature
    raise PyViCareNotSupportedFeatureError(property_name)
PyViCare.PyViCareUtils.PyViCareNotSupportedFeatureError: heating.power.consumption.total

@hnykda
Copy link
Author

hnykda commented Oct 10, 2021

image
this is in the app

@hnykda
Copy link
Author

hnykda commented Oct 10, 2021

>>> t.service.getProperty("heating.power.consumption")
{'properties': {}, 'commands': {}, 'components': [], 'apiVersion': 1, 'uri': 'https://api.viessmann.com/iot/v1/equipment/installations/xxx/gateways/xxxx/devices/0/features/heating.power.consumption', 'gatewayId': 'xxx', 'feature': 'heating.power.consumption', 'timestamp': '2021-10-08T22:19:14.764Z', 'isEnabled': True, 'isReady': True, 'deviceId': '0'}

@hnykda
Copy link
Author

hnykda commented Oct 10, 2021

The app needs to get it from somewhere, right? Can I sniff it maybe? 😁

@crazyfx1
Copy link
Collaborator

The app uses a different API and we can’t use that anymore. If the consumption data is missing in your response, you can only write to viessmann to include it for your system.

@hnykda
Copy link
Author

hnykda commented Oct 10, 2021

thank you, will do.

@hnykda
Copy link
Author

hnykda commented Oct 10, 2021

Any particular contact I should use?

@crazyfx1
Copy link
Collaborator

There is an email address on the Viessmann developer portal.

@woehrl01
Copy link
Collaborator

woehrl01 commented Nov 1, 2021

@numanx11 The mentioned endpoints have been implemented already. If they don't return values for you, it's likely not supported or enabled on your device. In either case, you need to reach out to Viessmann support directly.

@woehrl01 woehrl01 closed this as completed Nov 1, 2021
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

4 participants