Based on our HS4 Feature Poll, the most popular popular feature request is for Conditional Actions. As such, we're scoping that feature now and we'll be looking for feedback along the way. Please read through the information below and post to this thread if you have suggestions that might help this effort. Thanks in advance!
Conditional Actions
HS4 event conditions are currently applied only to triggers. Because of this, multiple events often must be created for any given trigger based on the desired behavior for actions. Consider the following scenario for what I normally do when motion is sensed in my garage:
Event 1
If motion is sensed in the Garage (trigger)
AndIf the garage lights are off (condition)
Turn the garage lights on (action)
Event 2
If motion is sensed in the Garage (trigger)
AndIf the Garage Door is Open (condition)
Record the Driveway Camera for 30 seconds (action)
Event 3
If motion is sensed in the Garage (trigger)
Restart Garage motion sensor timer (action)
Event 4
If motion is sensed in the Garage (trigger)
AndIf the Garage motion sensor timer is less than 1 (condition)
Speak "Motion Sensed in the Garage" (action)
Now imagine how this workflow can change if conditions can be applied to actions instead!
Event
If motion is sensed in the Garage (trigger)
Turn the garage lights on (action)
If garage lights are off (condition)
Record the Driveway Camera for 30 seconds (action)
If Garage Door is Open (condition)
Restart Garage motion sensor timer (action)
Speak "Motion Sensed in the Garage" (action)
If Garage motion sensor timer is less than 1 (condition)
Workflow
No change will be made to the trigger section of the event. That will continue to function as it currently does with support for multiple triggers and conditions. In the actions section, the following changes will be made:
Conditional Actions
HS4 event conditions are currently applied only to triggers. Because of this, multiple events often must be created for any given trigger based on the desired behavior for actions. Consider the following scenario for what I normally do when motion is sensed in my garage:
Event 1
If motion is sensed in the Garage (trigger)
AndIf the garage lights are off (condition)
Turn the garage lights on (action)
Event 2
If motion is sensed in the Garage (trigger)
AndIf the Garage Door is Open (condition)
Record the Driveway Camera for 30 seconds (action)
Event 3
If motion is sensed in the Garage (trigger)
Restart Garage motion sensor timer (action)
Event 4
If motion is sensed in the Garage (trigger)
AndIf the Garage motion sensor timer is less than 1 (condition)
Speak "Motion Sensed in the Garage" (action)
Now imagine how this workflow can change if conditions can be applied to actions instead!
Event
If motion is sensed in the Garage (trigger)
Turn the garage lights on (action)
If garage lights are off (condition)
Record the Driveway Camera for 30 seconds (action)
If Garage Door is Open (condition)
Restart Garage motion sensor timer (action)
Speak "Motion Sensed in the Garage" (action)
If Garage motion sensor timer is less than 1 (condition)
Workflow
No change will be made to the trigger section of the event. That will continue to function as it currently does with support for multiple triggers and conditions. In the actions section, the following changes will be made:
- A new "add condition" button will be added to the button group at the right end of each action block. Clicking that button will add a new condition block beneath the action. That block will work the same as the condition blocks in the trigger section.
- Saved action conditions will appear slightly indented to provide a visual queue that they belong to the action immediately above them.
- It will be possible to enable or disable individual action conditions
Comment