Alarm with switch

This rule is used to trigger a specified switch in a certain time of the day.

Language: Javascript

Dependencies:

Changelog

Resources

configuration:
  - uid: alarm_uid
    label: Alarm with switch
    description: Triggers a switch when a specific time of day arrives
    configDescriptions:
      - name: time
        type: TEXT
        context: time
        label: Time
        required: true
        description: Time when switch is triggered
      - name: switchingItem
        type: TEXT
        context: item
        label: Switching item
        required: true
        description: Item that is being triggered
triggers:
  - id: "1"
    label: When time is "{{time}}"
    configuration:
      time: "{{time}}"
    type: timer.TimeOfDayTrigger
conditions: []
actions:
  - inputs: {}
    id: "2"
    configuration:
      itemName: "{{switchingItem}}"
      command: ON
    type: core.ItemCommandAction

I’m not sure I see what this template adds beyond the end users just creating the rule themselves. By the time you install the template, instantiate and configure the rule(s) you’ve done as much work as if you just created the rule from scratch in the first place. Do you have plans to expand what this template does, adding extra features and such?