Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,


as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.


As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!



Smart Home Forum by FIBARO Team

Search the Community

Showing results for tags 'json.decode'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie


  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start






Website URL





Found 1 result

  1. Hi all, I am struggling with a weird bug that happens on a very irregular basis (once in weeks, or lately 2 times in 1 week at night). The VD controls my home heating. After is crashes, it gets cold. Sometimes decoding the json string kills my VD 'Main', fatal error: "Expected value but found T_END at character 1". 'User' has admin credentials to access the heating panel. If I deliberatly corrupt username or password, I get the same error. For performance reasons, authentication is done once as 'Main' never ends. Function HeatRoom() runs every minute. It looks like 'panel' from HC2:GET is an empty string once in a while but why? Is it possible for authentication to expire? Any idea about the cause/trigger and a fix? if Once == nil then Username = "User" Password = "Password" HC2 = Net.FHttp( "" ) -- Access HC2 from inside local Auth = HC2:setBasicAuthentication( Username, Password ) HeatingID = 191 Once = "Done" -- Done only once. end function HeatRoom() panel = HC2:GET( "/api/panels/heating?id=" .. tostring( HeatingID ) ) panel = json.decode( panel ) -- Yields once in a while fatal error: "Expected value but found T_END at character 1". -- etc. end Snippet.lua
  • Create New...