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

for information, futures not working in new api for my OPT1 (Vitoconnect 100) but before working fine #64

Closed
dr-boss opened this issue Aug 9, 2021 · 12 comments

Comments

@dr-boss
Copy link

dr-boss commented Aug 9, 2021

  1. heating.service.timeBased - GetServiceInterval(), GetLassServiceDate(), GetActiveMonthSinceService() - No such Feature
  2. heating.circuits.0.operating.programs.holiday - getScheduledHolidayProgram(), unscheduleHolidayProgram(), scheduleHolidayProgram("2019-08-30", "2019-08-31") - No such Feature
@rogrun
Copy link
Contributor

rogrun commented Aug 9, 2021

I am very busy at the moment. Some fuetures are no longer available in the new API. I'll try to find the possible bug in the next few days.

@dr-boss
Copy link
Author

dr-boss commented Aug 9, 2021

I understand that these functions are less necessary than the basic ones. I wrote for information. If you add them one day, it will simply be easier to integrate with Fibaro, for example
Your job is great anyway

@rogrun
Copy link
Contributor

rogrun commented Aug 10, 2021

  1. heating.service.timeBased is currently not available. Perhaps @thetrueavatar can look in the new API documentation to see if the BASE URL for service information has changed.
  2. For HolidayProgram, please download the .phar from yesterday. It should fix it.
    Let us know if it works, or not

@thetrueavatar
Copy link
Owner

Since ViCare is using the IOT Api, if an information is available in ViCare it should be available then with the IOT API.
Some feature are no more under the same root url path. For instance installationId and gatewayId are found under the equipment/gateways path. I guess that the timeBased feature is no more available with the usual path. Still have to find the right place.

@thetrueavatar
Copy link
Owner

thetrueavatar commented Aug 10, 2021

I should take some time to check how the feature are now reorgarnized and clean a bit the way I'm working. For the cache, I'm get the data from the https://api.viessmann.com/iot/v1/equipment/installations/{installationId}/gateways/{gatewaySerial}/devices/{deviceId}/features/
while they are other available:
https://api.viessmann.com/iot/v1/equipment/installations/{installationId}/gateways/{gatewaySerial}/features/
https://api.viessmann.com/iot/v1/equipment/installations/{installationId}/features/

Documentation is not quiete clear atm.

Plese note that viessmann has added some features accodring to their changelog https://developer.viessmann.com/en/doc/changelog

New data points available - Diagnostic information
In order to better transition from the old API usage and into the Developer Portal for our users and developers, the following additional features can now be used via the API:

heating.circuits.N.heating.curve - Displays values that go into the heating curve and provides commands to change them: slope and shift.

heating.burner.N.modulation - Shows information about the current burner modulation

heating.compressor.N.statistics - Shows the statistics of compressor N: hours and start times

heating.burner.N.statistics - Shows the statistics of the burners: Hours and times started

heating.solar.power.production - Shows the statistics of the solar power production: daily, weekly, monthly, yearly

heating.gas.consumption.dhw - Shows the statistics of gas consumption for heating domestic hot water

heating.gas.consumption.heating - Shows statistics of gas consumption for heating

heating.power.consumption - Power usage: daily, weekly, monthly, yearly

The list of all available data points can be found in the "IoT - Data points" section: https://developer.viessmann.com/de/doc/iot/data-points.

Note: The functions of the basic (free) variant of the API are a temporary offer and the scope may change over time.

Developer forum now available
We are happy to announce that a dedicated Viessmann Community area for developers is now available: https://www.viessmann-community.com/t5/Developer/ct-p/Developer

In this area, you will find new announcements and information around our API. You will also be able to post your questions and exchange with other developers around the API.

We look forward to great exchanges and co-creation among all developers!

@fredchal
Copy link

I use the hot water setpoint in my setup. Since yesterday, the feature getDhwTemperature() (=heating.dhw.temperature) is no longer available. After comparing the complete rawjsondata, I noticed that the feature with the required value is heating.dhw.temperature.main. But this feature is not available in the script or am I wrong?

@thetrueavatar
Copy link
Owner

thetrueavatar commented Aug 11, 2021

I use the hot water setpoint in my setup. Since yesterday, the feature getDhwTemperature() (=heating.dhw.temperature) is no longer available. After comparing the complete rawjsondata, I noticed that the feature with the required value is heating.dhw.temperature.main. But this feature is not available in the script or am I wrong?

Hello, could you please create a specific issue for this one. This will help me to manage issue. I'm already looking at it.
EDIT: I have created the issue myself #67

@dr-boss
Copy link
Author

dr-boss commented Aug 15, 2021

1. heating.service.timeBased is currently not available. Perhaps @thetrueavatar can look in the new API documentation to see if the BASE URL for service information has changed.

2. For HolidayProgram, please download the .phar from yesterday. It should fix it.
   Let us know if it works, or not

Not work yet :(
$viessmannApi->getScheduledHolidayProgram();
and the resault:
Message: Unable to get data for feature heating.circuits.0.operating.programs.holiday
Reason: No such Feature
Code: 0

@rogrun
Copy link
Contributor

rogrun commented Aug 16, 2021

In the API documentation are two features provided. But I don't know if it is the same. Please try this:

<?php
include __DIR__ . '/bootstrap.php';

use Viessmann\API\ViessmannFeature;

echo "heating.operating.programs.holiday: ";
print_r ($viessmannApi->getRawJsonData("heating.operating.programs.holiday"));
echo "\n";

If it works on your installation, we have to do some tests and then we can fix it.

@dr-boss
Copy link
Author

dr-boss commented Aug 17, 2021

In the API documentation are two features provided. But I don't know if it is the same. Please try this:

<?php
include __DIR__ . '/bootstrap.php';

use Viessmann\API\ViessmannFeature;

echo "heating.operating.programs.holiday: ";
print_r ($viessmannApi->getRawJsonData("heating.operating.programs.holiday"));
echo "\n";

If it works on your installation, we have to do some tests and then we can fix it.

Ok,, its work via "heating.operating.programs.holiday"

@dr-boss
Copy link
Author

dr-boss commented Aug 17, 2021

Thx for this function, I start read new API doc...

@dr-boss dr-boss closed this as completed Aug 17, 2021
@thetrueavatar
Copy link
Owner

I have updated the code so that $viessmannApi->getScheduledHolidayProgram() is using the right feature

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