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. OpenHAB
  4. Retrieve sensor values from sensors on OpenHab request

Retrieve sensor values from sensors on OpenHab request

Scheduled Pinned Locked Moved OpenHAB
3 Posts 3 Posters 814 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.
  • Guillermo RuffinoG Offline
    Guillermo RuffinoG Offline
    Guillermo Ruffino
    wrote on last edited by
    #1

    I know that OpenHab can store the last value of a sensor with persistance, but sometimes OH could go down and then sensor value change and then when it comes back it will show an outdated value.
    So far a sensor does not change its value, OH will have null / old data, so how should I approach this?
    I'd like it to be automatic, but I really don't know if that is a good idea, e.g. OH requesting all values from all sensors that might flood MS network.

    I believe one solution could be from the sensor side implementing receive to answer the req message and then...
    from OH side have a rule that will (trigger when?) and request a sensor value, do I have to use the "expert mode" of the binding here?
    Please advice

    1 Reply Last reply
    0
    • gohanG Offline
      gohanG Offline
      gohan
      Mod
      wrote on last edited by
      #2

      just add some code in the nodes that if sensor data hasm't changed after 5 or 10 measurement, it will force the send of the value to make the controller aware that the sensor is still alive. Implementing a receive function on nodes it can be done but not for battery powered ones.

      parachutesjP 1 Reply Last reply
      1
      • gohanG gohan

        just add some code in the nodes that if sensor data hasm't changed after 5 or 10 measurement, it will force the send of the value to make the controller aware that the sensor is still alive. Implementing a receive function on nodes it can be done but not for battery powered ones.

        parachutesjP Offline
        parachutesjP Offline
        parachutesj
        wrote on last edited by parachutesj
        #3

        either what @gohan said or persist the values in OH

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


        8

        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