Jump to content

Store Tag Temperature Value to a Variable


LarryCRetired

Recommended Posts

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

Posted (edited)

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
Posted

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

Posted (edited)

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
Posted

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.

Posted (edited)
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
Posted

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?

  • Haha 1
Posted (edited)
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.

×
×
  • Create New...