srakaark.blogg.se

Smartthings device handler send message to calling smartapp
Smartthings device handler send message to calling smartapp









  1. Smartthings device handler send message to calling smartapp how to#
  2. Smartthings device handler send message to calling smartapp drivers#

Smartthings device handler send message to calling smartapp how to#

Are you sure you don't want to write a custom app that can sens notifications to anything, including the Hubitat mobile app (but really whatever the user selects)? Generally, you'd write an app to perform an automation (which can be a lot of things, including sending a notification when something happens) or a driver to tell Hubitat how to communicate with a device, generally one it doesn't already know about (or when you don't like the built-in driver behavior). I'm not sure what your actual goal is, however. If hi want that, you'll have to use a Hubitat mobile app device that gets created on you hub with the built-in Mobile App Device driver. You will likely not be able to implement either in a way that sends notifications to the Hubitat mobile app. If you're writing a driver, you will have to implement the commands yourself. The command name matches the Groovy method name.) (As you may know, you need a "reference" to a device to do this-from an input where a user chooses this device. Testing this from the device page is probably easier if you can get such a URL, but in an app you can also call this command-or whatever you find that works-on your device. Off the top of my head, I think playTrack() is probably what you want, passing the URL as a parameter. A lot of speech devices support commands that can play tracks from a URL, so I'd experiment with yours first to see if you can figure something out. Hubitat has a Pushover driver built in, so if you want Pushover notifications insted, you'll just need to set that up and use that device instead of (or in addition to) the Hubitat mobile app notification device. If you want to do something else with notifications, you'll need to find or write a custom (or stock) driver-or at least that's better than trying to do something at the app level specifically. It (or the Notifications app) doesn't really need to know details about the exact device, just that it supports this command-a standard part of the Notification capability that deivers like this implement. For example, to send a notification to the Hubitat mobile app on your phone, the Notifications app in Hubitat just uses the deviceNotify() command on your mobile app device (the one you choose in the Notifications app and the one that gets created when you associate the app with your hub). They use standard commands exposed by the driver, and the driver handles those details. I can call texttospeech with custom voice as:Īnd this returns the URI for the sound file.īut how can I play it on my selected sound device ?ītw, is it also possible to select custom voice for built-in apps like Notifications or Rule Machine ?Īpps don't deal with that low of a level of device communication directly. I also wonder how to send notifications through sound/music devices using a custom voice from Amazon Polly. But how to do that with official Hubitat mobile app ? If I want to use Pushover, I can write a http method to trigger notifications through my pushover account. That is also possible using the rule machine.īut how can I write my own apps that send text notifications ? I see that by installing built-in "notifications" app, I can create text notifications on my phone based on rules. So I wonder if it is possible to use the internal notification method with my apps ?

Smartthings device handler send message to calling smartapp drivers#

I am not a developer but I am writing my own apps or drivers for simple tasks.











Smartthings device handler send message to calling smartapp