PushNotification() doesn't work

88 views
Skip to first unread message

Jaco

unread,
Jul 18, 2015, 4:05:19 PM7/18/15
to myop...@googlegroups.com
Hello,

I'm quite new with openHAB, and maybe i'm doing something wrong by myself. But after more than 10 hours of  testing an trying to get it work, I decided to post a message and ask for help;

I wrote this piece of code:

rule "Push Notification"

  when

   
Item PushNotification received command

  then

   
logInfo("PushNotification", "In the next line, a pushnotification will be executed")

    pushNotification("PN-test", "This is a test for openHAB push notifications")

    logInfo("PushNotification", "In the previous line, pushNotification was executed")

end



When I execute it, nothing happened, but in the LOG I can see the following error message:


2015-07-18 21:49:46.600 [INFO ] [.model.script.PushNotification] - In the next line, a pushnotification will be executed
2015-07-18 21:49:46.741 [ERROR] [o.o.c.s.ScriptExecutionThread ] - Error during the execution of rule 'Push Notification': The name 'pushNotification(<XStringLiteralImpl>,<XStringLiteralImpl>)' cannot be resolved to an item or type.


When I try to send a push-message from my.openhab.org everything seems to work fine; I receive this message immediately.

I don't know if the problem is on my.openhab or on my local system, but maybe you guys can push :-) me on the right track....

Thanks in advance,

Jaco


Kai Kreuzer

unread,
Jul 18, 2015, 4:17:15 PM7/18/15
to Jaco, myop...@googlegroups.com
Hi Jaco,

reading https://my.openhab.org/docs/notifications, it says that the action is called „sendNotification“, not „pushNotification“.
Does this maybe already do the trick?

Regards,
Kai


--
You received this message because you are subscribed to the Google Groups "my.openHAB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to myopenhab+...@googlegroups.com.
To post to this group, send email to myop...@googlegroups.com.
Visit this group at http://groups.google.com/group/myopenhab.
To view this discussion on the web visit https://groups.google.com/d/msgid/myopenhab/786c69d9-8e2f-414b-8805-7a16acb99e0c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Message has been deleted

Jaco

unread,
Jul 19, 2015, 5:04:18 AM7/19/15
to myop...@googlegroups.com



Op zondag 19 juli 2015 11:03:31 UTC+2 schreef Jaco:


Hi Kai,


So I've been searching a day for a problem that wasn't there :-)

But just out of curiosity; what is the PushNotification() for?

Thanks a lot for your help.


 

Kai Kreuzer

unread,
Jul 19, 2015, 8:26:23 AM7/19/15
to Jaco, myop...@googlegroups.com
But just out of curiosity; what is the PushNotification() for?

Where did you ever read about PushNotification()? I don’t think any such action exists…

Regards,
Kai


--
You received this message because you are subscribed to the Google Groups "my.openHAB" group.
To unsubscribe from this group and stop receiving emails from it, send an email to myopenhab+...@googlegroups.com.
To post to this group, send email to myop...@googlegroups.com.
Visit this group at http://groups.google.com/group/myopenhab.

Jaco

unread,
Jul 19, 2015, 4:06:58 PM7/19/15
to myop...@googlegroups.com, jacovand...@gmail.com

Kai Kreuzer

unread,
Jul 19, 2015, 4:09:57 PM7/19/15
to Jaco, myop...@googlegroups.com
Ah, ok I see.
If you read this part of the documentation, you will see that it is about „Prowl Notifications“, i.e. it uses this service: http://www.prowlapp.com/

You won’t need this, if you are using my.openHAB though.

Best regards,
Kai

Jaco

unread,
Jul 19, 2015, 4:55:06 PM7/19/15
to myop...@googlegroups.com, jacovand...@gmail.com
OK,

Completely clear...

Thank you for your quick responses...

Jaco
Reply all
Reply to author
Forward
0 new messages