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. Domoticz
  4. Domoticz help using V_VAR1 and S_CUSTOM

Domoticz help using V_VAR1 and S_CUSTOM

Scheduled Pinned Locked Moved Domoticz
14 Posts 6 Posters 5.8k Views 7 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.
  • Boots33B Boots33

    @AWI Thanks for that, I suspected that may be the case. I have not done much with Domoticz yet so will have a look at using variables and see what i come up with. I am only using Domoticz to capture the data, form there i will export it to my weather page.

    AWIA Offline
    AWIA Offline
    AWI
    Hero Member
    wrote on last edited by AWI
    #4

    @Boots33 For what I know V_VAR's are not available in Domoticz for processing. Their main purpose is for temporary storages of MySensors values. V_TEXT is more flexible and can be processed from lua in Domoticz.

    Just thinking freely: What is the unit of lightning intensity (love you project by the way ;-))? Reading from an article The estimated peak power per lightning stroke is 10^12 watts (1,000,000,000,000 watts or 1,000 Giga Watts). The total energy in a large thunderstorm is thought to be enough to power the whole of the USA for 20 minutes.. , this would be Watts. So V_WATT (S_POWER) could do the trick.

    Boots33B 1 Reply Last reply
    0
    • AWIA AWI

      @Boots33 For what I know V_VAR's are not available in Domoticz for processing. Their main purpose is for temporary storages of MySensors values. V_TEXT is more flexible and can be processed from lua in Domoticz.

      Just thinking freely: What is the unit of lightning intensity (love you project by the way ;-))? Reading from an article The estimated peak power per lightning stroke is 10^12 watts (1,000,000,000,000 watts or 1,000 Giga Watts). The total energy in a large thunderstorm is thought to be enough to power the whole of the USA for 20 minutes.. , this would be Watts. So V_WATT (S_POWER) could do the trick.

      Boots33B Offline
      Boots33B Offline
      Boots33
      Hero Member
      wrote on last edited by
      #5

      @AWI Thanks once again, I had a quick look at Domoticz today and used json to list all variables. the result only showed variables that I had defined in Domoticz myself and not the V_VAR1 I was looking for. So i think you are right that variable is not available for processing. I will now look at using V_TEXT or another type as you have suggested. As to the intensity reading, from the AS3935 data sheet....

      8.9.2 Energy Calculation
      If the received signal is classified as lightning, the energy is calculated. The result of the energy calculation is then stored in the registers
      REG0x06[4:0], REG0x05[7:0] and REG0x04[7:0]. This value is just a pure number and has no physical meaning.

      So from that i would think it can only be used as rough guide with no real scientific value. I think Sparkman said he has seen values in the high hundreds during storms, Our storm season is still a way off yet for me so will have to wait and see what i get

      Once again thanks for your input AWI. I have to say I am having a great time playing with MySensors, still very much on a learning curve but my hat goes off to the devs for an awesome product. :)

      AWIA 1 Reply Last reply
      0
      • Boots33B Boots33

        @AWI Thanks once again, I had a quick look at Domoticz today and used json to list all variables. the result only showed variables that I had defined in Domoticz myself and not the V_VAR1 I was looking for. So i think you are right that variable is not available for processing. I will now look at using V_TEXT or another type as you have suggested. As to the intensity reading, from the AS3935 data sheet....

        8.9.2 Energy Calculation
        If the received signal is classified as lightning, the energy is calculated. The result of the energy calculation is then stored in the registers
        REG0x06[4:0], REG0x05[7:0] and REG0x04[7:0]. This value is just a pure number and has no physical meaning.

        So from that i would think it can only be used as rough guide with no real scientific value. I think Sparkman said he has seen values in the high hundreds during storms, Our storm season is still a way off yet for me so will have to wait and see what i get

        Once again thanks for your input AWI. I have to say I am having a great time playing with MySensors, still very much on a learning curve but my hat goes off to the devs for an awesome product. :)

        AWIA Offline
        AWIA Offline
        AWI
        Hero Member
        wrote on last edited by
        #6

        @Boots33 :thumbsup: as "energy" here has no real dimension you best make an own interpretation with Watt or Joul.

        Great to hear you are having fun too.

        1 Reply Last reply
        1
        • Boots33B Boots33

          I have built a lightning detector which all seems to be working fine looking at the serial monitor. with no storms around i decided to send some dummy data to Domoticz so I could see the results. The sketch uses S_CUSTOM and V_VAR1 to send the intensity readings and they are seen by the gateway but do not show up as a device. 0_1469527014058_Screenshot (133).jpg

          In the top of the device list I can see the distance reading and the light switches but no intensity reading. Can anyone tell me the way to access the S_CUSTOM data.

          0_1469527204364_Screenshot (132).jpg

          Also the S_DISTANCE device sems to read in CM only but i Guess that is hard coded in so will have to live with that

          0_1469527431155_Screenshot (134).jpg

          alexsh1A Offline
          alexsh1A Offline
          alexsh1
          wrote on last edited by
          #7

          @boots33 dId you manage to get the distance in km or you are fine with cm? :-)

          Boots33B 1 Reply Last reply
          0
          • alexsh1A alexsh1

            @boots33 dId you manage to get the distance in km or you are fine with cm? :-)

            Boots33B Offline
            Boots33B Offline
            Boots33
            Hero Member
            wrote on last edited by
            #8

            @alexsh1 I ended up using the dust sensor type for both readings. In Domoticz it allows you to set the letters to be used after the number so was easy to just add km to the end.

            The original post where using dust was discussed is here

            alexsh1A 1 Reply Last reply
            0
            • Boots33B Boots33

              @alexsh1 I ended up using the dust sensor type for both readings. In Domoticz it allows you to set the letters to be used after the number so was easy to just add km to the end.

              The original post where using dust was discussed is here

              alexsh1A Offline
              alexsh1A Offline
              alexsh1
              wrote on last edited by
              #9

              @boots33 Thanks - I'll check it out. I am using this sensor with another Lipo charging board with BME280+Si7021 and solar panel. I can see you moved the sensor into a seperate enclose? I am also running it on a battery.

              1 Reply Last reply
              0
              • dbemowskD Offline
                dbemowskD Offline
                dbemowsk
                wrote on last edited by
                #10

                So since this is regarding the topic of V_VAR1, I had some questions. One of the reasons that I switched from Domoticz to Vera was because I had built the irrigation controller from the build section which utilizes V_VAR1 - V_VAR3 for each irrigation valve to deal with configuration things between the HA controller and the irrigation node. Back when I switched controllers, the V_VARx variables were not able to work with this. I thought I had read something either on here or the Domoticz forums that said that that was working now. I for the life of me cannot find out where I saw that. So my questions are, first, are the V_VARx variables working? And if they are working, are they accessible from a device like the irrigation node?

                Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                alexsh1A 1 Reply Last reply
                0
                • dbemowskD dbemowsk

                  So since this is regarding the topic of V_VAR1, I had some questions. One of the reasons that I switched from Domoticz to Vera was because I had built the irrigation controller from the build section which utilizes V_VAR1 - V_VAR3 for each irrigation valve to deal with configuration things between the HA controller and the irrigation node. Back when I switched controllers, the V_VARx variables were not able to work with this. I thought I had read something either on here or the Domoticz forums that said that that was working now. I for the life of me cannot find out where I saw that. So my questions are, first, are the V_VARx variables working? And if they are working, are they accessible from a device like the irrigation node?

                  alexsh1A Offline
                  alexsh1A Offline
                  alexsh1
                  wrote on last edited by
                  #11

                  @dbemowsk sadly, I understand from Domoticz forum, they are not working. Or implementation has to be different with Domoticz variables.

                  1 Reply Last reply
                  0
                  • P Offline
                    P Offline
                    pjr
                    wrote on last edited by pjr
                    #12

                    @dbemowsk said in Domoticz help using V_VAR1 and S_CUSTOM:

                    So my questions are, first, are the V_VARx variables working? And if they are working, are they accessible from a device like the irrigation node?

                    There is the current state of V_VARx variables in domoticz: MySensors set and send V_VAR

                    And there is what you can store/request: hardware/MySensorsBase.cpp#L2241

                    dbemowskD 1 Reply Last reply
                    0
                    • P pjr

                      @dbemowsk said in Domoticz help using V_VAR1 and S_CUSTOM:

                      So my questions are, first, are the V_VARx variables working? And if they are working, are they accessible from a device like the irrigation node?

                      There is the current state of V_VARx variables in domoticz: MySensors set and send V_VAR

                      And there is what you can store/request: hardware/MySensorsBase.cpp#L2241

                      dbemowskD Offline
                      dbemowskD Offline
                      dbemowsk
                      wrote on last edited by
                      #13

                      @pjr that is good news. I will have to look into how to use those. When i switched to my vera controller from domoticz, they hadn't implemented that yet, and that was one of my reasons for switching.

                      Vera Plus running UI7 with MySensors, Sonoffs and 1-Wire devices
                      Visit my website for more Bits, Bytes and Ramblings from me: http://dan.bemowski.info/

                      T 1 Reply Last reply
                      0
                      • dbemowskD dbemowsk

                        @pjr that is good news. I will have to look into how to use those. When i switched to my vera controller from domoticz, they hadn't implemented that yet, and that was one of my reasons for switching.

                        T Offline
                        T Offline
                        tropicaxarquia
                        wrote on last edited by
                        #14

                        @dbemowsk Did you find a way to access the domoticz variables?

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


                        22

                        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