Waziup / WaziCloud

WAZIUP Cloud and local platform
31 stars 28 forks source link

Allow all sensor names #233

Open j-forster opened 3 years ago

j-forster commented 3 years ago

When synchronizing with Wazigates, some devices fail with this message:

2020-11-25T10:28:42.226657194Z [UP   ] Status "/devices/dca632609cc6f55d": create
2020-11-25T10:28:42.226724471Z [UP   ] (400) Synchronization Error 400
2020-11-25T10:28:42.226787415Z Unable to push device.
2020-11-25T10:28:42.226853302Z Status: 400 "Bad Request"
2020-11-25T10:28:42.226918135Z Error from Orion: {"error":"BadRequest","description":"Invalid characters in attribute value"}
2020-11-25T10:28:42.226984967Z [UP   ] Status "/devices/dca632609cc6f55d": create, error

The error comes from Orion Invalid characters in attribute value.

In this particular case, a device name was (NEW) Homedevice including parentheses.

Like Wazigate devices/sensors/actuators, the entities on the cloud should allow generic UTF-8 names (including special characters) as well.

cdupont commented 3 years ago

Good point, after this V2.0 is finished, I'll will move on to removing Orion from the WaziCloud. This should fix the issue.