Thanks, I used D_TemperatureSensor1.xml template for creating a new virtual temperature device (App → Develop App → Create device). I see the new device into “device” section but if get its settings there insn’t any variable “CurrentTemperature” as specifed into xml file.
After i try to set it from HTTP get (http://ip_address:3480/data_request?id=variableset&…) is it compared into device settings. Is it normal?
Also if I try to use this virtual device into scene it signed with “no aviable to scene” (no entry icon).
antani, are you pushing the temperature from Arduino to Vera, or pulling the temperature to Vera from the Arduino? Who is doing the HTTP request? My example assumed pulling, so it may not be as useful to you.
If you are pushing, you have to get the variableset command just right. Share your exact command in full.
The no-entry on temperature sensors is normal. They have no controls that a scene can activate.
:-[ :-[
I understood the difference reading definition file,
Thank you Garrett
Another question, Is there a simple way for understand when last temperature update done?
In my case i want to exclude to use (on vera) old temperature value if my arduino freeze o goes down.
For update LastUpdate variable when i pull the CurrentTemperature value i need to use a scene (with trigger and of course luup code) or is there a more simple method?
Are you pushing the data or pull it from the arduino? Just issue a variable set of urn:micasaverde-com:serviceId:HaDevice1 with LastUpdate as the variable and the unix time for the value when pushing or pulling the temperature.
Where Value=1369214563 is the unix timestamp. You can than retrieve this value to check when the last time the temperature was updated. Is your Arduino on the same network as your Vera or on separate networks? If on the same network, why not use:
I didn’t find any giude or tutorial for LUUP or advance device use.
Before to set “LastUpdate” variable with HTTP i need to add a new device (urn:micasaverde-com:serviceId:HaDevice1) ??
Also, with Arduino is not simple to get unix timestamp. So, is more convenient to get temperature value from Vera directly to Arduino with HTTP? In this case is more simple to update LastUpdate var?
Thank you so much, again!
Best Home Automation shopping experience. Shop at Ezlo!