I have found two bugs in the handling of JSON strings / HTTP request body.
The first, the app adding quotes and escape charcters that then break the JSON, was reported back in Dec 2024 but is still not resolved.
The second, is that the hub adds '\nContent-Type: application/json" to the end of the headers. When this reaches Home Assistant, it is seen as a single item with the \n not working to separate the parts - e.g. "Authorization: Mytoken\nContent-Type: application/json". I think this is probably another problem with the app adding quotes or escape characters, causing the whole header block to be one string rather than several separate lines.
When will these bugs be fixed? The HTTP is not usable with the most popular home automation platform. This shouldn't be hard to fix - and to TEST properly BEFORE release.
Come on, Sofabaton, you can and msut do better. Your forum has loads of reports of bugs and requests for new features. You just say 'we'll look at it', but nothing gets fixed, there hasn't been a release for at least 6 months. This isn't good enough. I just bought the X1S, may now have to return it, if this is the standard of support.