I am really glad to find the Pebble application. It worked fairly well out of the box and met my expectations (its was OK that nested pages and embedded HTML pages did not work, that can be fixed with a different sitemap.)
This led me to want to send notifications to the Pebble. I am having a bit of trouble.
I am running 1.8.3 on Ubuntu. I could not find the .jar file in the normal install using apt-get. I did download and install the dropbox file above and then used the documentation in the OpenHAB wiki for actions (yah, I know… a lot of assumptions and things may have changed).
I can get the pebbleNotification(String instanceOrToken, String title, String body) when using a token, but not the instance. The instance is defined as:
pebble:kirk.token=111222333444555666777888
and it did not work when referenced as:
rule "A1 turned OFF"
when
Item X10_Test_A1 changed from ON to OFF
then
logInfo("X10_Test_A", "Turned off")
pebbleNotification("kirk", "A1 Off", "A1 turned off at")
end
but it did work when referenced as
rule "A1 turned OFF"
when
Item X10_Test_A1 changed from ON to OFF
then
logInfo("X10_Test_A", "Turned off")
pebbleNotification("111222333444555666777888", "A1 Off", "A1 turned off at with token")
end
I could not get the following example to work with token or instance
rule "A1 turned OFF"
when
Item X10_Test_A1 changed from ON to OFF
then
logInfo("X10_Test_A", "Turned off")
pebblePin("111222333444555666777888", now.toDate, "X10 A1 is on", "X10 A1 is turned on")
end
I think this tries to pin to the current timestamp, and maybe that is rejected somewhere along the line.
I could get the token version of the following to work
rule "A1 turned OFF"
when
Item X10_Test_A1 changed from ON to OFF
then
logInfo("X10_Test_A", "Turned off")
pebblePin("111222333444555666777888", new DateTime().withHourOfDay(23).withMinuteOfHour(30).toDate, "Bed time", "Shutdown", "http://192.168.1.15:8090/CMD?Lights_All=OFF")
end
Eventhough I could get some of the interface to work with the token, my preference is to to not use that form. Please point out my errors.