Jump to content

Welcome to Smart Home Forum by FIBARO

Dear Guest,

 

as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.

 

As a member you can:

  •     Start new topics and reply to others
  •     Follow topics and users to get email updates
  •     Get your own profile page and make new friends
  •     Send personal messages
  •     ... and learn a lot about our system!

 

Regards,

Smart Home Forum by FIBARO Team


rvelthoen

Member
  • Posts

    174
  • Joined

  • Last visited

About rvelthoen

Profile information

  • Country
    the Netherlands
  • Gateway/s
    Home Center 2

Recent Profile Visitors

301 profile views

rvelthoen's Achievements

Learner

Learner (2/8)

12

Reputation

2

Community Answers

  1. It must do this @23:59 fibaro:setGlobal("Prod_end", prod_totaal) Like this, but automatic: local prod_totaal = fibaro:getGlobalValue('prod_totaal') local currentDate = os.date("*t"); if ((string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "10:36")) then fibaro:debug(prod_totaal) fibaro:setGlobal("Prod_end", prod_totaal); end
  2. But i have no trigger, i just want to write a value into a variable at 23:59.
  3. Hi My scene won't start every day at 23:59 If i run it manual it works just fine. --[[ %% autostart %% properties %% weather %% events %% globals --]] local prod_totaal = fibaro:getGlobalValue('prod_totaal') local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( ((currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "23:59") ) ) then fibaro:call(484, "setProperty", "ui.Label4.value" , ""); end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( startSource["type"] == "other" ) then fibaro:debug(prod_totaal) fibaro:setGlobal("Prod_end", prod_totaal); end end
  4. Be aware that the iRobot will be detected by PIR sensors when the alarm is on. Mine did...
  5. Tnx again Neo, but i get a syntax error near end. I don't see why...
  6. Seems to work, exept to reset the flag from true to false. if ( ( (currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) ) and ( tonumber(fibaro:getValue(26, "value")) > 3000 and flag == true ) ) then ( tonumber(fibaro:getValue(26, "value")) > 3000 and flag == false ) end
  7. In this scene, Fibaro device 26 triggers by sunlight (LUX 3000) the curtains to 50% close. When i adjust it manual, it goes right back to the 50% How do i overrule this scene? %% autostart %% properties 26 value %% weather %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( (currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) ) and ( tonumber(fibaro:getValue(26, "value")) > 3000 ) ) then fibaro:call(422, "setValue", "50"); end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( (currentDate.wday == 1 or currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6 or currentDate.wday == 7) ) and ( tonumber(fibaro:getValue(26, "value")) > 3000 ) or startSource["type"] == "other" ) then fibaro:call(422, "setValue", "50"); end end
  8. Tnx, but it is not working here.
  9. I have the same problem, icon not in app, only in webbrowser.
  10. I use de inplant as a rainsensor, works great, but the icon, the build in from Fibaro (rain_detector100.PNG) is only visible in the webinterface and not in the app. I use the app with a local IP (new white and old black app)
  11. Tnx cag014, that was the solution.
  12. I have a scene that must run when a device is ON, and at 10:46. The scene wil give my Nest thermostat the 19 degrees setpoint. It works, but it wil not wait for 10:46, it runs inmediatly. What is wrong with my code? --[[ %% autostart %% properties 427 value %% weather %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( ((currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) and string.format("%02d", currentDate.hour) .. ":" .. string.format("%02d", currentDate.min) == "10:46") ) and ( tonumber(fibaro:getValue(427, "value")) > 0 ) ) then fibaro:call(431, "setProperty", "ui.setpoint.value" , "19 °C"); end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( (currentDate.wday == 2 or currentDate.wday == 3 or currentDate.wday == 4 or currentDate.wday == 5 or currentDate.wday == 6) ) and ( tonumber(fibaro:getValue(427, "value")) > 0 ) or startSource["type"] == "other" ) then fibaro:call(431, "setProperty", "ui.setpoint.value" , "19 °C"); end end
  13. I use a Fibaro Wall Plug to switch mine on/off.
×
×
  • Create New...