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


  • 1

Question

Posted

Hi,

To use the weather condition in the Fibaro HC3 manual you have the example below, but how do I do it when the start of the time is end of a day and ends at the beginning of the other day (eg start 5:30 pm and end 06:00 am). Thanks

 

{
    operator = "all",
    conditions = {
        {
            type = "date",
            property = "cron",
            operator = "match>=",
            value = {"0", "9", "*", "*", "*","*"}
        },
        {
            type = "date",
            property = "cron",
            operator = "match<",
            value = {"0", "10", "*", "*", "*","*"}
        }
    }
}

5 answers to this question

Recommended Posts

  • 0
  • Inquirer
  • Posted

    anyone with any suggestions please.
    Why is it that when I set the scene to start at 5pm one day and end at 6am the next day, following the model in the Fibaro manual, it starts correctly but doesn't stop at 6am?

    thanks

    • 0
    Guest deSmartHomeChef
    Posted

    Hi Jorge,

     

    What are you trying to achieve in this time period? Since that not clear, its harder to help you.

     

    I would suggest to build the basic function in a block scene, using the time function 'Time Range', a trigger and actions.

    Then translate this Block scene to LUA to see the right code for the condition.

     

    Hope this helps. Good luck!

    • 0
    Posted
    23 hours ago, jorge rintaro said:

    anyone with any suggestions please.
    Why is it that when I set the scene to start at 5pm one day and end at 6am the next day, following the model in the Fibaro manual, it starts correctly but doesn't stop at 6am?

    thanks

    Scenes are triggered by conditions marked with

    isTrigger=true

    In your example none of your cron conditions are marked isTrigger and will only serve as filter conditions for other condition triggers.

    The example in the manual is also only a filter condition (no isTrigger=true) and will not trigger the rule by itself

    Do you have other triggers that start your scene?

    If you mark your cron conditions as triggers they will trigger the scene every minute for the intervals you have specified. Is that what you want? 

    Please login or register to see this link.

    l:

    • isTrigger - is the condition also a trigger:
      • true - is a trigger
      • false - is only a condition (default)
        With time conditions, you should use isTrigger carefully, especially for time intervals.
        Every minute the system emits an event that results in checking scenes triggers. Inappropriate use of the timer can trigger the scene every minute.
    • 0
  • Inquirer
  • Posted
    1 hour ago, deSmartHomeChef said:

    Oi Jorge,

     

    O que você está tentando alcançar neste período de tempo? Como isso não está claro, é mais difícil ajudá-lo.

     

    Eu sugeriria construir a função básica em uma cena de bloco, usando a função de tempo 'Time Range', um gatilho e ações.

    Em seguida, traduza esta cena do Bloco para LUA para ver o código correto para a condição.

     

    Espero que isto ajude. Boa sorte!

    SmartHomeChef @
    thank you very much for your attention and tips ......
    I had already done it in blocks and converted it into lua, but strangely the Scene didn't work in the same way...... the Scene is simple (movement violated between 5:30 pm one day until 06:00 am the other day, every day of the week , the ID light 23 turns on) ..... the Scene starts at 5:30 pm, but it doesn't stop at 6:00 am... I believe the problem is in "all" and "any"
    I will try again....thanks

    • 0
  • Inquirer
  • Posted
    21 minutes ago, jgab said:

    As cenas são acionadas por condições marcadas com

    isTrigger = true

    Em seu exemplo, nenhuma das suas condições cron está marcada como isTrigger e servirá apenas como condições de filtro para outros acionadores de condição.

    O exemplo no manual também é apenas uma condição de filtro (sem isTrigger = true) e não acionará a regra por si só

    Você tem outros gatilhos que iniciam sua cena?

    Se você marcar suas condições cron como gatilhos, eles irão disparar a cena a cada minuto para os intervalos que você especificou. É isso que você quer? 

    Please login or register to see this link.

    l:

    • isTrigger - a condição também é um gatilho:
      • true - é um gatilho
      • false - é apenas uma condição (padrão)
        Com as condições de tempo, você deve usar isTrigger com cuidado, especialmente para intervalos de tempo.
        A cada minuto, o sistema emite um evento que resulta na verificação dos gatilhos das cenas. O uso inadequado do cronômetro pode acionar a cena a cada minuto.

    Jgab@, thanks so much for the info,
    forgive me, i wasn't very clear, i should have put my scene.........it has a "movement" as a trigger.....the start and end time are just a condition.. .. if the movement is violated within those hours (17:00 - 06:00), turn on the lights.... strangely the scene starts at 17:30, but doesn't stop at 6:00.... as I said to SmartHomeChef @, I believe the problem is in the definition of "all" and "anyone" in the scene...... the manual example shows the time increase (9:00 - 10:00) my question changes something in the schedule/method when time is decreasing (17:00 - 06:00)?
    thanks

    Join the conversation

    You can post now and register later. If you have an account, sign in now to post with your account.

    Guest
    Answer this question...

    ×   Pasted as rich text.   Paste as plain text instead

      Only 75 emoji are allowed.

    ×   Your link has been automatically embedded.   Display as a link instead

    ×   Your previous content has been restored.   Clear editor

    ×   You cannot paste images directly. Upload or insert images from URL.

    ×
    ×
    • Create New...