first commit

This commit is contained in:
Souti
2025-03-06 11:09:58 +01:00
commit 11f7d440ff
330 changed files with 38306 additions and 0 deletions

View File

@@ -0,0 +1,22 @@
--[[
Assume you have two temperature sensors and a third dummy sensor that should be the
difference of these two sensors (e.g. you want to see the difference between water temperature
going into a radiator and the temperature of the water going out of it
]]--
return {
active = true,
on = {
['timer'] = {'every 5 minutes'}
},
execute = function(domoticz)
local inTemp = domoticz.devices('Temp in').temperature
local outTemp = domoticz.devices('Temp out').temperature
local delta = outTemp - inTemp -- how much did the temperature drop?
-- update the dummy sensor
domoticz.devices('Delta temp').updateTemperature(delta)
end
}