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 3.7k 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.
  • epierreE Offline
    epierreE 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

    AWIA 1 Reply Last reply
    0
    • epierreE 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 ?

      AWIA Offline
      AWIA 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
      • epierreE Offline
        epierreE 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

        YveauxY 1 Reply Last reply
        0
        • epierreE 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"));

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


              18

              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