Comments (4)
Please show an example payload with example response output and not just explain your issues with words. Show concrete examples!
from occu.
Sure, payload for SysVar.createEnum
:
"{"name":"Test","valList":"Foo;Bar;Other","internal":"0","chnID":"-1"}
Response is successful:
{"version": "1.1","result": {'name':'Test','id':'6968','value':'Foo;Bar;Other' },"error": null}
Payload for SysVar.deleteSysVarByName
:
{"name":"Test"}
Response is successful:
{"version": "1.1","result": true,"error": null}
SysVar.getAll
won't list the variable anymore, but e.g. SysVar.getValueByName
will return:
{"version": "1.1","result": "0","error": null}
Asking for a non-existing variable would look like this:
{"name":"Foobar"} => {"version": "1.1","result": "","error": null}
Now the payload to create the variable again:
{"name":"Test","valList":"A;B;C","internal":"0","chnID":"-1"}
The response shows our variable was created with a new name to prevent the conflict with our soft-deleted one:
{"version": "1.1","result": {'name':'Test 2','id':'6971','value':'A;B;C' },"error": null}
from occu.
I am almost certain that the issue just happens because you have another object (device, channel, program, etc.) that has also the name "Test". Unfortunately, the SysVar.getValueByName
function does not filter for system variables but applies the search to all objects, that's why your request for a "Test" system variable still matches, simply because the getValueByName function is doing the search wrong. This is something I will try to fix/optimized in RaspberryMatic.
from occu.
It's definitly not because of "Test", my original Parameter was "APP_VENTILATION_STATUS". If you create, delete and recreate the same Systemvariable in the WebUI, the name won't add a number, it's only this behaviour with the JSON API.
I think the SysVar methods for the JSON API are just not used very often, i guess most software will program the channels directly instead of using a system variable change to trigger programs.
from occu.
Related Issues (20)
- XML-RPC -> Controlling LEVEL_2 of HmIP-BBL alone does not work
- missing UNIT in paramsetDescription for LEVEL of HmIP-BDT.DIMMER_TRANSMITTER.2
- Interface URLs are incorrect
- OpenSource HMIPServer HOT 2
- Interface.reportValueUsage file is missing
- Typo in cp_software.cgi HOT 3
- HMIP HDM1 LEVEL between 0 and 1
- Paramset Data for Virtual Devices API are inconsistent HOT 1
- JSON API SysVar.createBool returns invalid json HOT 4
- Invalid RSSI_DEVICE values via xmlrpc if a HMIP HAP is present
- Umstieg von OCCU Home Assistant AddOn zu Rasperrymatic
- Invalid XML in `/tclrega.exe` XML postamble
- JSON API SysVar.setEnum is not working as expected HOT 5
- JSON API SysVar.createEnum will always be internal HOT 3
- JSON-RPC API: Whats the prefered way to aquire a _session_id_ from my CCu3? HOT 3
- Alle HmIP-Devices auf Kommunikationsstörung nach erstem Aufruf GetDatapointsByDevice
- HmIPW-SCTHD Heizgruppen
- HMIP-SWDO bietet Status offen/geschlossen nicht in Programmen auf der CCU3 an. HOT 8
- Access to all 6 heating / cooling week profiles via room
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 occu.