thingspeak
thingspeak copied to clipboard
Upload not working
For Home Assistant we have a integration which is using this module (see [1] for details). It looks like that there is an issue with the keys and the data part of the request is not containing all details to make a successful upload.
[1] https://github.com/home-assistant/home-assistant/issues/5663
Would be nice to just use update(value, field). Not be limited to JSON.
How would you make it work with multiple fields?
Sorry, this works with if the payload contains multiple fields like {'field1': 5, 'field2': 5}. If it's text then I was thinking about a list of tuples...forget that.
Any plan to fix this? If not then we need to look for a different solution as the Home Assistant integration is useless if the update is not working.
I would really appreciate if we can fix this.
From my testing looks like everything works correctly. in home-assistant/home-assistant#5663 the request is missing api_key. You need write key even for public channels.
Also, you are not limited to JSON, you are limited to dict(). I agree it will be nice feature to have, will come in future releases. I need to implement proper testing first.