You need to get an account setup on my.openhab.org and the OpenHAB app installed on your iPhone. Once that’s done, you can use sendNotification or sendBroadcastNotification commands.
Are you seeing the error “Couldn’t resolve reference to JvmIdentifiableElement ‘sendBroadcastNotification’.” in the logs or in the OpenHAB Designer when editing the rules? I see the same error in the designer but the rule works fine. Here is my rule the sends a test notification to my iPhone:
/* RULE TO TURN ON LIVING ROOM LIGHT */
rule "turn LivingRoom on"
when
Time cron "0 00 19 ? * *"
then
if(LivingRoom.state==0) {
var HSBType light = new HSBType("51,20,100")
LivingRoom.sendCommand(light)
sendBroadcastNotification("Living Room Light is OFF")
}
end