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. Possibility to add custom variables

Possibility to add custom variables

Scheduled Pinned Locked Moved Feature Requests
3 Posts 2 Posters 1.8k 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.
  • KnuppelK Offline
    KnuppelK Offline
    Knuppel
    wrote on last edited by
    #1

    Setup: Arduino Dallas temperature sensor, in combination with Vera Serial Gateway.
    I'm trying to compare LastTemperature value to CurrentTemperature so I can start the bathroomfan, when temperature rises. Doing so using Vera's 'temperature goes above/below' is too slow. The hot water pipe cools down too slowly.

    Problem is, there is only 1 variable sent (CurrentTemperature). I can add custom variables to a temperature device in Vera, but can they be updated by my sketch / Vera Arduino nodes? If so how?

    1 Reply Last reply
    0
    • KnuppelK Offline
      KnuppelK Offline
      Knuppel
      wrote on last edited by
      #2

      I have a workaround installed now. It's not pretty though. :grin:
      Created a second temperature sensor in my sketch and did the mathmetics there also. In Vera I monitor this device for +2 or -2.

           send(msg.setSensor(0).set(temperature,1));
            // Custom
            temp_diff=temperature-lastTemperature[0];
            Serial.println("Temperatures compared: ");
            Serial.println(temp_diff);
            send(msg.setSensor(1).set(temp_diff,1));
      
      T 1 Reply Last reply
      1
      • KnuppelK Knuppel

        I have a workaround installed now. It's not pretty though. :grin:
        Created a second temperature sensor in my sketch and did the mathmetics there also. In Vera I monitor this device for +2 or -2.

             send(msg.setSensor(0).set(temperature,1));
              // Custom
              temp_diff=temperature-lastTemperature[0];
              Serial.println("Temperatures compared: ");
              Serial.println(temp_diff);
              send(msg.setSensor(1).set(temp_diff,1));
        
        T Offline
        T Offline
        TheoL
        Contest Winner
        wrote on last edited by
        #3

        @Knuppel great and creative solution.

        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


        17

        Online

        12.1k

        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