Announcement

Collapse
No announcement yet.

JSON API: controldevicebyvalue & setdevicestatus formatted to regional settings

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    JSON API: controldevicebyvalue & setdevicestatus formatted to regional settings

    Just be aware that this change in V4.1.0.16 may cause regional issues if you happen to use these JSON commands in your plugins. Any double value will need to be formatted using a decimal point rather than the regional decimal separator as it was before. If you have a plugin using these commands in HS3 (which is staying as is) which is also used in HS4, it will need to be modified for HS version detection and the JSON string format changed as appropriate. Whilst it will only affect plugin users in Europe etc, it is still a pain.....

    Personally, to provide backwards compatibility, I think they should have left it as-is and provided new JSON commands such as controldevicebyvalueex
    Jon


    #2
    Yeah, I had already issues with European users, took me a while...

    Comment

    Working...
    X