I have a widget, which displays the current state of a thermostat.
It is possible to change setpoint temperature and the mode of the thermostat (auto, manual) and so on.
When I want to increase the setpoint temperature in the hole house, I have to increase the value on all thermostats. So I would like to add a button to the widget to copy specific values to other thermostats on the floor or the hole house. I thought I could do this with an oh-button and the action: rule like the following example:
- component: oh-button config: iconF7: equal action: rule actionRule: f7ce3da30d actionItem: =props.item raised: true round: true
When I hit the button, the rule gets fired, but I didn’t find a way to get the “triggering Item” or to pass a parameter to the rule, to know from which thermostat the properties should be copied.
Is there a way to achieve this?
Or is it possible to get the item which was last updated in the rule?
(The rule is an ECMAScript)