Basic sendBroadcastnotification

Hi All

I would like to send a broadcast notification when my gate opens. I configured the Cloud Connector and I can see the presence of the OH2 instance. I exposed the items as well. I created a basic rule and then triggered the gate, unfortunately nothing registered in the cloud or on my mobile

Any thoughts?

I find the tutorial example and followed it, along with using a sample rule someone else created but clearly i think my ‘WHEN’ statement isnt correct

ITEMS:

Switch GateFully "Fully" <door> { mqtt=">[broker:cmnd/gate/POWER1:command:*:default], <broker:stat/gate/POWER1:state:default]", autoupdate="false" }

Switch GatePartial “Partial” { mqtt=">[broker:cmnd/gate/POWER2:command:*:default], <broker:stat/gate/POWER2:state:default]", autoupdate=“false” }

RULE

rule “Rear Gate Open”
when
Item GatePartial changed
then
sendBroadcastNotification (‘Rear Gate is Open’)
end

rule "Rear Gate Open"
when
    Item GatePartial changed
then
    sendBroadcastNotification("Rear Gate is Open")
end

And Kris, please use the code fences… :smile:

I did have! i learn the first time. When I paste them into this forum, they disappear. I must be doing something wrong!

I found the code fences button! laughs

rule "Rear Gate Open"
when
  Item GatePartial changed 
then
  sendBroadcastNotification("Rear Gate is Open")
end