Martin G Posted September 14 Share Posted September 14 (edited) 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 September 14 by Martin G typo error Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Zsolt Kerner Posted September 17 Share Posted September 17 In general, it would be nice to start a scene from a script. Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Moderators terae Posted September 17 Moderators Share Posted September 17 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 Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Martin G Posted September 17 Author Share Posted September 17 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. Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.