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

Natural cooling #363

Open
jchapuis opened this issue Mar 15, 2024 · 4 comments
Open

Natural cooling #363

jchapuis opened this issue Mar 15, 2024 · 4 comments

Comments

@jchapuis
Copy link

A proposal to surface the endpoint

https://api.viessmann.com/iot/v2/features/installations/{installation_id}/gateways/{gateway_id}/devices/0/features/heating.circuits.1.operating.modes.cooling

Afaik this returns a boolean flag that allows to determine whether natural cooling is currently running, which can be helpful to automate opening up valves

@CFenner
Copy link
Member

CFenner commented Mar 16, 2024

There is already the getActiveProgram which you can already use to compare yourself.

https://github.com/somm15/PyViCare/blob/6c5b023ca6c8bb2d38141dd1746dc1705ec84ce8/PyViCare/PyViCareHeatingDevice.py#L591-L593

One could also add a generic function like this to handle it for all programs:

https://github.com/somm15/PyViCare/blob/6c5b023ca6c8bb2d38141dd1746dc1705ec84ce8/PyViCare/PyViCareHeatingDevice.py#L459-L464

@jchapuis
Copy link
Author

jchapuis commented Mar 18, 2024

thanks! actually, these endpoints do not seem to deliver enough details. What I'm looking for are not settings but whether the circulation pump is currently pumping heat down into the ground, so that I can open up all the floor heating valves.

"uri": "https://api.viessmann.com/iot/v2/features/installations/{}/gateways/{}/devices/0/features/heating.circuits.1.operating.programs.active",
        "properties": {
            "value": {
                "type": "string",
                "value": "reduced"
            }
        },
 "uri": "https://api.viessmann.com/iot/v2/features/installations/{}/gateways/{}/devices/0/features/heating.circuits.1.operating.modes.active",
        "properties": {
            "value": {
                "type": "string",
                "value": "dhwAndHeatingCooling"
            }
        },

@CFenner
Copy link
Member

CFenner commented Mar 19, 2024

Sorry, I mixed up program and mode. But there is also a function getActiveMode.

Maybe your problem can be solved with comparing temperature.supply and temperature.return sensor values?

@jchapuis
Copy link
Author

jchapuis commented Mar 26, 2024

Sorry, I mixed up program and mode. But there is also a function getActiveMode.

Maybe your problem can be solved with comparing temperature.supply and temperature.return sensor values?

good hint! i could also compound this with the circulation pump running, as natural cooling only uses the pump. However, since the API seems to have this flag to indicate cooling operation currently running, would have been nice to surface this.
I have yet to observe API values during real operations as summer hasn't arrived yet, so I'll report back when this happens. I could also work on a PR to surface that flag, if that would be a welcome addition.

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

2 participants