/ Published in: Lua
buttons refresh scene for Fibaro HC2
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
--[[ %% properties %% autostart %% globals --]] while true do -- wunderground weather -- fibaro:call(96, "pressButton", "1"); -- fibaro:debug(fibaro:getValue(96, "log")) -- wunderground wind part -- fibaro:call(97, "pressButton", "1"); -- fibaro:debug(fibaro:getValue(97, "log")) -- compteur EDF fibaro:call(125, "pressButton", "1"); fibaro:debug(fibaro:getValue(125, "log")) -- netatmo indoor module fibaro:call(126, "pressButton", "1"); fibaro:debug(fibaro:getValue(126, "log")) -- netatmo outdoor module fibaro:call(127, "pressButton", "1"); fibaro:debug(fibaro:getValue(127, "log")) -- compteur d'eau fibaro:call(128, "pressButton", "1"); fibaro:debug(fibaro:getValue(128, "log")) -- koubachi fibaro:call(129, "pressButton", "1"); fibaro:debug(fibaro:getValue(129, "log")) -- infinite loop to refresh virtual buttons log fibaro:sleep(6*60*1000); end