Switch on mobile app and dashboard

Hello thanks for all your nice work!

But i have 2 problems.
First i have made 3 leds controls they work fine whit api.
But on the dashboard only the first one stays on the other 2 turn off direct after turning on.
And can you explain how i can make a switch in the app so i can control the leds from my phone?

There are two versions of this app, the old one works the boolean switch, the new one doesn’t (at least in my phone I guess it is surely a bug), the new one draws charts on real time updated every second.

This is the old one


This is the new one


Hope this helps

ok thanks for the answer.
now it works.