SmartThings icon indicating copy to clipboard operation
SmartThings copied to clipboard

Sonos Bug

Open lengfelj opened this issue 6 years ago • 1 comments

Thanks for the great repo!

Have a small issue with trackDescription data coming from Sonos:

postToInfluxDB(): Something went wrong! Response from InfluxDB: Headers: [content-length:489, request-id:c464608c-7473-11e7-b65d-000000000000, http/1.1 400 bad request:null, content-type:application/json, date:Sat, 29 Jul 2017 15:37:02 GMT, x-influxdb-version:1.3.1], Body: {"error":"unable to parse 'trackDescription,deviceId=9c93ae4e-671d-4ffa-998d-895cb3d16e45,deviceName=Office,groupId=null,groupName=Home,hubId=655bcc7a-dfd6-4458-a163-21c2b670325e,hubName=Home\\ Hub,locationId=d0288ea8-7456-442d-b4c8-41e83f5a69a5,locationName=Home,unit=null value=Okay\\ Then': invalid boolean\nunable to parse 'by\\ Sokro': missing fields\nunable to parse 'from\\ LA\\ FAMILIA\\ PT.\\ 1': missing fields\nunable to parse 'Grouped\\ with\\ Living\\ Room': missing fields"}

lengfelj avatar Jul 29 '17 16:07 lengfelj

I've seen this issue with my setup. In my case names of rooms and sensors aren't only in ASCII but in Unicode (UTF-8). I suspect platform not working correctly with UTF-8 encoded POST payload. Please see PR #20 if that helps.

scrool avatar Jul 31 '17 10:07 scrool