Stepper motor controlled MQTT curtains - Home Assistant Integrated
- Download the .ino file
- Ensure you have the correct libraries download and installed (links at top of the ino file)
- Update information in the user configuration section and upload to the NodeMCU
- Hook up your NodeMCU, stepper driver and motor as shown in the wiring section
- Send a value of 0 to the position MQTT topic which will be:
[USER_MQTT_CLIENT_NAME]/positionCommand
- Send incrementally higher values to the position MQTT topic until your blinds are fully closed
- Input that position value into the STEPS_TO_CLOSE field in the arduino sketch.
- Send the updated file to your NodeMCU.
Stepper Package https://amzn.to/2MpRQPu
Pulleys https://amzn.to/2FLbCDI
Curtain Rope https://amzn.to/2U7h5Zs
Extruder Gear https://amzn.to/2T4QtrL
Bearings https://amzn.to/2U4bdQI
NodeMCU https://amzn.to/2MkBcka
Buck Converter https://amzn.to/2FEcNFF
Power Supply https://amzn.to/2MmtFBj
M3 x 20mm Home Depot
#10 bolt Home Depot
cover:
- platform: mqtt
name: "Downstairs Curtains"
command_topic: "CurtainsMCU/command"
set_position_topic: "CurtainsMCU/positionCommand"
position_topic: "CurtainsMCU/positionState"
state_topic: "CurtainsMCU/positionState"
retain: true
payload_open: "OPEN"
payload_close: "CLOSE"
payload_stop: "STOP"
position_open: 88
position_closed: 0