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

    Control Unipi relays with Python

    Scheduled Pinned Locked Moved General Discussion
    2 Posts 2 Posters 1.6k Views
    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.
    • L
      loggeduser
      last edited by

      Hello,
      How I can control relay of Unipi with Python?

      Thank you for help.

      Martin KudláčekM 1 Reply Last reply
      Reply Quote 0
      • Martin KudláčekM
        Martin Kudláček @loggeduser
        last edited by Martin Kudláček

        Hello @loggeduser,
        yes, you can. There are three ways how to communicate with IOs from your program:

        1. ModbusTCP server - local process running on port TCP/502 making the IOs available via Modbus coils and registers. You can read more about the Modbus Registers Maps
        2. EVOK - all sorts of web APIs (json, rest, websocket,...), more information here
        3. SysFS - IOs are made available through a virtual filesystem, more information here

        But it depends on which unit you use.

        Best regards,
        Martin

        1 Reply Last reply
        Reply Quote 0

        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

        With your input, this post could be even better 💗

        Register Login
        • First post
          Last post