Quick App - Mettre a jour un QA tout les jours a 0h00
voici un bout de code pour mettre a jour un QuickApp tout les jours a minuit
function QuickApp:onInit()
self:debug("onInit")
self.refresh = 0
-- Boucle principale
self:loop(self.refresh)
end
----------------------------------------------------------
--- Boucle loop
----------------------------------------------------------
function QuickApp:loop(refresh)
local JourHeure = os.
It's not that straight forward....
However, you can leverage a library I have for that.
Add fibaroExtra.lua to your QA https://forum.fibaro.com/topic/54538-fibaroextra/
Then in your QA main:
local clim = 120
function QuickApp:updateClima()
self:updateView("label1", "text", tostring(fibaro.getValue(clim, "power")).."W")
end
function QuickApp:onInit()
self:debug(self.clima)
self:updateClima()
self:event({type='device', id=clima, property='power'},
fu