So, i have try with the device in place and it work Big big big thanks to you @akbooer
I have just an other problem, the device is away than the zwave network (vera edge have less scope than my first eedomus) because i have try it 3 years ago and it worked with eedomus.
Just to be perfect, how can i reduc the number behind the decimal? (see the picture)
Idealy, I would have only one decimal like 10,1%
PS: I modified the first post with a tutorial , it will save the gents have to read the entire thread
Use the PLEG plugin for the computation
Use the MultiString plugin for the display[/quote]
How do you use pleg to write out the value?
I can get pleg to do computation and do an action if the result is higher/lower that a value but Iâd love to be able to send my average house temperature to tasker via the multi string plugin
I tried to integrate your rounding code but I did not happen.
I 'd ask well one last little helping hands to finish this topic
thank you in advance
I have try this but donât work
[code]-- VMC efficiency calculation
local ID = {
Outside = 21, â the new outside air
Supply = 20, â the new supply air
Dirty = 22, â the dirty indoor air
Result = 23, â PICK YOUR OUTPUT DEVICE ID HERE
}
local SID = {
temperature = âurn:upnp-org:serviceId:TemperatureSensor1â,
efficiency = âurn:micasaverde-com:serviceId:HumiditySensor1â,
}
local function get_temp (id)
local t = luup.variable_get (SID.temperature,âCurrentTemperatureâ,id)
return t
end
local outside_temp = get_temp (ID.Outside)
local supply_temp = get_temp (ID.Supply)
local dirty_temp = get_temp (ID.Dirty)
if dirty_temp > outside_temp then
local VMC_efficiency = ((supply_temp - outside_temp)/(dirty_temp - outside_temp))*200
local round = â%0.0fâ
print (round: format ( 1.6))
print (round: format (-1.6))
luup.variable_set (SID.efficiency, âCurrentLevelâ, VMC_efficiency, ID.Result)
end[/code]