Evok - Websocket bugs/problems

  • 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 !

  • 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 :-)

  • 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.

Log in to reply