FIBARO HC3 LUA: Z-Wave Danfoss RS setpoint sync with Danfoss / POPP thermostatic valves

FIBARO HC3 LUA: Z-Wave Danfoss RS setpoint sync with Danfoss / POPP thermostatic valves

LUA script for FIBARO HC3

We have prepared a simple LUA script for you that allows to utilize the full functionality of the Danfoss Z-Wave room sensor.

The Danfoss Z-Wave room sensor, besides measuring the temperature and reporting to the Z-Wave controller like FIBARO HC3, allows to manually set the temperature or to set the temperature using the Z-Wave controller.

This scene allows to synchronize the temperature from the wall thermostat (Danfoss Z-Wave room sensor) into one or more Z-Wave radiator stations like POPP Thermostatic Heads or Danfoss Living Connect radiator valves.

 

LUA Script

FIBARO HC3 LUA Z-Wave Danfoss RS

FIBARO HC3 LUA Z-Wave Danfoss RS

In this script you must change the following:

 

DECLARATIONS (Conditions/Triggers)

Line 3 – ID of your Danfoss Z-Wave room sensor (thermostat)

 

ACTIONS

Line 1 – ID of your Danfoss Z-Wave room sensor (thermostat)

Line 2 – IDs of your Z-Wave thermostatic heads, e.g. Danfoss Living Connect or POPP thermostatic heads

 

DECLARATIONS (Conditions/Triggers)

{
  conditions = { {
      id = 30,
      isTrigger = true,
      operator = "!=",
      property = "heatingThermostatSetpoint",
      type = "device",
      value = 5
    } },
  operator = "all"
}

 

ACTIONS

local fromID = 30 -- Hlavny termostat Danfoss RS senzor
local toID = {21,27} -- Z-Wave POPP radiatorove hlavice

local temp_wish = fibaro.getValue(fromID, "heatingThermostatSetpoint")


for i=1,#toID do 
    local name = fibaro.getName(toID[i])
    if ( fibaro.getValue(toID[i], "heatingThermostatSetpoint") ~= fibaro.getValue(fromID,"heatingThermostatSetpoint") ) then
        fibaro.call(toID[i], "setHeatingThermostatSetpoint", temp_wish)
    end
end
fibaro.debug("","Teploty boli synchronizovane")

 

There are not many settings in this script. The most important point is the setting of the correct thermostat ID in block DECLARATIONS (Conditions/Triggers) Line 3 of the script. This point starts the scene, detects if the the temperature in the thermostat has been changed either manually or using a controller.

Besides this, the local variables "fromID" and "toID" must include the correct ID. "FromID" is the ID of the device from which you can read out the temperature (thermostat), and "toID" is the ID(s) of the device(s) in which you want set the temperature.

After you have carried out all the settings the scene is called out by a change in the thermostat and then the changed temperature is set in the thermostatic head.

Zanechajte nám Váš názorZanechajte odpoveď

Vyhľadávanie v blogu

Najnovšie názory

Recently Viewed

No products

Menu

Compare 0