Skip to content

JSON API SysVar.setEnum is not working as expected #117

@pmdevelopment

Description

@pmdevelopment

To reproduce create a "List" system variable, e.g. named "Test" with values "Foo;Bar;Other" (But use the WebUI, i am still looking for a way to delete a variable with the JSON API).

Now call SysVar.setEnum with {name: "Test", valueList: "Bar"}. The result will return some invalid JSON (#113), but will "Bar" is successfully selected.

Now we would call SysVar.setEnum with {name: "Test", value: "Bar"} or {name: "Test", value: 1} to set a new value index, but the method only excepts valueList, there is no way to change the selected index?

Now use SysVar.getAll, SysVar.getValue or SysVar.getValueByName and there will always be the same: result: "0" or value: "0". The value will always be "0", the first element of the list, because i am not able to change it.

Hardware: CCU3
Software: 3.65.6

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions