Hourly Automation Timer? (2022)

In a post-Groovy world, what options do we have to create a routine based on a regular sub-day timer? For example, run a vent fan once an hour for 10 min. I have seen anything in the stock ST app. Does anyone have an edge timer driver for creating these triggers?

It could be easily added by adding preferences for On time and Off time in a switch driver.

It can also be easily done with two automations, what happens is having timeouts are not executed locally.

1 automation:
-IF

  • Switch off
  • for 50 min

-Then

  • Switch On
  • Power off after 10 min

2 Automation:
-IF

  • Every day at 0 a.m.

-Then

  • Switch On
  • Power off after 10 min
Example 1 min ON, 2 min OFF


3 Likes

You can do it with a Rule too. Haven’t tried this but it looks about right.

name: "On for ten minutes per hour"
actions:
  - every:
      interval:
        value:
          integer: 1
        unit: Hour
      actions:
        - command:
            devices:
              - &switchuid 12345678-1234-1234-123456789012
            commands:
              - component: main
                capability: switch
                command: on
        - sleep:
            duration:
              value:
                integer: 10
              unit: Minute
        - command:
            devices:
              - *switchuid
            commands:
              - component: main
                capability: switch
                command: off
3 Likes

Both good solutions. Thanks for the suggestions. I tried the “Power on off” rules that you get in ST. They allow for 3 on/off sessions per day. Unfortunately, they only ever turn on for me and don’t shut off.

@blueyetisoftware,
Hello
I added a timer with On and Off times programmed in preferences in the zigbee Switch Mc driver, in case it can help you

2 Likes