Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Controllers
  3. Home Assistant
  4. pymysensors specific forum?

pymysensors specific forum?

Scheduled Pinned Locked Moved Home Assistant
2 Posts 2 Posters 1.2k Views 3 Watching
  • 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.
  • afenoA Offline
    afenoA Offline
    afeno
    wrote on last edited by afeno
    #1

    Hello,

    There is any specific forum to talk about pymysensors?

    I have some doubts that I would like to clarify before proposing some changes on it.

    For example: Is it possible to send internal messages to the gateway? like sending an I_VERSION request. I only saw the option to send regular messages to sensors with set_child_vale.

    Thanks,
    Alfredo.

    martinhjelmareM 1 Reply Last reply
    0
    • afenoA afeno

      Hello,

      There is any specific forum to talk about pymysensors?

      I have some doubts that I would like to clarify before proposing some changes on it.

      For example: Is it possible to send internal messages to the gateway? like sending an I_VERSION request. I only saw the option to send regular messages to sensors with set_child_vale.

      Thanks,
      Alfredo.

      martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by martinhjelmare
      #2

      @afeno

      There's no specific forum for pymysensors that I know. Home Assistant uses pymysensors, so maybe that's the closest?

      Regarding sending an internal message: Create a Message instance and use the copy method to set the types and child, internal, I_VERSION, 255 etc. You can look at other places in the code for how that is done, eg:
      https://github.com/theolind/pymysensors/blob/master/mysensors/mysensors.py#L83-L85

      Then you want to encode the message and add it to the Gateway queue, for subsequent sending to gateway. There's the Gateway.fill_queue method for this. But you actually have to add a function with optional arguments/keyword arguments, where the return value of the function is the encoded message, to the queue. So you can add a reference to the encode method of the Message instance. See for example:
      https://github.com/theolind/pymysensors/blob/master/mysensors/mysensors.py#L325

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      14

      Online

      11.7k

      Users

      11.2k

      Topics

      113.0k

      Posts


      Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • MySensors
      • OpenHardware.io
      • Categories
      • Recent
      • Tags
      • Popular