App does not show switch widget status correctly

I have Thing and a device (ESP32-C3) with an on/off switch and with the corresponding Switch widget on a dashboard. The switch has attributes Read & Write and On Change. When the switch is toggled in the Web dashboard everything works great. But when the dashboard is brought up in the app on an iPhone the switch never shows anything but Off, even if the app is refreshed by swiping down. However if I toggle the switch On in the app dashboard it turns On in the app and both on the Web dashboard and the on device itself. But if I then leave the dashboard in the app, going to another dashboard or exiting the app, and then returns to the dashboard in question the switch shows Off again, even after refresh. In the device itself and the web dashboard the switch is still On.

The Cloud status and the status on the device are both clearly correct at all times. It is just the Switch widget in the app which does not get updated. And yes, I refresh the app, but it does not help. This is thus not the general problem of the app not always keeping in sync.

When I detected this problem today, when I added the switch, I also checked another dashboard, belonging to another Thing and device, which has been functioning correctly for years, to find that the switches on that dashboard had also started to misbehave in the same way!

The problem exists both on my iPhone and iPad, both running IoT Remote 4.1.2 on IoS 26.2.1.

@svedblen Hi,

if you need support for your issue please contact the support team.

Thanks

@aemireni , thanks. And how do I do that?

I found the support contact form and used that.

Are you getting confused by a change in state (on/off) vs the current state. They are not the same.

No, not all confused. I have been using this for several years and it has behaved correctly up until now, when the app has started to misbehave. The web dashboard and the device itself still do what they are supposed to do.

Hello @svedblen, I have the exact same behavior. I was checking everything over and over again. No solution found. My code also works fine in the past. Hope somebody can provide a solution.
Sliders don't show value properly, but lead to a change on the Arduino when switched in the app. The value for the parameter "Timer 1" is not shown in the App


Yes, let’s hope. As I said I have failed a report with the support team.

I came to the forum to see if anyone else was having the issue. I am too. Web dashboard interface works fine, and ties up with the ‘Cloud Variables’ webpage. However the mobile app (I’m on android) is not working. I have three switches which all show ‘off’. If I try to set these to ‘on’ they stay on, but then revert to ‘off’. I thought I’d add a bit of extra code, similar to the blink sketch, but the LED is a widget (and I’m using millis() not a delay()) and this works fine and updates every second, so ArduinoCloud.update() seems to be working fine.

I’ve checked the cloud status and all is good, though I notice there has been a recent update…:thinking:

@gavvyboy , I have implemented a workaround which I intend to use until the problem is fixed (if ever). Instead of a switch gadget associated with a boolean variable I associated the boolean with a status widget. Then I added a new read/write boolean and asssociated a toggle button to it. In the sketch, in the On Change function for the new boolean I check if the new boolean has been set true, and only then, do I toggle the original boolean. The check since it will go false again when the button is released. Not optimal, but it works.

@iu

@ll_u @gavvyboy I just this from the Arduino Team. Hopefully the problem will soon be fixed.

Hello,

Thanks for contacting Arduino Support.

I apologize for the delayed answer. This problem has been very recurrent in the last few days, so we had to consult with Cloud services and are currently working on fixing this issue.

Our team will keep you updated.

Best regards,

Axel S.
Arduino Support Team.

That’s great, thank you for the update, much appreciated, lets hope they sort this issue out soon.

Yep, getting the same on mine. Web interface shows “on”, app interface shows “off”

Hello Axel,

Was there any solution found for the issue, I maybe missed out, or still working on it? I’m having same issue on my both phones, on iPhone as well as on android

Tahnks

@rigmech68 I just got another e-mail from Axel at support. Not much new. What it said was basically “This has been a recurring problem since last week. Our team is working on a solution, but an estimated date has not been specified.”

I am afraid the correct interpretation is something like “Do not call us. We’ll se if we get to this matter sometime”. But one can always hope for a fast solution…

Thanks svedblen, I also sent them a message explaining my case.

Well, looks like we have no options, will wait.

I just got this from the Arduino Support Team:

This is just a reminder that we haven't forgotten about your issue, and a solution is already in progress. As this is primarily an app issue, the fix will be included in the next update, which has already been tested but has not yet been made public.
Once this update is available, we will let you know.
Thank you for your understanding, and we will be in contact.

Sounds promising.

Hi all. Version 4.2.0 of the App has now been released. This should have the fix for the problem you encountered. Please let us know if you still encounter any problems using the updated app.

I apologize for any inconvenience caused by this bug.

I have tested it on an iPhone and it works great. Thanks.