Hi,

I have a question according the user defined states. As stated in the
JSON API document it should be possible to set a user defined state (if
that state is not linked to physical outputs or defined by other
states). If I understand this correctly, I can only set the state
"active" or "inactive" using this two strings as value. Is this correct?


I tried this with the state "Kind_zuhause" within the testserver
(https://testrack2.aizo.com:50443) but I get an error, that the given
state is not found.


My requests is:
https://testrack2.aizo.com:58080/json/state/set?addon=system−addon−user−defined−states&name=1494253299&value=inactive&token=55d6d57898cc9fa127f3eeddd751c78f4fc3294f5c549d758488093ec7c02aa6

The Respose is: {"ok":false,"message":"State not found name:1494253299
model/apartment.cpp:912 httpPath:/json/state/set"}


I wonder what's wrong. If I debug the User-Defined-States App in the
webbrowser it seems to work. This app is sending:

https://testrack2.aizo.com:50443/json/state/set?addon=system-addon-user-defined-states&name=1494253299&value=inactive&a=0.40391334838893855&;


I also tried to add the a=0.40391334838893855 part (what ever this is)
but without success.


I hope one of you has an idea were my error is.


best regards, Christian


Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
dss-developer mailing list
[email protected]
http://forum.digitalstrom.org/cgi-bin/mailman/listinfo/dss-developer

Reply via email to