I have a problem with the virtual output command. Everything works fine when I use fiddler and assembly my command. But when I want to use Loxone to do this, it's not working. I grabbed what loxone is sending and there seems to be some syntax error in what I put there.
command I am sending:
PUT
host: 192.168.0.226
content-length: 13
body: {"on":true}
I want to learn how to do this, since these lights are not the only thing I want to create in this way. I also want to link with my raspberry in this manner.
what I did in loxone:
1) I set the address accordingly in the virtual Output
2) I create a command for this virtual output with the settings:
Command for ON -> {"on":true}
HTTP method for ON -> PUT
Command for OFF -> {"on":false}
HTTP method for OFF -> PUT
where do I set the headers? if I sniff with Loxone logger I see the attached image. content-type: text/plain charset=utf-8 I think this is the mistake
I appreciate your feedback.
Kind regards,
Toon
Kommentar