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. Pooling battery relay

Pooling battery relay

Scheduled Pinned Locked Moved Home Assistant
7 Posts 3 Posters 2.3k 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.
  • abmantisA Offline
    abmantisA Offline
    abmantis
    wrote on last edited by
    #1

    I want to make a relay/switch which needs to be battery powered. Because of that it can't be constantly listening for messages. Since it is not critical for it to be instant, I was thinking that the node could be sleeping for like 60 seconds, and the send and heartbeat (or other message) to the gateway and wait for a reply. When receiving that, the gateway would send the current state to the node, and the node would then return to sleep. It would be similar to the option that exists in MYSController, that waits for a node to speak to send it a message.

    Is this possible to do using Home Assistant?

    1 Reply Last reply
    0
    • martinhjelmareM Offline
      martinhjelmareM Offline
      martinhjelmare
      Plugin Developer
      wrote on last edited by
      #2

      Yes, smartsleep is supported. I explained how that is implemented in this post:
      https://forum.mysensors.org/topic/5440/heartbeats/3

      abmantisA 1 Reply Last reply
      3
      • martinhjelmareM martinhjelmare

        Yes, smartsleep is supported. I explained how that is implemented in this post:
        https://forum.mysensors.org/topic/5440/heartbeats/3

        abmantisA Offline
        abmantisA Offline
        abmantis
        wrote on last edited by
        #3

        @martinhjelmare :O that is great!
        So if I have, say, a switch and turn it ON on HA, when the node sends an heartbeat HA will send the ON command to the node? :D

        1 Reply Last reply
        0
        • martinhjelmareM Offline
          martinhjelmareM Offline
          martinhjelmare
          Plugin Developer
          wrote on last edited by
          #4

          Yes, exactly.

          abmantisA 1 Reply Last reply
          0
          • martinhjelmareM martinhjelmare

            Yes, exactly.

            abmantisA Offline
            abmantisA Offline
            abmantis
            wrote on last edited by
            #5

            @martinhjelmare How cool! That solves my problem! You developed the component for HASS? Great work dude! Really, thanks for it.

            I hope to be able to contribute more in the future, for now I've only done some small PRs.

            martinhjelmareM 1 Reply Last reply
            2
            • bjacobseB Offline
              bjacobseB Offline
              bjacobse
              wrote on last edited by
              #6

              What a great post to read for the New Year to come. This will be perfect solution for me to add this heartbeat to a smoke alarm, so that I can sent burgler-alarm signal to smoke alarm and disturb burglars

              1 Reply Last reply
              1
              • abmantisA abmantis

                @martinhjelmare How cool! That solves my problem! You developed the component for HASS? Great work dude! Really, thanks for it.

                I hope to be able to contribute more in the future, for now I've only done some small PRs.

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

                @abmantis

                I didn't make the initial mysensors implementation in home assistant that only supported sensors, but I made the refactor that laid the groundwork for multiple mysensors platforms in home assistant. About 5-10 people has been contributing to the mysensors component in home assistant over time.

                There's also the pymysensors package (not my creation either) that interfaces mysensors and home assistant. It's actually this package that holds most of the mysensors specific logic, like smartSleep. Here there's also about 5-10 people that has contributed.

                All help and feedback is welcome!

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


                15

                Online

                11.7k

                Users

                11.2k

                Topics

                113.1k

                Posts


                Copyright 2025 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