Please I need help on creating a rule for the below, I am sure I am missing something simple as all my other rules work fine but this one item crashes the notifications.rule file I have until I remove it
2020-02-24 13:21:10.202 [vent.ItemStateChangedEvent] - Invertermode changed from Battery (Solar) to Utility (Grid)
rule is as follows
rule “notify grid on”
when
Item Invertermode changed from Battery (Solar) to Utility (Grid)
then
sendBroadcastNotification(“Grid ON”)
end
At the first glance the “from Battery (Solar)” looks a little bit uncommen. If intervertermode is a String then the value Battery (Solar) and Utility (Grid) should have some "
I have tried that before and then I get this in the log file
2020-02-26 14:08:47.698 [WARN ] [el.core.internal.ModelRepositoryImpl] - Configuration model ‘notifications.rules’ has errors, therefore ignoring it: [309,6]: no viable alternative at input ‘�’