Alfonso Martinez Posted July 1 Share Posted July 1 I tried to use the documentation for the Virtual components to set an "Enum" element, but it's not working, I've tried to do it by Shelly Script as well as trying to call it with an URL but I failed in both cases. Does anyone know how to make it work properly? Thank you Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Heinz Posted July 2 Share Posted July 2 What device are you doing this on and what is your end goal Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Alfonso Martinez Posted July 3 Author Share Posted July 3 I'm testing with a Shelly Mini 1. We want to use it to control an alarm and it should blink with different rythm according to the situation. It can be Off, it can be blinking once each second, blinking one each 5 seconds or just be always On. With Shelly scripting we can easily create a timer to turn it on/off each second or five seconds or whatever, but we need somehow to tell the device to enter into that state. I have even tried to just send it a "turn it on" and then on the status change event detect that it has been triggered externally and query an external server to retrieve the desired state. But that fails if we happen to "send turn it on" when it's blinking and it's on at that moment, so we really prefer to be able to set exactly the state of the virtual component as desired and that would trigger the rest of the functionality by Shellly scripting on the device itself. Sending a turn on/turn off from an external server each second doesn't make sense, these devices are so smart and powerful that we only need to know how to set a value for the enum state using the cloud api. Regards Quote Translate Revert translation? English (American) Finnish French German Italian Portuguese (European) Spanish Link to comment Share on other sites More sharing options...
Heinz Posted July 11 Share Posted July 11 I would do this with Scripting then have it all work from the device without scenes or actions. It just a matter of setting a variable and the condition it needs to have met to do what it needs. I have not done something like this so I am not sure where I should start 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.