Scratch that. I upgraded to the latest version of the plugin (haven't played with this for a while) and that seems to have fixed the issue, whatever it was.
Thanks!
jay (support) wrote:In your validateActionConfigUi method, add a "description" key to the valuesDict and it'll use that:
- Code: Select all
valuesDict['description'] = "some description of the action configuration"
dduff617 wrote:regarding my previous query about how to make the descriptions of pushover notifications more descriptive and more useful...
i saw another reply by jay in another subforum with the following info about how a plugin can update the text description of the action:
send email to duff@alum.mit.edu; subject "fire in the kitchen!"
turn on device "Exhaust Fan"
send push notification
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>PluginVersion</key>
<string>2.0.5</string>
<key>ServerApiVersion</key>
<string>1.0</string>
<key>IwsApiVersion</key>
<string>1.0.0</string>
<key>CFBundleDisplayName</key>
<string>Pushover</string>
<key>CFBundleIdentifier</key>
<string>io.thechad.indigoplugin.pushover</string>
<key>CFBundleVersion</key>
<string>1.0.0</string>
<key>CFBundleURLTypes</key>
<array>
<dict>
<key>CFBundleURLName</key>
<string>http://www.thechad.io/</string>
</dict>
</array>
</dict>
</plist>
Notice the call to self.substitute() - this method is defined in the plugin base class. If your user inserts
%%v:12345%%
into their string where 12345 is the ID of a variable, the call will return a string with all variable occurrences substituted. If your user inserts
%%d:12345:someStateId%%
into their string where 12345 is the ID of a device and someStateId is a valid state identifier, the call will return a string with all device state occurrences substituted.
FlyingDiver wrote:I don't have a Pushover account, but I looked at the code and the author is using the standard Indigo variable/device state substitution call. From the wiki:Notice the call to self.substitute() - this method is defined in the plugin base class. If your user inserts
%%v:12345%%
into their string where 12345 is the ID of a variable, the call will return a string with all variable occurrences substituted. If your user inserts
%%d:12345:someStateId%%
into their string where 12345 is the ID of a device and someStateId is a valid state identifier, the call will return a string with all device state occurrences substituted.
So just put "%%d:12345:someStateId%%" in the text field for the message, substituting the actual device ID for 12345, and the actual name of the state you want to send. You can put text before and after the template string, and you can have more than one in the same message.
edrabbit wrote:Works for me with Indigo 7.0.2. Although I've noticed a few delayed deliveries lately, but I imagine that's probably on the Pushover service side.
Users browsing this forum: No registered users and 4 guests