Skip to content

How to use DC Motor for Home Assistant GA36Y555

Install Home Assistant operating system

At first, we need a device equipped with Home Assistant system, and which we choose is DIY with Raspberry Pi.

1. Tools required

  • Raspberry Pi 4 or Raspberry Pi 3 Model B(Model A does not have enough RAM)with power supply
  • MicroSD card(32 GB or bigger card is recommended)
  • Ethernet connection

2. Preparation of Raspberry Pi Imager

  • Download and install the Raspberry Pi Imager on your computer
  • Open the Raspberry Pi Imager and select your Raspberry Pi device rpi_imager_start.png

  • Choose the operating system rpiha.gif

3. Write the image to SD card

  • Insert the SD card into the computer. Note: the contents of the card will be overwritten.
  • Select your SD card. image.png

  • select Next, and wait for the Home Assistant OS to be written to the SD card. image.png

4. Start up Raspberry Pi

  • Insert the SD card into your Raspberry Pi.
  • Plug in an Ethernet cable and make sure the Raspberry Pi is connected to the same network as your computer.
  • Connect the power supply to start up the device.

Access Home Assistant and add ESPHome to your Add_on

Within a few minutes after connecting the Raspberry Pi, you will be able to reach your new Home Assistant.

  • you can access Home Assistant at homeassistant:8123 or http://X.X.X.X:8123 (replace X.X.X.X with your Raspberry Pi’s IP address). image.png

  • select Create my smart home, and enter your name, username, and password. image.png

  • Follow the instructions to complete the setup and finally select Finish. image.png

  • Installing ESPHome Dashboard image.png

Creat a new HA-DC-Moter device

  • Sign in your Home Assistant and go to ESPHome page, select NEW DEVICE. image.png

  • Click CONTINUE, enter your new device name and click NEXT. image.png

  • Select ESP32 and click SKIP, you will return to the ESPHome page, now ,you have created a new ESP32 device. image.png

  • Select EDIT and copy the code ha-motor.yaml to the end of the file. image.png

  • Click SAVE, and a new HA-DC-Moter device have been created. image.png

Install code to HA_DC_Moter

  • Click Install, select Manual Download and select Modern format, wait for the compilation to complete, then wait for the bin file download to finish image.png

  • Use Type-C USB cable to connect the DC Motor for Home Assistant_GA36Y-555 and PC, open download page, select CONNECT, in the displayed page, select COM port.

image.png image.png

  • After the connection is successful, click INSTALL, choose the bin file you just downloaded and click INSTALL.

image.png image.png

  • Wait for the installation to complete. when download success, click LOGS, find IP information.

image.png

Note if the connection is not successful, hold down the Flash key, then press the Reset key, and then click INSTALL again.

Configuration HA_DC_Moter

  • Go back to the ESPHome page, select EDIT for your device, and go to the YAML edit page, copy API: encryption: key, such as “jUqgQfRiHpESrBY0AW8lZWxYgv8C9nX/nqeoU8eim2E=” image.png

  • Return to the HA page, select Configuration, and select devices and services image.png

  • If HA automatically identifies the local device, click Configure to add the device automatically. If no, continue to add the device. This is related to the configuration of the HA router. image.png

  • Search for ESPHome, and select it, enter the IP address you just obtained.

image.png

  • Enter the API key and then submit. OK, now, the device has been added successfully!

HA UI Setup

Normally, HA recognizes this automatically, but if the home page has been manually modified, HA will never add any device display again.

  • Go to the HA home page, click the three dots in the upper right corner, select Edit dashboard.You can see the color of the interface changes. image.png

  • Now, select the add card in the lower right corner, click on the "Entity" card, and find the relevant content of HA_DC_Moter, add them and click SAVE. image.png image.png

  • The way to add cards is the same as the use of HA, you can arrange the page by yourself.Click Finish to exit editing The reference interface is as follows: image.png

HA Automation

Two new Endstop pads are added to connect the external Endstop.For example, if you want Endstop 1 to be triggered, turn off the motor, you can see the following Settings.

  • On the configuration page, select Automation. Select Create Automation and set trigger conditions and motors.

image.png image.png image.png

Result

image.png

FAQ

You can list your question here or contact techsupport@makerfabs.com for technology support. Detailed descriptions of your question will be helped to solve your question.

Resource