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. Development
  3. Assistance Needed Completing GAS Air Quality Sensor

Assistance Needed Completing GAS Air Quality Sensor

Scheduled Pinned Locked Moved Development
airmq2gasquality
15 Posts 5 Posters 6.5k Views 1 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.
  • K Konrad Walsh

    2014-12-01_15h04_52.png
    At the challenge from @HEK and realising we have no S_AIR_QUALITY files.. I have set out to create them..

    I am stuck with finalising the .ino sketch. I want to achieve this in one device with three pieces of data. .Its early days on development but I could do with help through the last parts..

    I have attached my files as they are. In the .ino sketch the problem is with my gw.send(msgxxxx) parts.

    AirQualitySensor.ino
    https://codebender.cc/sketch:65086

    S_AirQuality1.xml
    D_AirQuality1.xml
    D_AirQuality1.json

    BulldogLowellB Offline
    BulldogLowellB Offline
    BulldogLowell
    Contest Winner
    wrote on last edited by
    #2

    @Konrad-Walsh

    looks good so far...

    are these variables (lpgVal, butaneVal, smokeVal) part of the MySensors library or have you added them?

    MySensor gw;
    //MyMessage msg(CHILD_ID_MQ, V_VAR1);
    MyMessage lpgMsg(CHILD_ID_MQ, lpgVal);
    MyMessage pressureMsg(CHILD_ID_MQ, butaneVal);
    MyMessage forecastMsg(CHILD_ID_MQ, smokeVal);
    

    I used the stock V_VAR1, V_VAR2, V_VAR3, etc and used Variable1, Variable2 and Variable3 in my JSON files, Vera side for a custom rain gage... That way I didn't need to add any new types of sensor data.

    1 Reply Last reply
    0
    • hekH Offline
      hekH Offline
      hek
      Admin
      wrote on last edited by
      #3

      @Konrad-Walsh

      Nice!

      As @BulldogLowell said you should probably use VAR1-3 until the next version of the library is released (which contains a myriad of gas-types):

      1 Reply Last reply
      0
      • K Offline
        K Offline
        Konrad Walsh
        wrote on last edited by
        #4

        @hek & @BulldogLowell

        Thanks - I will change to that and update you

        The ultimate goal here is to make a 5 in 1 sensor.. So what I have already.. this will finish that off

        BulldogLowellB 1 Reply Last reply
        0
        • K Konrad Walsh

          @hek & @BulldogLowell

          Thanks - I will change to that and update you

          The ultimate goal here is to make a 5 in 1 sensor.. So what I have already.. this will finish that off

          BulldogLowellB Offline
          BulldogLowellB Offline
          BulldogLowell
          Contest Winner
          wrote on last edited by
          #5

          @Konrad-Walsh

          great...

          So I will hold off finishing the CO/CO2 detector for my factory!!

          Jim

          K 1 Reply Last reply
          0
          • BulldogLowellB BulldogLowell

            @Konrad-Walsh

            great...

            So I will hold off finishing the CO/CO2 detector for my factory!!

            Jim

            K Offline
            K Offline
            Konrad Walsh
            wrote on last edited by Konrad Walsh
            #6

            @BulldogLowell LOL .. maybe dont depend on my skills..!! :)

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

              @Konrad-Walsh it seems there is a multi variable object from the vera store that would be used as an input ?

              for a 5 in one, I would recommend CO2 and PM10 (for @BulldogLowell) for they are the only one calibrated.

              Others would need some adjustements, if you can add some "clean air factor" for each gas in the UI parameters that could be sent to the node, that would be a great leap forward.

              Emmanuel

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

              K 1 Reply Last reply
              0
              • epierreE epierre

                @Konrad-Walsh it seems there is a multi variable object from the vera store that would be used as an input ?

                for a 5 in one, I would recommend CO2 and PM10 (for @BulldogLowell) for they are the only one calibrated.

                Others would need some adjustements, if you can add some "clean air factor" for each gas in the UI parameters that could be sent to the node, that would be a great leap forward.

                Emmanuel

                K Offline
                K Offline
                Konrad Walsh
                wrote on last edited by
                #8

                @epierre OK.. I wil lget this set up functioning first as a stanadalone device. I have the sketch completed now.. Just finishing off the vera files.. Then I will look at improving things

                1 Reply Last reply
                0
                • korttomaK Offline
                  korttomaK Offline
                  korttoma
                  Hero Member
                  wrote on last edited by
                  #9

                  @Konrad-Walsh have you had time to look in to the device files? I'm using the once you posted and retrieve value from a sensor using V_VAR1 but it would be nice to get the value to show on the device to and not only under a Variable in the advanced tab. I tried to look in to the device files myself but it seems like it is too complicated for me to figure out what to change. I can help out with some testing if you like.

                  • Tomas
                  K BulldogLowellB 2 Replies Last reply
                  0
                  • korttomaK korttoma

                    @Konrad-Walsh have you had time to look in to the device files? I'm using the once you posted and retrieve value from a sensor using V_VAR1 but it would be nice to get the value to show on the device to and not only under a Variable in the advanced tab. I tried to look in to the device files myself but it seems like it is too complicated for me to figure out what to change. I can help out with some testing if you like.

                    K Offline
                    K Offline
                    Konrad Walsh
                    wrote on last edited by
                    #10

                    @korttoma Hey

                    Bear with me.. I hope to complete this over the weekend.. work got in the way.. But the goal is to achieve what you requested... I just need to stabilize things first

                    korttomaK 1 Reply Last reply
                    0
                    • korttomaK korttoma

                      @Konrad-Walsh have you had time to look in to the device files? I'm using the once you posted and retrieve value from a sensor using V_VAR1 but it would be nice to get the value to show on the device to and not only under a Variable in the advanced tab. I tried to look in to the device files myself but it seems like it is too complicated for me to figure out what to change. I can help out with some testing if you like.

                      BulldogLowellB Offline
                      BulldogLowellB Offline
                      BulldogLowell
                      Contest Winner
                      wrote on last edited by
                      #11

                      @korttoma

                      Yes, it is possible to display the V_VAR's on the device panel...

                      1 Reply Last reply
                      0
                      • K Konrad Walsh

                        @korttoma Hey

                        Bear with me.. I hope to complete this over the weekend.. work got in the way.. But the goal is to achieve what you requested... I just need to stabilize things first

                        korttomaK Offline
                        korttomaK Offline
                        korttoma
                        Hero Member
                        wrote on last edited by
                        #12

                        @Konrad-Walsh hope you have had nice relaxing holiday like me. Have you had any possibility to look in to the device files 😁 ?

                        • Tomas
                        K 1 Reply Last reply
                        0
                        • korttomaK korttoma

                          @Konrad-Walsh hope you have had nice relaxing holiday like me. Have you had any possibility to look in to the device files 😁 ?

                          K Offline
                          K Offline
                          Konrad Walsh
                          wrote on last edited by
                          #13

                          @korttoma Hey

                          Just back on track from today.. so will getting looking to this again

                          1 Reply Last reply
                          0
                          • korttomaK Offline
                            korttomaK Offline
                            korttoma
                            Hero Member
                            wrote on last edited by
                            #14

                            Sorry if I'm nagging at you about this @Konrad-Walsh but maybe you just forgot :)
                            Wish I had to skills to do it myself but I don't (I did try but failed miserably).

                            • Tomas
                            1 Reply Last reply
                            0
                            • korttomaK Offline
                              korttomaK Offline
                              korttoma
                              Hero Member
                              wrote on last edited by
                              #15

                              I managed to modify the D_AirQuality1.json file to display the value from V_VAR1 on the Device with the Lable CO2.
                              Here it is incase someone wants it:

                              D_AirQuality1.json

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


                              11

                              Online

                              11.7k

                              Users

                              11.2k

                              Topics

                              113.0k

                              Posts


                              Copyright 2019 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