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

    Evok - Websocket bugs/problems

    Official EVOK API
    1
    3
    1237
    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.
    • S
      StevenBrs last edited by

      Hi there,

      I'm trying to do some evok websocket stuff in Python, but encounter some problems:

      • I can change states with "set", but when I change the function to "full" I get the error:
        evok - ERROR - Exc SB : full() takes exactly 1 argument (2 given)
      • If I'm toggling UserLEDs within EVOK webUI, I see the changes appear in the websockets for 1_01 to 1_04, but for my extension (xS10) only the first led appears in websockets. The other leds don't show up, although they light up correctly.
      • When I'm listening to the websockets and toggle a relay in the evok webUI, I get an array with all relays instead of the one toggled. The one toggled is neither the last one or first one, so very difficult to get the changed one

      Can somebody please tell me what I'm doing wrong, or how I can work around these issues ?

      P.S. Using a M205 + xS10, with default Evok rpi image from unipi website (and added some stuff like docker)
      P.P.S. I'm not a programmer, but I know my way around in PHP and Delphi. Python is new for me though…

      Thanks !
      Steven

      1 Reply Last reply Reply Quote 0
      • S
        StevenBrs last edited by

        Oops, the "Exc SB : full"... error message should be "Exc : full"...
        I added my initials to the code to make sure I was looking in the right place :-)

        1 Reply Last reply Reply Quote 0
        • S
          StevenBrs last edited by

          Follow-up on this one:

          • Bullet 1 and 2 are still a problem. Unipi people, can you please comment on this ?
          • Bullet 3: When changing a relay state I get an array back with all relay states of that group. This was a problem because I wanted to propagate the state change to MQTT. I solved this by looping over the array and returning every state. Although this creates a little overhead, MQTT is fast enough to handle.
          1 Reply Last reply Reply Quote 0
          • First post
            Last post