Jump to content
🌟 NEW Shelly Products Reveal Video! 🌟 NEUE Shelly-Produkte-Enthüllungsvideo! 🌟 ×
NOTICE / HINWEIS: iOS 18 Update and Today Widgets ×

Phone notification from script


Martin G

Recommended Posts

Add function in script to trigger a phone notification, from Shelly Smart Control (as Scenes can do).

For instance, could be : Cloud.Notify("This is a notification").

Would work only if device (on which the script is running) is connected to Cloud of course.

Edited by Martin G
typo error
Link to comment
Share on other sites

  • Moderators

With virtual button you might be able to "communicate" between platforms/interfaces by it's state. Or by virtual sensor value. If nothing else usable. Available on gen3 devices and some gen2 (Pro) after FW update to 1.4.2

Link to comment
Share on other sites

Currently, only a scene can raise a notification. Indeed, the 'When' condition can be a device status. Unfortunately, virtual components do not show up in the list of possible "devices" for the 'When' condition.
So, yes, another option, rather than directly use a script function (e.g. Cloud.Notify) could be to allow virtual components state to trigger scenes as 'When' condition (and then the 'Do' action would be : Phone Notification).
So, instead of directly use Cloud.Notify function, the script would set a given value to a virtual component (type Number for instance) which in turn would trigger a scene that sends a notification.

Maybe even better/more flexible solution.

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Erstelle neue...