• Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Problem using cmd:all using Websockets

    Official EVOK API
    2
    3
    1431
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • O
      oflock last edited by

      Dear all,

      I try to use the cmd:all command using Websocket to retrieve all values at connexion in my custom UI.

      After digging into the source code, I managed to understand that there is a problem in the current master code on the Github:

      In evok.py, the line 113:

      result += map(lambda dev: dev.full(), Devices.by_int(dev))

      returns this exception when cmd:all command is fired:

      Exc: unsupported operand type(s) for +=: 'dict' and 'list'

      Could you please help me to correct this, as I really need this functionnality ? I would like not to have to use the REST API to do that, as I do everything using Websockets.

      Best regards.

      Olivier.

      1 Reply Last reply Reply Quote 0
      • T
        TomasKnot last edited by

        Hi Olivier,

        The issue should now be fixed in the latest commit. Please see if it works for you, thank you for reporting the bug.

        Kind regards,
        Tom

        1 Reply Last reply Reply Quote 0
        • O
          oflock last edited by

          Hi Tom,

          great ! Problem fixed !

          Thanks for your fast answer and support.

          Regards.

          Olivier.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post