Refreshing a virtual device always result in a 400 Bad Request

Hi! I've written some tools around the local free@home API. See https://github.com/guckykv/freeathome-go-fahapi and https://github.com/guckykv/freeathome-go-tools With that I also can register virtual devices - which works fine. But if I try to refresh them, I always get a "400 Bad Request". And I get the error also when I try the curl from your documentation. curl -v -X PUT --user a33xxxxxxa8:xxxx http://192.168.7.4/fhapi/v1/api/rest/virtualdevice/00000000-0000-0000-0000-000000000000/abc7777 -d '{"properties": {"ttl": "60"}}' * Trying 192.168.7.4... * TCP_NODELAY set * Connected to 192.168.7.4 (192.168.7.4) port 80 (#0) * Server auth using Basic with user 'a33xxxxxxxa8' > PUT /fhapi/v1/api/rest/virtualdevice/00000000-0000-0000-0000-000000000000/abc7777 HTTP/1.1 > Host: 192.168.7.4 > Authorization: Basic xxxxxx > User-Agent: curl/7.64.1 > Accept: */* > Content-Length: 29 > Content-Type: application/x-www-form-urlencoded > * upload completely sent off: 29 out of 29 bytes < HTTP/1.1 400 Bad Request < Server: < Date: Sun, 31 Jan 2021 15:34:12 GMT < Transfer-Encoding: chunked < Connection: keep-alive < * Connection #0 to host 192.168.7.4 left intact * Closing connection 0 Using SysAPv2 with system 2.6.0. So, whats going wrong? Regards!

Comments

  •  
    Ensure the TTL is 180 or higher. this helps to resolve it for me
    Posted by Hidden Thu, 25 Nov 2021 14:03:05 GMT


You're not signed in. Please sign-in to report an issue or post a comment.