Comments (18)
I'm sorry but I don't quite understand what you mean. features.zip is a sample of file I have found embedded in the ViCare app(dev probably did a mistake by embedding those file). This helped me to discover functionnalities that my own heating system doesn't support. SetActiveProgram, ActivateEcho,... works on my computer. Could you please tell me which are the steps you're doing so I could try to reproduce the problems ? Which version of the api ? Error message ?
Well for the warning I'm not an expert on php so I didn't take the time to fix it
from viessmann-api.
I use for test your last version with php examples.
after: ActivateComfortProgram.php
I received:
Message: Unable to set data for featureheating.circuits.0.operating.programs.comfort and action activate and data{} Reason: DEVICE_COMMUNICATION_ERROR Code: 1
I added supplementary function setActiveProgram:
const OPERATING_PROGRAM = "operating.programs.active"; ... public function setActiveProgram($program, $circuitId = NULL) { $this->setRawJsonData($this->buildFeature($circuitId, self::OPERATING_PROGRAMS), "setProgram", "{\"program\":\"" . $program . "\" }
I was the same negative result after call $viessmannApi->setActiveProgram("Eco"); or "Comfort"
Second problem, I can't registry new schedule, after post
$schedule = "{"mon":[{"start": "06:20","end": "07:30","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "19:00","end": "21:30","mode": "on","position":2}],"tue":[{"start": "06:20","end": "07:30","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "19:00","end": "20:30","mode": "on","position":2}],"wed":[{"start": "06:20","end": "07:30","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "19:00","end": "20:30","mode": "on","position":2}],"thu":[{"start": "06:20","end": "07:30","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "19:00","end": "20:30","mode": "on","position":2}],"fri":[{"start": "06:20","end": "07:30","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "20:00","end": "21:30","mode": "on","position":2}],"sat":[{"start": "08:30","end": "09:30","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "20:00","end": "20:30","mode": "on","position":2},{"start": "20:30","end": "21:30","mode": "on","position":3}],"sun":[{"start": "09:00","end": "10:00","mode": "on","position":0},{"start": "13:30","end": "14:30","mode": "on","position":1},{"start": "19:00","end": "21:30","mode": "on","position":2}]}"
$viessmannApi->setRawDhwSchedule($schedule);
I receive:
Message:
Unable to set data for featureheating.circuits.0.dhw.schedule and action setSchedule and data{"newSchedule": {....
submitted data
Reason: DEVICE_COMMUNICATION_ERROR
Code: 1
`
From VCare app submission of scheduler work fine.
My heater and OPT1 module have functions for eco, comfort and scheduler ex:
- heating.circuits.0.operating.programs.eco
- heating.dhw.schedule
from viessmann-api.
from viessmann-api.
from viessmann-api.
from viessmann-api.
Last night I found he same bug, after post the ex of future heating.dhw.schedule in message to You when I go sleep ;-))) and when I tested my modification in your source to send you information that it work I saw that you found the same bug and you published new version with it correction.
For eco and comfort program after analyzed sniffed ViCare data and api examples I things that Vissmann block api for change programs remotely.
If I find solution for eco and comfort program for Vissmann with OPT1 module I will send You info.
Thanks and merci for help.
Piotr
from viessmann-api.
from viessmann-api.
In my case your code work on my router and communicated directly by WAN port with V.server. I will sniff communication on WAN next week when I have more time or I will install code on machine in LA N.
The result after uncomments line:
Message: Unable to set data for featureheating.circuits.0.operating.programs.comfort and action activate and data{"temperature":23} Reason: DEVICE_COMMUNICATION_ERROR Code: 1 Trace:#0 phar:///tmp/mnt/ASUS_SYS/entware/share/nginx/html/Viessmann/example/Viessmann-Api-1.2.0-SNAPSHOT.phar/src/API/ViessmannAPI.php(282): Viessmann\API\ViessmannAPI->setRawJsonData('heating.circuit...', 'activate', '{"temperature":...') #1 /tmp/mnt/ASUS_SYS/entware/share/nginx/html/Viessmann/example/ActivateComfortProgram.php(3): Viessmann\API\ViessmannAPI->activateComfortProgram('23', 0) #2 {main}
BTW: I sniffed old version of VCare with wizard for comfort program (wind button on right down corner). And they not start exactly comfort program (stay in home). It change mode to forcenormal to stop time program and launch heating and DHW continuously. For stop it return to heating&DHW mode. The problem is if you use only DHW mode before launch by Vicare "comfort program". I thing this is reasons why Viessmann removed wizard from ViCare.
from viessmann-api.
Sorry I didn't had the time to check this and forget about it. Do you still having the problem ?
from viessmann-api.
I have a question regarding the message:
Unable to set data for featureheating.circuits.0.dhw.schedule and action setSchedule and data{"newSchedule": {....
submitted data
Reason: DEVICE_COMMUNICATION_ERROR
Code: 1
IMHO this is coming from the function "setRawJsonData" only. I do see the same message when using the function "startOneTimeDhwCharge". It reports unable but it is performing the desired task. I might missinterpret the code in "setRawJsonData", but this:
if (isset($response["statusCode"])) { ....
seems to be treated as TRUE (I can't say due to lacking php knowledge!).
@dr-boss : Confirm you do see this message and the desired command is NOT performed in your case?
[Edit:] I had a wrong function name in that posting. "setRawDhwSchedule" has been changed to te correct "setRawJsonData". Sorry for that!
from viessmann-api.
from viessmann-api.
from viessmann-api.
Ups, I meant to talk about the function "setRawJsonData". I'm sorry for this false posting!
It should read like:
IMHO this is coming from the function "setRawJsonData" only.
.. I might missinterpret the code in "setRawJsonData", but this:
from viessmann-api.
from viessmann-api.
Sorry I didn't had the time to check this and forget about it. Do you still having the problem ?
No problem, Your work is big without solved my small problem :-) Thanks for solution
I use another solution. I add temporary "program nb 4" to DHW schedule from time of set and end after 1h (by retrieve DHW time table, send modified and after 1h return to backup of original). And after this I remove it. This is my party program version for heating water for use
from viessmann-api.
Bonjour,
Pour un souci de consistance de l'APi et des des méthodes, il serait bon que la méthode :
public function getHotWaterStorageTemperature($circuit = NULL): string
ait comme paramètre $circuitId plutôt que $circuit.
Cordialement,
Bernard
from viessmann-api.
from viessmann-api.
Sorry I didn't had the time to check this and forget about it. Do you still having the problem ?
I understated that I have more important issue and I doing program with "work around" that is ok for me. If any person request party mode by my home automation system the program added 4th DHW time program from now to 1h plus. And after this one hour the time program was deleted from time table. For me is ok because I never use 4 programs by any day in week. Of course I haven;t any answer from Viessman support, I wrote that in manual and specification is written ... for system like my vCare support remote party and eco mode :-(
from viessmann-api.
Related Issues (20)
- isHeatingCompressorsActive() no longer working HOT 5
- Is it possible to read the values of the energy balance? HOT 6
- Action activat et désactivate sur programme externe (external progams).
- API officiel Viessmann HOT 1
- Does setDhwTemperature2() for oneTimeCharge-Temp exist? HOT 1
- Install composer HOT 1
- Issues with new Viessmann API authentication HOT 3
- Unable to get token with 2.0.0 HOT 10
- for information, futures not working in new api for my OPT1 (Vitoconnect 100) but before working fine HOT 12
- getRawJsonData / setRawJsonData don't work with new V api? HOT 5
- The feature getDhwTemperature() is no longer working HOT 4
- from yesterday - Error during authentication process HOT 2
- Consommations électriques et gaz ne remontent plus HOT 18
- Some features broken (?) HOT 8
- Query zigbee devices -> room temp. HOT 9
- PHP Warning: Argument #2 ($key) must be passed by reference,
- $viessmannApi->getHeatingSolarStatistics() not working.
- Invalid REDIRECT_URL in ViessmannOauthClientImpl
- Error installation HOT 2
- Update to Version 2.0 pour novice
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from viessmann-api.