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. Feature Requests
  3. gw.send for float

gw.send for float

Scheduled Pinned Locked Moved Feature Requests
6 Posts 4 Posters 4.3k Views 2 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.
  • E Offline
    E Offline
    epierre
    Hero Member
    wrote on last edited by
    #1

    Hello,

    I have many gases sensors, especially for harmful gases, that report very small concentration, which is thus a float.

    Today gw.send only allows an int, which is troublesome for I have to multiply per 1k to have an int.

    That would mean that the controller would have to convert back to float to be on the right scale.

    Would that extension be possible ?

    z-wave - Vera -> Domoticz
    rfx - Domoticz <- MyDomoAtHome <- Imperihome
    mysensors -> mysensors-gw -> Domoticz

    A 1 Reply Last reply
    0
    • E epierre

      Hello,

      I have many gases sensors, especially for harmful gases, that report very small concentration, which is thus a float.

      Today gw.send only allows an int, which is troublesome for I have to multiply per 1k to have an int.

      That would mean that the controller would have to convert back to float to be on the right scale.

      Would that extension be possible ?

      A Offline
      A Offline
      AWI
      Hero Member
      wrote on last edited by
      #2

      @epierre almost all my sensors use gw.send to send floats. It is in the API, or do I misunderstand you?

      1 Reply Last reply
      0
      • E Offline
        E Offline
        epierre
        Hero Member
        wrote on last edited by
        #3

        in 1.5 I just have the int definition of it, maybe is that linked to the S_AIR_QUALITY maybe ?

        gw.present(CHILD_ID_CO, S_AIR_QUALITY);
        gw.send(msg_co.set("ppm"));

        z-wave - Vera -> Domoticz
        rfx - Domoticz <- MyDomoAtHome <- Imperihome
        mysensors -> mysensors-gw -> Domoticz

        Y 1 Reply Last reply
        0
        • E epierre

          in 1.5 I just have the int definition of it, maybe is that linked to the S_AIR_QUALITY maybe ?

          gw.present(CHILD_ID_CO, S_AIR_QUALITY);
          gw.send(msg_co.set("ppm"));

          Y Offline
          Y Offline
          Yveaux
          Mod
          wrote on last edited by Yveaux
          #4

          @epierre Did you try something like:

          float myval = 0.1234;
          gw.send( MyMessage(CHILD_ID_CO, V_VAR1).set(myval) );
          

          http://yveaux.blogspot.nl

          1 Reply Last reply
          0
          • mfalkviddM Offline
            mfalkviddM Offline
            mfalkvidd
            Mod
            wrote on last edited by
            #5

            You should be able to do something like line 57 in this sketch https://codebender.cc/sketch:177182#Soil moisture for houseplants - multi-sensor internal pull-up.ino

            1 Reply Last reply
            2
            • E Offline
              E Offline
              epierre
              Hero Member
              wrote on last edited by
              #6

              @mfalkvidd thanks a lot !

              z-wave - Vera -> Domoticz
              rfx - Domoticz <- MyDomoAtHome <- Imperihome
              mysensors -> mysensors-gw -> Domoticz

              1 Reply Last reply
              1

              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


              10

              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