Giter Club home page Giter Club logo

Comments (9)

JungeG avatar JungeG commented on July 19, 2024

This wired formatted: here again
I am testing again and want to activate the EcoMode. My code looks like:

#!/usr/bin/php >?php include __DIR__.'/bootstrap.php'; $viessmannApi->activateEcoProgram("18");

When executing the code I get following error message:

./ActivateEcoProgram.php
PHP Fatal error: Uncaught Viessmann\API\ViessmannApiException: Unable to set data for featureheating.circuits.0.operating.programs.ecoand action activate and data{"temperature":"18"}
Reason: DEVICE_COMMUNICATION_ERROR in phar:///etc/openhab2/scripts/viessmann/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php:769
Stack trace:
#0 phar:///etc/openhab2/scripts/viessmann/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php(194): Viessmann\API\ViessmannAPI->setRawJsonData('heating.circuit...', 'activate', '{"temperature":...')
#1 /etc/openhab2/scripts/viessmann/ActivateEcoProgram.php(4): Viessmann\API\ViessmannAPI->activateEcoProgram('18')
#2 {main}
thrown in phar:///etc/openhab2/scripts/viessmann/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php on line 769

Since I have 2 heating circuits (0 and 1) - what is the right syntax for the call?
Thanks for your advice
Georg

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

from viessmann-api.

JungeG avatar JungeG commented on July 19, 2024

Sorry Claude,
don't think so - because I can call other methods without any problems. Only the ActivateEcoProgram.php seems not to work.
Georg

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

from viessmann-api.

JungeG avatar JungeG commented on July 19, 2024

Have created a GetAllFeatures.php with looks like

#!/usr/bin/php <?php include __DIR__.'/bootstrap.php'; echo $viessmannApi->getAllFeatures();

Get following error message:

./GetAllFeatures.php
PHP Fatal error: Uncaught Error: Call to undefined method Viessmann\API\ViessmannAPI::getAllFeatures() in /etc/openhab2/scripts/viessmann/GetAllFeatures.php:4
Stack trace:
#0 {main}

Please advice.
Georg

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

from viessmann-api.

JungeG avatar JungeG commented on July 19, 2024

Sorry Claude,
I didn't see the document before.
please find attached the getFeatures Messages
20181205 Viessmann GetAllFeatures.docx

Still the call for ./ActivateEcoProgram.php - gives errors.

PHP Fatal error: Uncaught Viessmann\API\ViessmannApiException: Unable to set data for featureheating.circuits.0.operating.programs.ecoand action activate and data{"temperature":"18"}
Reason: DEVICE_COMMUNICATION_ERROR in phar:///etc/openhab2/scripts/viessmann/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php:769
Stack trace:
#0 phar:///etc/openhab2/scripts/viessmann/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php(194): Viessmann\API\ViessmannAPI->setRawJsonData('heating.circuit...', 'activate', '{"temperature":...')
#1 /etc/openhab2/scripts/viessmann/ActivateEcoProgram.php(4): Viessmann\API\ViessmannAPI->activateEcoProgram(18, 0)
#2 {main}
thrown in phar:///etc/openhab2/scripts/viessmann/Viessmann-Api-0.4-SNAPSHOT.phar/src/API/ViessmannAPI.php on line 769

What else can I test?
Thanks Georg

from viessmann-api.

thetrueavatar avatar thetrueavatar commented on July 19, 2024

from viessmann-api.

JungeG avatar JungeG commented on July 19, 2024

Just to summarize:
still the same error message.

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.