Hi, I am getting readings in fahrenheit. I would like them to be in celsius. Anyone know how to do this?
Ok no one has any thoughts…
How about I write some luup code to replace the F value with the C value.
I would have to code something like this
luup.call_action(“urn:upnp-org:serviceId:TemperatureSensor1”, “SetTarget”, {newTargetValue = “0”},27)
the xml file is attached.
Is there a document somewhere explaining how to contruct these luup.call_action("urn:upnp-org:serviceId type of calls: I understand the bit about serviceID, but the rest I am not sure about.
My idea would be to add a scene that is triggered by a change in temperature, exceute the code to convert the F value to C. Is this even possible?
right I’ve coded
luup.variable_set(“TemperatureSensor:1”,“CurrentTemperature”,30,50)
executed it and the log suggests it worked
JobHandler_LuaUPnP::HandleActionRequest argument Code=luup.variable_set(“TemperatureSensor:1”,“CurrentTemperature”,22,50) <0x2de81680>
06 09/17/13 14:46:37.856
Device_Variable::m_szValue_set device: 50 service: TemperatureSensor:1 variable: CurrentTemperature was: 22 now: 22 #hooks: 0 upnp: 0 v:(nil)/NO
however the vera icon hasn’t been updated to reflect the change.
What else do I need to do?
Normally all you need to do to get Celsius readings is to set your VERA to use Metric ?C under “Setup” -> “Location”
I wonder if maybe you have the same issue as I’m having see here -> http://forum.micasaverde.com/index.php/topic,10951.60.html
http://wiki.micasaverde.com/index.php/Luup_UPnP_Variables_and_Actions
That’s not a recognized service ID. Try:
luup.variable_set("urn:upnp-org:serviceId:TemperatureSensor1","CurrentTemperature",30,50)
But I think you are solving the wrong problem by doing this. Are you sure that you have configured your Vera for metric units?
My location is set to England Southampton. I also have the CurrentCost power meter that reports temperature in C not F.
See my response to your post in the other thread. (Summary: your location does not directly affect what units your Vera uses for temperature.)
Edit: other thread: http://forum.micasaverde.com/index.php?topic=16630.msg127432#msg127432