SendNotifications with rule not working

Hi,

i tried to send a notification within a rule like

"LEDON"
            when
           Item PushButton changed from OPEN to CLOSED
        then
                RaspiLED.sendCommand(ON)
                sendNotification("mymail@mymail.com", "Test")
            end

rule "LEDOFF"
            when
           Item PushButton changed from CLOSED to OPEN
        then
                sendBroadcastNotification("Test")
                RaspiLED.sendCommand(OFF)
            end

But i don’t recieve any notification.

But if i go in myopenhab.org --> devices and send a message it works!
Also the offline / online notification works.

I use the actual openhabian with raspberry pi 3 and the openhab app on the iphone. openHAB Cloud is installed with mode: Notifications and Remote Access.

Can anybody help me out what is wrong.
Thank you so much.

Fabian

Are you sure your rule is triggered? Is your RaspiLED turned on/off?

Hi Dries,

wow thanks for the fast answer.

Ja i’m sure. If i push the button the RaspiLED turns on and off.

Can it be that my test buildup with the button gives a to short trigger?

In general everything works. I have also the RaspiLED as a switch in a sitemap. If i push the button and the LED turns on / off, the switch on the myopenhab app actualize immediately.

I think MyOpenHab is playing up at the moment - see some of the other threads