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. General Discussion
  3. How to access Uservariables (Domoticz)

How to access Uservariables (Domoticz)

Scheduled Pinned Locked Moved General Discussion
6 Posts 3 Posters 2.9k 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.
  • P Offline
    P Offline
    Petervdam
    wrote on last edited by
    #1

    Hi there,

    I'm using Mysensors 2.0 and the latest version of Domoticz.

    I am looking for a way to access the uservariable in Domoticz, looked everyware but could not find it. Sure you can access VAR's beloning to the sensors but thats not what i want.

    Anyone solved this "problem" ?

    thanks, help would be appreciated,

    Peter

    S 1 Reply Last reply
    0
    • P Petervdam

      Hi there,

      I'm using Mysensors 2.0 and the latest version of Domoticz.

      I am looking for a way to access the uservariable in Domoticz, looked everyware but could not find it. Sure you can access VAR's beloning to the sensors but thats not what i want.

      Anyone solved this "problem" ?

      thanks, help would be appreciated,

      Peter

      S Offline
      S Offline
      sundberg84
      Hardware Contributor
      wrote on last edited by sundberg84
      #2

      @Petervdam -. Do you mean the raw data?
      Its inside the db file. Use some sort of SQL program to see them.
      Howto (Linux) http://domoticz.com/forum/viewtopic.php?t=11930
      Search "domoticz database sql" for more info

      (If you mean userdefined variables its found Setup -> More options -> User variables)

      Controller: Proxmox VM - Home Assistant
      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

      1 Reply Last reply
      0
      • P Offline
        P Offline
        Petervdam
        wrote on last edited by
        #3

        Hi,

        Sorry, i should be more clear, i want to access the userdefined (uservariables), from within the arduino code. I know you can use json call's , but thats not what i am looking for. I wanty to know if it's posible to access then directly from within a code (arduino).

        S 1 Reply Last reply
        0
        • T Offline
          T Offline
          tbowmo
          Admin
          wrote on last edited by
          #4

          It is not something that works out of the box, so you have to make a script of some kind, that picks up the user variable, and pushes it to a node, using whatever type you want to use with it.

          1 Reply Last reply
          0
          • P Petervdam

            Hi,

            Sorry, i should be more clear, i want to access the userdefined (uservariables), from within the arduino code. I know you can use json call's , but thats not what i am looking for. I wanty to know if it's posible to access then directly from within a code (arduino).

            S Offline
            S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by
            #5

            @Petervdam - you need to use the request() function and fetch a variable from your controller.
            Inside the controller you need to make a script that updates the variable with the info you want.

            I use request in my rain-sensor: https://forum.mysensors.org/topic/1950/domotiocz-rain-gauge/2

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

            1 Reply Last reply
            0
            • P Offline
              P Offline
              Petervdam
              wrote on last edited by
              #6

              Ok, Thanks Guy's thats what i needed!
              I'll create a dummy sensor and use that for I/O.

              1 Reply Last reply
              0

              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


              16

              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