Home Assistant Simple Motorised Roller Blind
This project was inspired by the excellent work of nidayand and their motor-on-roller-blind-ws project. Basically I stripped that project back to it’s bare bones and implemented WiFi AP mode so MQTT configuration can be done without need for code changes.
The initial parts for the project were printed from Motor on a roller blind by pgote. I then created a “better” enclosure to house the components here.
Setup
Instructions for full setup are available here: https://github.com/jampez77/motor_blind
Spoiler Images
Changelog
Version 2.1 - More config via HA
Created Reset Limits
button that will remove stored values for Open
and Closed
limits so they can be changed. This button will only appear in HA once a limit has been set.
Created WiFi AP
button that will reboot into a wireless access point so WiFi
or MQTT
details can be changed. Press Save
in the WiFi Config
page to reboot the device again and connect it back to HA.
Additionally:
I updated to these motor drivers as the smaller form factor allows the whole device to fit on a proto board in a custom enclosure.
THIS IS ENTIRELY OPTIONAL AS THE WIRING IS EXACTLY THE SAME. If you’re not bothered about fitting your device into a nice neat little box then you don’t need to pay any attention to this.
Version 2.0 - Created WiFi Access Point setup (Breaking Changes)
Moved MQTT topics so they’re defined in setup
using the deviceId
.
Added WiFiManager
so project can be setup without code changes.
Renamed setup switches in HA to more descriptive names.
Breaking Changes
MQTT topics are now auto generated which means that topics produced manually in previous version will not carry across when updating from version 1.x.
Version 1.1 - Simplified process for having multiple project instances in HA
Created deviceName
variable so only a single change is required to create a new device in HA.
Tweaked topics and devices names/IDs so each instance appears as separate device in HA.
Increase JSON memory allocation by 50 characters to allow for larger device names.
Updated variables for MQTT server to be more specific and allow port to be changed.
Version 1.0 - Initial Release
LED status indicator
- Solid light = No WiFi connection
- Flashing Light = no MQTT connection
- No light = connection established
ArduinoOTA for wireless code updates.
Added MQTT config on boot to integrate seamlessly with Home Assistant.