@W0RSCHD said in Twinkly - Basisfunktionen mit ioBroker steuern:
Weihnachtsbaum
Ich habe deine Aufrufe mal mit meinen verglichen und die sind bis auf die Rückmeldung identisch:
[httpRequest.POST] {"url":"http://192.168.178.52/xled/v1/login","body":{"challenge":"AAECAwQFBgcICQoLDA0ODxAREhMUFRYXGBkaGxwdHh8="},"method":"POST","rejectUnauthorized":false,"timeout":3000,"json":true}
Deins: [doPostRequest] response: {"statusCode":200,"body":{ "code":1106},"headers":{ "connection":"close","content-length":"13","content-type":"application/json"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"192.168.178.175","port":80,"hostname":"192.168.178.175","hash":null,"search":null,"query":null,"pathname":"/xled/v1/login","path":"/xled/v1/login","href":"http://192.168.178.175/xled/v1/login"},"method":"POST","headers":{"accept":"application/json","content-type":"application/json","content-length":60}}}
Meins: [doPostRequest] response: {"statusCode":200,"body":{"authentication_token":"BFJmAWqQ8+4=","authentication_token_expires_in":14400,"challenge-response":"b240d1a142fc8346c72453fa8b4bb62e7f44d64b","code":1000},"headers":{"server":"esp-httpd/0.5","connection":"close", "content-type":"application/json"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"192.168.178.52", "port":80,"hostname":"192.168.178.52", "hash":null,"search":null,"query":null,"pathname":"/xled/v1/login","path":"/xled/v1/login","href":"http://192.168.178.52/xled/v1/login"}, "method":"POST","headers":{"accept":"application/json","content-type":"application/json","content-length":60}}}
Ich habe leider keine Erklärung dafür... @siggi85 hast du eventuell eine Idee?
Es scheint ja irgend ein Fehler im Request zu sein, den die erste Generation der Twinkly nicht mag.
Falls du keine Idee hast würde ich den Request gegen den curl Befehl ersetzen, der scheint ja zu funktionieren.