Jump to content
View in the app

A better way to browse. Learn more.

Universal Devices Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Store Tag Temperature Value to a Variable

Featured Replies

Posted

Hoping someone can help with this rest command.  I am using v5.0.16 and would like to copy a Tag Temperature to an integer variable in the ISY.  Shown below is Rest Screen but it does not work.  When testing, I get a Resource Response of N/A and a message that it failed.  Must be something simple that I am missing.

The variable I am using has a precision of 1.  The host is the IP of my ISY.  The Tag Address in the Path is used in an email, (I did a copy to make sure no error in typing) so I know it is correct.

Thanks in advance for your help.

 

1040210621_ResourceForTagTemp.thumb.JPG.658bb3b49d563d008749eed2267cf6a8.JPG

Not sure if I understand but if you just want to copy a tag temperature to a variable you would need to do this.

If
   - No Conditions - (To add one, press 'Schedule' or 'Condition')
Then
        $Tag_Temp  = 'Polisy Nodes / Tags / Home / 0 Test' Temperature °F
Else
   - No Actions - (To add one, press 'Action')

 

Also if you wanted to save it so that it won't be lost on a reboot you could add this line.

Then
        $Tag_Temp  = 'Polisy Nodes / Tags / Home / 0 Test' Temperature °F
        $Tag_Temp Init To $Tag_Temp
 
Else
   - No Actions - (To add one, press 'Action')
 

Edited by garybixler

  • Author

Garybixler

unfortunartely I don't have a Polisy. I have an RPI bringing in my Tag data.  I will see if I can follow your structure and do it with the Tag Node server

thank you

  • Author

Garybixler

i am doing that now with a python script but I am looking to see if I could do it with the Resource Module.

thanks again

i should mention that I found my current approach with python is not as reliable as I would like

Edited by LarryCRetired
Expand answer

  • Author

garybixler

Took me a while to understand what you were saying about two way communication.  But my brain finally figured it out.  I was using a old post where someone was getting data from the old climate module and storing in a variable.

I received an email this morning for 20% off of a Polisy.  Going to look into that.

Thanks again for your time and helping me with this.

57 minutes ago, LarryCRetired said:

garybixler

Took me a while to understand what you were saying about two way communication.  But my brain finally figured it out.  I was using a old post where someone was getting data from the old climate module and storing in a variable.

I received an email this morning for 20% off of a Polisy.  Going to look into that.

Thanks again for your time and helping me with this.

I use the Kumoapp server to directly inject my Tag values. It requires no extra hardware and is easy.

 

Edited by larryllix

  • Author

Larryllix

i probably need to look at that.  Thanks for the info.  I really don't want to add any hardware.  I probably will never own a Tesla even though I know who he was?

37 minutes ago, LarryCRetired said:

Larryllix

i probably need to look at that.  Thanks for the info.  I really don't want to add any hardware.  I probably will never own a Tesla even though I know who he was?

Yeah. I am not sure I want a car that runs on 6216 pc.  16850, size A lithium cells. One of the nastiest chemicals on the planet, so far. :)

Edited by larryllix

Guest
This topic is now closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.