- Platform information:
- Hardware: Raspberry pi4
- OS: openhabian, OH 3.4.1
How can I convert to a UI based rule the following rule?
rule "UPS Notify Blackout"
when
Member of gUPSOFFLINE changed
then
val telegramAction = getActions("telegram","telegram:telegramBot:OpenHAB_Bot")
val itm=triggeringItem
if ((previousState != UNDEF) && (itm.state != UNDEF)) {
telegramAction.sendTelegram("stato "+itm.name+" from "+previousState+" to "+itm.state)
}
end
For this particular case I can easily write two rules, one for each member of the group, but I do have some other cases with groups with more members.
I can still use the rules files but I would like to figure out if the “member of” trigger (and the corresponding triggeringItem) is obsolete (and how to replace it) or if it is something that will be implemented in the future.
Thank you for your attention