Rule Machine: Additional support for Notification Capability as an Action?

@bravenel

Bruce,

I would like to request that support for the “Notification” Capability be added to Rule Machine (as I do not see it there already.) This would allow custom Notification methods to be easily added to RM without the need to create multiple custom commands. I am using Pushover, using a Custom Driver, which works very well to avoid the 10 SMS message per day limit. I would really like to be able to select an ACTION in RM that allows me to select a Device that supports the “Notification” capability, and then allows me to enter free form text for a message. When triggered, this action would call the “deviceNotification(message)” command. Essentially, it would be identical to sending an SMS message in RM, except instead of a phone number, you’d select the device that supports the notification capability.

Please let me know your thoughts. If there is already a way to do this in RM, I am all ears! :slight_smile:

Thank you,

Dan

P.S. Here is the Notification Capability specification that I believe makes sense to use…

Notification

Allows for displaying notifications on devices that allow notifications to be displayed

Definition

name: Notification
status: live
attributes: {
  }
commands:
  deviceNotification:
    arguments:
    - type: STRING
      name: notification
public: true
id: notification

Copy

Attributes

None

Commands

deviceNotification(notification)

Send a notification to the device, which will in turn be displayed by the device

Arguments:

  • notification
    • Type: STRING
    • Required: Yes
    • Description: The notification message to be displayed on the device
1 Like

I’d like to see this capability added as well. A possible alternative hack in the meantime is to add Speech Synthesis capability to the custom driver, then map the speak() method to send the notification. In RM you can turn on ‘Speak this message’ for the same notification to send by text message. Definitely not a long term solution but a secondary option to adding a custom command.

1 Like

Matt - Thank you very much! This works perfectly as a workaround! You have just saved me a ton of time versus having to set up custom commands.

1 Like

RM originally had a Notification option in that same action section. That sent a notification to the phone running the ST mobile app. That was removed for obvious reasons, and it will come back once we launch our mobile app.

It would probably be a good idea to surface what you are requesting also, the ability to specify a device there. I will look at adding that...

1 Like

Thanks Bruce! For now, using the Speech Synthesis capability is working great as a workaround.

Glad it helped you out!