So first thing - love the blinds control. I ordered one prefab and then built several more and they’ve been great. I do have a question about a bit of code in the Arduino sketch. There’s a check for if the MQTT command is between 40 and 60, and if so it sets the servo to 0 before changing to whatever value was sent in
if(msgString.toInt() <= 60 && msgString.toInt() >= 40)
{
myservo.write(0);
delay(1000);
}
myservo.write(msgString.toInt() * 1.8);
delay(1000);
On my setup I basically open the blinds to 50%, always. The esp8266 reboots every now and then and this bit of code causes the blinds to close and re-open on reboot. Not a big deal, just curious as to the need and why its only for commands between 40 and 60.