buttons refresh scene


/ Published in: Lua
Save to your folder(s)

buttons refresh scene for Fibaro HC2


Copy this code and paste it in your HTML
  1. --[[
  2. %% properties
  3. %% autostart
  4. %% globals
  5. --]]
  6.  
  7. while true do
  8. -- wunderground weather
  9. -- fibaro:call(96, "pressButton", "1");
  10. -- fibaro:debug(fibaro:getValue(96, "log"))
  11. -- wunderground wind part
  12. -- fibaro:call(97, "pressButton", "1");
  13. -- fibaro:debug(fibaro:getValue(97, "log"))
  14.  
  15. -- compteur EDF
  16. fibaro:call(125, "pressButton", "1");
  17. fibaro:debug(fibaro:getValue(125, "log"))
  18. -- netatmo indoor module
  19. fibaro:call(126, "pressButton", "1");
  20. fibaro:debug(fibaro:getValue(126, "log"))
  21. -- netatmo outdoor module
  22. fibaro:call(127, "pressButton", "1");
  23. fibaro:debug(fibaro:getValue(127, "log"))
  24. -- compteur d'eau
  25. fibaro:call(128, "pressButton", "1");
  26. fibaro:debug(fibaro:getValue(128, "log"))
  27. -- koubachi
  28. fibaro:call(129, "pressButton", "1");
  29. fibaro:debug(fibaro:getValue(129, "log"))
  30.  
  31. -- infinite loop to refresh virtual buttons log
  32. fibaro:sleep(6*60*1000);
  33. end

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.