Jump to content
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

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.

×
×
  • Create New...