This custom component integrates your AmbiSense radar-controlled LED system with Home Assistant, allowing you to monitor and control your ambient lighting based on proximity detection.
Make sure to install the latest AmbiSense firmware.
- Automatic Discovery: Finds your AmbiSense devices on your network using mDNS
- Distance Sensor: Monitor real-time distance readings from the radar sensor
- LED Control: Adjust brightness, color, and other parameters of your LED strip
- Configuration: Set minimum and maximum distance thresholds, light span, and number of LEDs
- Device Registry: All entities are properly grouped under a single device in Home Assistant
- Home Assistant installed and running (version 2023.3.0 or later)
- AmbiSense device connected to your network
- The device should have an IP address that is reachable from your Home Assistant instance
- Ensure you have HACS installed
- Go to HACS > Integrations > ⋮ > Custom repositories
- Add this repository URL with category "Integration"
- Click "Install" on the AmbiSense integration
- Restart Home Assistant
- Download the latest release from GitHub
- Extract the
custom_components/ambisensedirectory into your Home Assistant'scustom_componentsdirectory - Restart Home Assistant
- Go to Settings → Devices & Services
- Click the "+ Add Integration" button in the bottom-right corner
- Search for "AmbiSense" and select it
- If your AmbiSense device is on the network, it should be discovered automatically
- Follow the prompts to complete the setup
If automatic discovery doesn't find your device:
- Go to Settings → Devices & Services
- Click the "+ Add Integration" button
- Search for "AmbiSense" and select it
- Enter the IP address of your AmbiSense device (default: 192.168.4.1)
- Enter a name for your device (optional)
- Click "Submit"
After setting up the integration, you'll have access to the following entities:
- Distance Sensor: Shows the current distance detected by the radar sensor in centimeters
- LED Light: Control the LED strip with on/off, brightness, and RGB color
- Minimum Distance: Set the minimum detection distance (cm)
- Maximum Distance: Set the maximum detection distance (cm)
- Light Span: Adjust the number of LEDs lit in the moving light effect
- Number of LEDs: Configure the total number of LEDs in your strip
Here are some examples of how you can use this integration in your Home Assistant automations:
automation:
- alias: "Turn on lights when someone enters"
trigger:
platform: numeric_state
entity_id: sensor.ambisense_distance
below: 100
action:
service: light.turn_on
target:
entity_id: light.living_roomautomation:
- alias: "Evening LED color"
trigger:
platform: time
at: "20:00:00"
action:
service: light.turn_on
target:
entity_id: light.ambisense_light
data:
rgb_color: [255, 160, 80]
brightness: 180automation:
- alias: "Energy saving - no presence detected"
trigger:
platform: numeric_state
entity_id: sensor.ambisense_distance
above: 400
for:
minutes: 10
action:
service: light.turn_off
target:
entity_id: light.ambisense_light- Ensure your AmbiSense device is powered on and connected to your network
- Check that mDNS (Bonjour/Avahi) is working on your network
- You can try manual configuration with the IP address instead
- Verify you can access the web interface directly at
http://<IP_ADDRESS>/ - Check if your firewall is blocking connections to the device
- Ensure the ESP32 is connected to your network and has a static IP
- Try restarting both the AmbiSense device and Home Assistant
- Check the Home Assistant logs for any error messages related to the AmbiSense integration
- Verify the device is still powered on and connected to the network
- Try updating the integration or reinstalling it
- Make sure the LD2410 sensor is properly connected to the ESP32
- Check the physical connections and cables
- Verify the sensor is not obstructed or placed behind materials that block radar
- Check the physical connections between the ESP32 and the LED strip
- Verify the LED strip is powered properly
- Test the LED functionality using the web interface at
http://<IP_ADDRESS>/
If your network supports mDNS (most do), you can use the hostname instead of IP:
- The device hostname format is
ambisense-<location>.local - For example:
ambisense-livingroom.local
For more reliable connectivity, set up a static IP for your AmbiSense device:
- Access your router's DHCP settings
- Find the MAC address of your AmbiSense device
- Assign a static IP to that MAC address
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.
- Created by Ravi Singh (TechPosts Media)
- Home Assistant component developed by the AmbiSense community