* Rename collection folders Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Change all occurences of addons and repos Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Add further corrections Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Remove temporary directories after processing Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Reduce addons menus, show current uncond. Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Fix typo Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Remove redundant addons from permalinks Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Sort UI menu entries correctly Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> * Split maven command Signed-off-by: Thomas Dietrich <Thomas.Dietrich@tu-ilmenau.de> |
||
---|---|---|
.. | ||
readme.md |
readme.md
id | label | title | type | description | source | since | install |
---|---|---|---|---|---|---|---|
pebble | Pebble | Pebble - Actions | action | The Pebble action service allows you to send pins and notifications directly to your Pebble watch. | https://github.com/openhab/openhab1-addons/blob/master/bundles/action/org.openhab.action.pebble/README.md | 1x | auto |
{% include base.html %}
Pebble Actions
The Pebble action service allows you to send pins and notifications directly to your Pebble watch.
You'll need to install the openHAB app on your Pebble watch and lookup the Timeline token. This token is displayed at the bottom of the configuration page when you configure the app on your phone.
Configuration
You can either configure the required Pebble token in services/pebble.cfg
and refer to it by name, or provide it explicitly in your action calls.
Property | Default | Required | Description |
---|---|---|---|
<name>.token |
A token to use in action calls by name |
Configuration Example
dave.token=88889999aaaabbbbccccddddeeeeffff
Actions
pebblePin(String instanceOrToken, Date time, String title, String body)
: Insert a pin at a given time with a title and body.pebblePin(String instanceOrToken, Date time, String pinTitle, String actionTitle, String url)
: Insert a pin at a given time with a title and add an action. This action is a simple HTTP GET on the given url.pebbleNotification(String instanceOrToken, String title, String body)
: Push a notification directly, with the given title and body.
All actions accept an instance name or the timeline token as the first parameter.
Examples
pebblePin("88889999aaaabbbbccccddddeeeeffff", now.toDate, "Dave left", "Dave is on his way")
pebblePin("dave", new DateTime().withHourOfDay(23).withMinuteOfHour(30).toDate, "Bed time", "Shutdown", "http://192.168.1.15:8090/CMD?Lights_All=OFF")
pebbleNotification("dave", "Dave left", "Dave left the house")