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