Hi,
I'm trying to do a simple widget to show the name of the wifi ssid where i'm connected to.
With the WiFi connected (all ssid) trigger I do the next action:
setWidgetElementProperty("WiFi WG copy","Text_2","text",ssid);
But the widget shows null.
WiFi widget
Moderator: Martin
Re: WiFi widget
Hi,
Please try to use a known string to see if the widget is updated or not, I recommend to use a text that also contains the current time. Something like this:
setWidgetElementProperty("WiFi WG copy","Text_2","text","test {triggertime,dateformat,HHmmss}");
If this works, then the ssid variable was probably not available or null when the flow was executed. What triigger are you using? Did you execute the flow manually?
Regards,
Martin
Please try to use a known string to see if the widget is updated or not, I recommend to use a text that also contains the current time. Something like this:
setWidgetElementProperty("WiFi WG copy","Text_2","text","test {triggertime,dateformat,HHmmss}");
If this works, then the ssid variable was probably not available or null when the flow was executed. What triigger are you using? Did you execute the flow manually?
Regards,
Martin