Giter Club home page Giter Club logo

Comments (18)

TricloFL78 avatar TricloFL78 commented on June 23, 2024

Sorry, I've written in French.
Since I took my vacation, I don't have anymore gas and elctricity consumption. Do anybody have the same problem ?
What are solutions ?

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

It seems that codification of electricity consumption has changed. For gas, it's ok.
I got the following message for daily consumption :"Message: Unable to get data for feature heating.power.consumption Reason: No such Feature".

from viessmann-api.

rogrun avatar rogrun commented on June 23, 2024

Viessmann changed many features since august. I'm working on fixing it. I'll need some time for this.

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

Viessmann changed many features since august. I'm working on fixing it. I'll need some time for this

Thank you for taking the time to fix this since I don't have the time to do this.
An api is supposed to have some stability but viessman doesn't seem to follow that basic rule

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

I have merged the change from the pr of rogrun. @TricloFL78 Could you test ?

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

Thanks @thetrueavatar.
I will test as soon as I can and I will give the answer if it's working or not.

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

Hi @thetrueavatar,

I've done the test. It doesn't work and I have the following message "Résultat de la commande : Message: Unable to get data for feature heating.burners.0.heating.burners Reason: No such Feature Code: 0" for day, week, month and year.
Tests are done in my Jeedom docker.

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

Did you upgrade your bootstrap.php to use the new phar ? I don't quite understand why the method getHeatingPowerConsumption would try to use heating.burners.0.heating.burners
Wich method are you using ?

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

I used the bootstrap.php and phar 2.1.1 from "develop" and "example".

from viessmann-api.

rogrun avatar rogrun commented on June 23, 2024

I'm in the hospital right now. a routine intervention. I'll check it out as soon as possible when I'm home. Normally getHeatingPowerConsumption should call the correct feature.

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

I used the bootstrap.php and phar 2.1.1 from "develop" and "example".

Can you provide me the exact code you're using to get that error ? Just to reproduce the problem.
@rogrun take your time to have a rest. This is far more important than providing a support for this.

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

En pièce jointe le zip avec les 2 fichiers utilisés.
Env.zip

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

ok mais c'est quelle fonction ?
exemple:
print_r( $viessmannApi->getHeatingPowerConsumption('day') );

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

Voilà l'extrait de mon PHP :
//Consommation électrique
$cmd = cmd::byId(CMD_CONSO_EL_DAY);
$virtual->checkAndUpdateCmd($cmd, $viessmannApi->getHeatingPowerConsumption('day')[0]);
$cmd = cmd::byId(CMD_CONSO_EL_WEEK);
$virtual->checkAndUpdateCmd($cmd, $viessmannApi->getHeatingPowerConsumption('week')[0]);
$cmd = cmd::byId(CMD_CONSO_EL_MONTH);
$virtual->checkAndUpdateCmd($cmd, $viessmannApi->getHeatingPowerConsumption('month')[0]);
$cmd = cmd::byId(CMD_CONSO_EL_YEAR);
$virtual->checkAndUpdateCmd($cmd, $viessmannApi->getHeatingPowerConsumption('year')[0]);

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

Chez moi ce code fonctionne parfaitement tout en ayant pris ton fichier env.zip. Je pense qu'il y a quelque chose de pas net dans ton installation jeedom.

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

Noté.
J'ai 2 Jeedom. Je viens de tester sur le 2ième et j'obtiens le même résultat. Toutes les autres "features" de tes développements fonctionnent parfaitement. Pourquoi pas pour l'électricité si ça marche chez toi ? Mystère !
J'ai installé le plugin Jeedom de PhilippeJ et j'ai bien les valeurs des consommations électriques qui remontent. Là est l'essentiel.

Merci pour ta super implication.

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on June 23, 2024

from viessmann-api.

TricloFL78 avatar TricloFL78 commented on June 23, 2024

Je viens de charger la nouvelle version.
Les informations remontent.
Je ferme ce fil.

from viessmann-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.