#Device selector to notify target

1 messages · Page 1 of 1 (latest)

lavish ferry
#

Hi. I am writing a script which has a field for a device. Target selector targeting a mobile device.

When the user enters their device, the script returns the device ID. But I need to convert it into a notify target such as "notify.mobile_app_bananas_iphone", so that I can send a notification to it!

I can't find an easy way to do that conversion. Does anybody have any ideas or suggestions? Or an alternative way to send a notification to a selected device.

#

I read another blueprint that used notify.mobile_app_' + device_attr(id, "name") | slugify so that seems to be the solution!

glass karma
#

That works unless you rename the device, but not the action.

lavish ferry
#

True. I don't see any way around that though?

glass karma
lavish ferry
#

Oh that's cool. Any idea when that change might happen? I seen a close architectural discussion on it. But nothing more