Hello Tech Enthusiast!
Welcome to today's tutorial where we embark on a journey into the realm of Home Automations using Home Assistant. Geared towards beginners, we'll walk you through each step, focusing on creating a simple automation using the HLK-LD2410, a 24GHz Human Presence Radar Sensor, and the C3-Mini to control lights based on motion detection.
What is Home Assistant?
Home Assistant is a powerful open-source platform that enables you to automate and manage various smart home devices. It serves as a centralized hub, providing a unified interface to control and monitor your smart home ecosystem.
What You'll Need:
HLK-LD2410 (24GHz Human Presence Radar Sensor):
Detects motion for automation.
C3-Mini:
Used for controlling the light.
Raspberry Pi (Recommended: Pi 4 or 5):
The hub for Home Assistant.
Power Supply for Raspberry Pi.
Micro SD Card (32GB or larger, Application Class 2 recommended).
SD Card Reader (USB adapter if needed).
Ethernet Cable (Wi-Fi can be used later).
Step 1: Setting Up Home Assistant on Raspberry Pi
If you're new to Home Assistant, start by setting it up on a Raspberry Pi. Follow our step-by-step guide, ensuring you have the recommended hardware.
Download and install Raspberry Pi Imager.
Open Raspberry Pi Imager, select your Raspberry Pi device, and choose Home Assistant OS.
Insert the SD card, select it in the Imager, and write the Home Assistant OS onto the card.
Eject the SD card and insert it into your Raspberry Pi.
Plug in an Ethernet cable and connect the power supply.
Access Home Assistant: Wait a few minutes for the Raspberry Pi to start. In your desktop browser, enter homeassistant.local:8123.
Troubleshooting:
If issues persist, retry flashing the SD card or try a different one.
Connect a monitor via HDMI for further troubleshooting.
Congratulations! You've completed the Raspberry Pi setup for Home Assistant.
Find more details in official site: Raspberry Pi - Home Assistant (home-assistant.io)
Step 2: Connect HLK-LD2410 to Home Assistant
Utilize our previous blog A Beginner's Guide to HLK-LD2410C 24GHz Radar Sensor (carenuityblog.wixsite.com) to connect the HLK-LD2410 to the C3-Mini.
In Home Assistant, you'll receive a notification "New devices discovered". Check it out and configure the LD2410 BLE.
Once added, it will generate entities in Home Assistant.
Step 3: Create a New Dashboard
Go to Settings > Dashboards > Add Dashboard > New Dashboard from Scratch.
Add the HLK-LD2410 entity to your dashboard. - Click on the pencil symbol in the right corner - Then Click "Add Card" and select "Entities" - In the entity dropdown, find and select "HLK-LD2410 Motion" and click "Save" to add the HLK-LD2410 entity card to your dashboard.
Step 4: Add C3-Mini (WLED) to Home Assistant
Connect the C3-Mini to your PC via USB.
Visit Carenuity's website (Carenuity) and log in.
Navigate to the WebFlashing Section and search for the WLED section.
Install WLED to C3-Mini, following the instructions on the website. Follow the detailed instructions provided in the WLED section. This typically involves pressing the reset and boot buttons simultaneously on the C3-Mini. Ensure you hold the reset button until the process is complete. Repeat if necessary.
Connect C3-Mini to Wi-Fi: Once the installation is successful, disconnect the C3-Mini from your PC and trying to install WLED to C3-Mini again, now you will have some more options. Choose to connect to your Wi-Fi network. During this step, you'll need to input your network name and password.
Then select to Visit the devise and configure GPIO Settings: Visit the C3-Mini configuration page and navigate to Config > LED Preferences. Change the GPIO setting from 2 to 7. Save your changes.
Add WLED to Your Dashboard: Now, go back to your Home Assistant dashboard. You'll receive another notification to configure WLED. Add the WLED entity to your dashboard by selecting the desired features, such as "HLK-LD2410_4BC3 Motion."
Step 5: Create Automation
Go to Settings > Automations > Create new automation > Motion-Activated Light.
Set the Motion Sensor as the HLK-LD2410 entity and the Light as the WLED device.
Choose the desired Wait time for the light to stay on.
Save the automation and give it a name.
Add the automation to your dashboard.
Now, your motion-activated light automation is ready to use in Home Assistant. Enjoy the smart home experience!
Regards,
Cynthia & Melina
Commentaires