From the documentation below, which is in ESH, can we have Scene widget in Habpanel ?
---
layout: documentation
---
{% include base.html %}
# Scenes
A scene is a defined set of states which several items should have when the scene is active.
It can be activated either manually or by a simple trigger, e.g., a time based rule.
## Concept
A scene is merely a set of actions inside a rule that is executed by the rule engine. Each action yields an item into a target state once the scene is activated. It is advisable to have a tag like "scene" on a rule to express its purpose.
The scene can be activated either manually or automatically. To manually activate the scene you will need to make a call to rest endpoint `PUT /rest/rules/{ruleUID}/runnow`. To automate the scene activation, a secondary rule must be created. The action section of this secondary rule is responsible for executing the scene with the `core.RunRuleAction` actionhandler.
The action module, used for running the scene, must support the direct execution of rules without requiring to evaluate the conditions. This way all actions will be executed even if an action before returns an error.
This file has been truncated. show original
ysc
(Yannick Schaus)
August 21, 2017, 11:03am
2
You can set up a trigger to run the rule (directly or in another rule like explained) to react to an item’s change of state, or command received, and simply send the command with a button widget in HABPanel.