Duplicate Temp value into 2nd Vera?

How do i get the temperature sensor reported as a device on one vera, to be recreated in another one on the same LAN?

I have added a Qubino device wired into the shed floodlights, but this has a child temperature sensor now giving me an accurate (!?) outside temperature value. This child is created on a Vera Edge to use the Zwave+ range.
On a separate Vera lite, same subnet and LAN network, i have a number of Smart Virtual Thermostats. I would like to add the external temperature to the V’stat for efficiency.

I think the V’stat needs to pull the external temperature from a device that exists on the Edge, maybe a virtual sensor?
Polling frequency isn’t a problem, every 30mins or so.

Any ideas how to do this?
thanks.

[ol][li]create a new temperature device on the Vera where you want the new measurement[/li]
[li]add a scene to that Vera with, say, a 30 minute timer as your polling interval[/li]
[li]add a couple of lines of Lua code to the scene to request the temperature from the other Vera and populate your new local device with that value[/li][/ol]

So you already have the basic approach correct.

Thank you.
I’ve given it a go, sorry, never done this before.

Device created. Got the variable in there, i think.
It’s got the temperature sensor icon on the device. adding the variable:
Service is urn:upnp-org:ServiceId:TemperatureSensor1
Variable is CurrentTemperature
Value i put as 10

Seems ok, but the temperature is not reported on the main Vera dashboard, although it’s there going into settings/advanced. Seem right?

For the lua code, i have so far:

local ShedTemp = luup.variable_get(“http://EDGE_IP:3480/data_request?id=variableget&DeviceNum=44&serviceId=urn:upnp-org:ServiceId:TemperatureSensor:1&Variable=CurrentTemperature”)
luup.variable_set(“urn:upnp-org:serviceId:TemperatureSensor1”, “CurrentTemperature”, ShedTemp, 272)

Does that seem right, as it’s not working?
thanks.

This works for me:

local status, result = luup.inet.wget(“http://”…vera…“:3480/data_request?id=variableget&DeviceNum=12&serviceId=urn:upnp-org:serviceId:TemperatureSetpoint1&Variable=CurrentSetpoint” ,3)

luup.variable_set(“urn:upnp-org:serviceId:TemperatureSensor1”,“CurrentSetpoint”,result, 24)

Brilliant.

All working, the code is picking it up and reporting fully in the device too.

thank you.