Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

Switch control default state
Moderators: adafruit_support_bill, adafruit

Forum rules
If you're posting code, please make sure your code does not include your Adafruit IO Active Key or WiFi network credentials.
Please be positive and constructive with your questions and comments.

Switch control default state

by txjmb on Mon Dec 28, 2015 2:54 am

I have a dashboard that uses a switch to show on-off status of a pump. The status on the switch is not constantly updated from the end device, only when things change. If the switch is on (correct and in sync with last feed status) and I refresh the page, the switch will go back to the off state. Is this the expected behavior? I would think the default behavior for the switch would be to show the state of the last value in the feed.

txjmb
 
Posts: 3
Joined: Sun Dec 27, 2015 12:20 am

Re: Switch control default state

by jwcooper on Mon Dec 28, 2015 4:30 pm

Looks like this was a bug. I've deployed a fix. Let me know if it doesn't work yet.

Thanks!

jwcooper
 
Posts: 679
Joined: Tue May 01, 2012 9:08 pm

Re: Switch control default state

by txjmb on Mon Dec 28, 2015 5:00 pm

Wow, that was quick! Thank you. I'll give it a try and report back if I notice anything else.

txjmb
 
Posts: 3
Joined: Sun Dec 27, 2015 12:20 am

Please be positive and constructive with your questions and comments.