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. Does HA ignore repeat sensor values?

Does HA ignore repeat sensor values?

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

    I'm trying to diagnose some repeater issues. I have a temperature sensor sending data every 10 seconds. Home Assistant will go several minutes before it will show a last updated timestamp for my temperature sensor. I can verify in Netcat that the gateway is getting the values every 10 seconds. By chance, I noticed in the debug output, Home Assistant only fires the Event state_changed when the value actually changes. I guess this makes sense.
    Is this normal behavior for HA? Can this be disabled so every sensor message is logged?

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

      Yes this is normal behavior in HA. But it can be turned off, on a platform basis in HA. I have a PR incoming that will force state updates for mysensors sensors.

      https://github.com/home-assistant/home-assistant/pull/3648

      CravecodeC 1 Reply Last reply
      1
      • M Offline
        M Offline
        Mihai
        wrote on last edited by
        #3

        It would be very nice to be able to choose between HA interface update/don't update for the same value. For me, I am looking for last time value change/receive also as a confirmation of node running in good shape. Thank you.

        1 Reply Last reply
        0
        • martinhjelmareM martinhjelmare

          Yes this is normal behavior in HA. But it can be turned off, on a platform basis in HA. I have a PR incoming that will force state updates for mysensors sensors.

          https://github.com/home-assistant/home-assistant/pull/3648

          CravecodeC Offline
          CravecodeC Offline
          Cravecode
          wrote on last edited by
          #4

          @martinhjelmare I see you PR was merged a while ago. It looks like the force_update property defaults to TRUE. Is this now the default behavior for all MySensors sensors?

          Sorry if this seems obvious, I just want to double check.
          Thanks for your work and time!

          martinhjelmareM 1 Reply Last reply
          0
          • CravecodeC Cravecode

            @martinhjelmare I see you PR was merged a while ago. It looks like the force_update property defaults to TRUE. Is this now the default behavior for all MySensors sensors?

            Sorry if this seems obvious, I just want to double check.
            Thanks for your work and time!

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

            @Cravecode

            Hi! Yes, pure sensors will default to force updates.

            1 Reply Last reply
            0
            • CravecodeC Offline
              CravecodeC Offline
              Cravecode
              wrote on last edited by
              #6

              @martinhjelmare, sorry to bring up an old topic. I'm on a version of HA that includes your PR (v.: 0.54.0), however, my motion sensors only update their last_updated property when the motion sensor's state changes. I can see in HA'a log that it is receiving the expected repeated state (1;1;1;0;16;0) every X minutes, but the entity doesn't update the last_updated timestamp unless the motion sensor's state changes. Is there a way I can force the last_updated timestamp for each msg?

              Some context: I'm attempting to write automation rules to create alerts for sensors that have not checked-in within X minutes.

              martinhjelmareM 1 Reply Last reply
              0
              • CravecodeC Cravecode

                @martinhjelmare, sorry to bring up an old topic. I'm on a version of HA that includes your PR (v.: 0.54.0), however, my motion sensors only update their last_updated property when the motion sensor's state changes. I can see in HA'a log that it is receiving the expected repeated state (1;1;1;0;16;0) every X minutes, but the entity doesn't update the last_updated timestamp unless the motion sensor's state changes. Is there a way I can force the last_updated timestamp for each msg?

                Some context: I'm attempting to write automation rules to create alerts for sensors that have not checked-in within X minutes.

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

                @Cravecode

                I think you can set force_update to true under customize for the entity in question.

                It seems it's not possible to customize that property.

                1 Reply Last reply
                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
                Reply
                • Reply as topic
                Log in to reply
                • Oldest to Newest
                • Newest to Oldest
                • Most Votes


                25

                Online

                12.0k

                Users

                11.2k

                Topics

                113.4k

                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