Automated blinds with Home Assistant, MQTT and NodeMCU

I made some updates to the original code by jjhtpc, adding OTA updates. The new code will also retain your previous position when turning off and turning on the blinds if you want it. https://github.com/romahony/mqtt_blinds

8 comments:

This is a great example.I got this working in my setup but i have a few questions.My blinds only go closed or almost 90 degrees open.I would like to have them opening a little more. What value should i change, or can't is be done.

Other thing is that i would like to change the operation because at one blind i can mount t left and on another it needs to be on the right side. so it should operate mirrored from the other.

In home assist there is an "cover" command to use for tilt but i cant seem to get that working right. it does operate the blinds but there is no state. Plus in the app the tilt function does not show up.

There is a variable in the code for this:int max_angle = 133; Change 133 to 90. Come to think of it I should have added the variable min_angle... I will add that actually as that will fix the second issue you are having. I will respond again once the new version is up.

Hi Arnold, looks like there needed to be more work to get this working in reverse. I have added a new version of the ino file. I renamed the existing ino to mqtt_blinds_reverse.ino since technically that was reversed anyway. The file named mqtt_blinds.ino is now customized for your reversed blinds, if that makes sense. Hopefully that works for you now.