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


  • 0

How to set up a "month Counter" in HC3 ?


Question

Posted

In my old HC2 I had a "Month Counter" . It was set up by establishing a 'Variable' called Month with an initial value of 0.  It had a Scene that used a trigger " day of Month at Exact Time " to Then action Month += 01. This on the first of each month the counter called Month increased by 1.    I now have a HC3 but I can't find a way of triggering an Action on the first day of each month.    Any ideas would be appreciated. 

5 answers to this question

Recommended Posts

  • 0
Posted

Hi Mike,

 

This is easy. In the scene panel, you should create new scene base on block and use as trigger item from Time group - Days of month and select 1 as the beginning of each month.

  • 0
Posted

Hi Mike - Do you still have the HC2?

 

I suggest posting your HC2 scene (was it a block scene?), maybe someone can help translate it to HC3.

  • 0
Posted

-- like this: 1e day of every month at 00:01 hour (Lua code; left side in conditions)

{
  conditions = { {
      isTrigger = true,
      operator = "match",
      property = "cron",
      type = "date",
      value = { "01", "*", "1", "*", "*", "*" } -- 1: min | 2: hour | 3: day | 4: month | 5: fibaro day | 6: year |
    } },
  operator = "all"
}
 

  • 0
  • Inquirer
  • Posted
    On 1/5/2022 at 9:38 PM, Tomasz Spaleniak said:

    Hi Mike,

     

    This is easy. In the scene panel, you should create new scene base on block and use as trigger item from Time group - Days of month and select 1 as the beginning of each month.

     

    On 1/5/2022 at 9:42 PM, Tim__ said:

    Hi Mike - Do you still have the HC2?

     

    I suggest posting your HC2 scene (was it a block scene?), maybe someone can help translate it to HC3.

     

    On 1/5/2022 at 9:38 PM, Tomasz Spaleniak said:

    Hi Mike,

     

    This is easy. In the scene panel, you should create new scene base on block and use as trigger item from Time group - Days of month and select 1 as the beginning of each month.

    Thanks. I can see how to set up a trigger now but the next step is to set up a variable , for example MonthNumber , and then add 1 to the previous month variable . 
    Do you know how to do this ?   I can set the variable but I can’t see how to add 1 each month 

    • 0
    Posted
    34 minutes ago, Mike MJ said:

    Thanks. I can see how to set up a trigger now but the next step is to set up a variable , for example MonthNumber , and then add 1 to the previous month variable . 


    you could look for an example in this code:

     

     

     

    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...