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


Search the Community

Showing results for tags 'time window'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • FIBARO Community
    • FIBARO Portal and Forum policy
    • FIBARO
    • Say hello!
    • Off-topics
  • FIBARO Update
    • FIBARO System Update
    • FIBARO Mobile Update
  • FIBARO Community Support
    • Scenes and Interface
    • FIBARO Products
    • FIBARO Mobile
    • FIBARO HomeKit
    • FIBARO Assistant Integrations
    • Other Devices / Third-party devices
    • Tutorials and Guides
    • Home Automation
    • Suggestions
  • FIBARO Społeczność
    • FIBARO
    • Przywitaj się!
    • Off-topic
  • FIBARO Aktualizacja
    • FIBARO System Aktualizacja
    • FIBARO Mobile Aktualizacja
  • FIBARO Wsparcie Społeczności
    • Sceny i Interfejs
    • FIBARO Urządzenia
    • FIBARO Mobilnie
    • FIBARO HomeKit
    • Integracja z Amazon Alexa i Google Home
    • Urządzenia Firm Trzecich
    • Poradniki
    • Automatyka Domowa
    • Sugestie

Categories

  • Scenes
  • Virtual Devices
  • Quick Apps
  • Icons

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Facebook


Google+


Skype


Website URL


WhatsApp


Country


Gateway/s


Interests

Found 1 result

  1. Hi folks, As I regularly forget to bring the garbage (plastic, paper, waste) out the day it is collected, I thought it might be good to get a reminder that day (about once a month, but irregular pick ups based on a print calendar). I want to use the door sensor at the main door as trigger and have a list of dates which are checked. Then the variable for Sonos_Music is set and played. But this would be triggering every time I open the front door, so I want to limit it to one time between say 7:00 and 9:00. How can I do this? I've converted a Blockscene into LUA and deleted the time out of the scheduler line, cause this would only work if I open the door at the exact time. What I also don't understand is the second almost identical code generated automatically when switching to LUA, cause this never had the time in it, just the date. It confused the one that is too simple that he needs a reminder for the garbage. Heres my code so far - Any hint/help is very much appreciated. --[[ %% autostart %% properties 407 value %% weather %% events %% globals --]] local sourceTrigger = fibaro:getSourceTrigger(); function tempFunc() local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(407, "value")) > 0 ) and ( string.format("%04d-%02d-%02d", currentDate.year, currentDate.month, currentDate.day) == "2018-08-02" ) or ( string.format("%04d-%02d-%02d", currentDate.year, currentDate.month, currentDate.day) == "2018-09-27" ) ) then fibaro:setGlobal("SONOS_MUSIC", "readyshare/Media/audio/Plastikmuell.m4a"); fibaro:call(377, "pressButton", "2"); end setTimeout(tempFunc, 60*1000) end if (sourceTrigger["type"] == "autostart") then tempFunc() else local currentDate = os.date("*t"); local startSource = fibaro:getSourceTrigger(); if ( ( tonumber(fibaro:getValue(407, "value")) > 0 ) and ( string.format("%04d-%02d-%02d", currentDate.year, currentDate.month, currentDate.day) == "2018-08-02" ) or ( string.format("%04d-%02d-%02d", currentDate.year, currentDate.month, currentDate.day) == "2018-09-27" ) or startSource["type"] == "other" ) then fibaro:setGlobal("SONOS_MUSIC", "readyshare/Media/audio/Plastikmuell.m4a"); fibaro:call(377, "pressButton", "2"); end end
×
×
  • Create New...