Skip to content

Fix json.decode compatibility with current SmartThings Edge runtime#34

Open
ronnie0479 wants to merge 1 commit into
philh30:mainfrom
ronnie0479:main
Open

Fix json.decode compatibility with current SmartThings Edge runtime#34
ronnie0479 wants to merge 1 commit into
philh30:mainfrom
ronnie0479:main

Conversation

@ronnie0479

Copy link
Copy Markdown

This fixes compatibility with the current SmartThings Edge runtime.

The driver uses the legacy json.decode(data, 1, nil) API, which now throws:

[string "json"]:46: pos argument not supported

Replacing those calls with json.decode(data) restores compatibility and allows Sony BRAVIA TVs to be discovered and onboarded successfully.

Files changed:

  • Sony/sony-bravia-tv/src/api_cmd.lua
  • Sony/sony-bravia-tv/src/process_multiline.lua

Tested successfully on:

  • Sony XBR-85X90CH
  • Android TV 12
  • SmartThings Hub (2026 Edge runtime)

The driver now discovers and creates the TV successfully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant