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. which unit of measurement to use for V_RAINRATE?

which unit of measurement to use for V_RAINRATE?

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

    I have a simple rain detector sensor bulti using those cheap plate like this
    Immagine 2022-09-30 163243.png
    It sends the usual "analog read" values from 0 to 1023 to Home assistant as V_RAINRATE

    It's all good, I can read the values in HA but in the entity card's history they are shown as "discrete values":
    Immagine 2022-09-30 162650.png

    I'd like to see them as a line, like the temperature is:
    Immagine 2022-09-30 162959.png

    I think that the problem is that for the rain rate isn't set a unit of measurement.
    What do you suggest I put in V_UNIT_PREFIX so to have the data displayed as a line?

    1 Reply Last reply
    0
    • electrikE Offline
      electrikE Offline
      electrik
      wrote on last edited by
      #2

      In https://github.com/mysensors/MySensors/blob/master/core/MyMessage.h#L135
      S_RAIN is used. As prefix I guess you can use whatever you want, eg mm/h

      1 Reply Last reply
      1
      • skywatchS Offline
        skywatchS Offline
        skywatch
        wrote on last edited by skywatch
        #3

        You can't do what you want using that sensor - The sensor is just a simple on/off type sensor that tells you if the sensor plate is wet or not, it does not measure how much rain is falling. Even if you timed how long it was activated how would you know between heavy rain and a light shower?

        You need a 'tipping bucket' type sensor to give you an estimate of how much rain there has been, but even then you need to do some work with experimentation to get reasonable accuracy.

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


        12

        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