The plugin supports RD-Lidar sensors.
These sensors have a rotating laser that measures distance through the reflected light. One value every ~1º (called dots her)
The distance measured is in one plane.
The readout is through a serial port / USB
YOU need to add the RD-lidar sensor type = Slamtec RPLIDAR A2 2D 360, the type A1 also works
Connect a GOOD usb micro cable between RPI (should be 3 or better) and the RDlidar sensor.
Add the external power supply for the A2 - it needs 1.5Amps to start.
Create an indigo piBeacon - rdlidar device, leave the parameters at the default values, you can play around with them when it works.
There are 4 sections in indigo device edit:
1. general sensor setup:
- Motor frequency = number of full 360º measurements per second 3 Hz seems to work well;
- # of dots to combine into one. -- Experience shows that 2 dots combined into one reduces noise and low quality signal measurement that result in a zero value.
- # of repeat measurement to set empty room values (value@angle)
- send pixel data to plugin.. only needed when you want to make an image
- min delta between sending data to indigo, save guard to oversell indigo
- update indigo at least every x Sec.. (opposite of the one above)
2. trigger parameters:
- how many contiguous (N) dots must be different by Z from previous dots (last x measurements) at the same angle
- same for current vs the "empty" room calibration dots.
3. image parameters: (xmin/max, # of points, you can rotate the image, colors of dots, legend on/off, frame on/off, create image for every dataset or only for "events" etc
4. other: save measurement into indigo properties(not used yet)and which state to show in Status/ Sensor value
You can request an "empty" room calibration through an action or menu.
The calibration will do several measurements (360º full scans) and store the average info (for each dot) on the RPI SSD, re-read at startup of the RPI.
Event definitions;
1. Presence in room: One or more sections of values of dots (contiguous data points) are lower (=shorter distance to the sensor) than those from the empty room = something > Z is closer to the sensor. If you sit in the room there should be a permanent difference to the empty room. No movement needed.
2. re-calibration needed: a section is further away from the sensor than in the empty room. As that indicates a change in the room structure a recalibration is "suggested"
3. approaching: in current measurement a section of dots are CLOSER to the sensor than in the last measurement. That indicates a quick change (< 1 second) = active movement
4. leaving: in current measurement a section of dots are FURTHER AWAY from the sensor than in the last measurement, Also indicates a movement < 1 second.
... #3 and #4 can happen at the same time while walking across the room or waving with your hands.
You could trigger on values > 0 to indicate movement or presence.
The triggers are depending on the device settings:
-- N#: of contiguous dots to form a "section".
--Z: The delta of the values current-previous and current-Empty_room must be > Z to qualify for a moved section.
Those 2 parameters (N,Z) define the tigger thresholds for both empty and current vs last.
Once a delta value of the dots (current-last) < Z the segment stops.
The values shown in the device states are the number of dots in the section(s) that qualify(delta > Z) .
The areas with no change have red/green/blue lines close to each other -no distinct different pattern is visible:
One section is further away, the other is closer: moved a chair by 2 meters
As show there can be several segments for each type (here 3).
Where the green line is further away there is an object closer to the sensor (current & last) the opposite where the green line is closer.
The red < show where movement is detected , moved closer a > would indicate a move away = leaving
when the sensor is rotated after calibration. You can clearly see the green line is rotated by ~ 20 degrees compared to the current values - or visa versa
Karl
pibeacon: 21 - RD-Lidar sensor
Jump to
- Indigo Help
- ↳ Announcements
- ↳ New to Indigo/Home Automation
- ↳ Installing/Moving/Upgrading/Uninstalling Questions
- ↳ Basic Usage Questions
- ↳ Devices
- ↳ Triggers and Triggering Events
- ↳ Schedules
- ↳ Conditions
- ↳ Action Groups and Actions
- ↳ Variables
- ↳ Control Pages
- ↳ Feature Requests
- ↳ Hardware Support Inquiries and Requests
- ↳ Supported Interfaces/Technologies
- ↳ Z-Wave
- ↳ INSTEON
- ↳ Indigo Virtual Devices
- ↳ X10 - Legacy
- ↳ Supported Hardware
- ↳ Interfaces
- ↳ Digital/Analog I/O Modules
- ↳ Energy Monitoring/Reporting
- ↳ Locks and Lock Controllers
- ↳ Motion Detectors and Sensors
- ↳ Motor/Speed and Shade/Blinds Controllers
- ↳ Outlets and Inline Modules
- ↳ Plug-in Lamp/Appliance Modules and Bulbs
- ↳ IR and A/V Devices
- ↳ Scene/Multi-Button Controllers
- ↳ Sprinkler/Irrigation Controllers
- ↳ Switches
- ↳ Thermostats
- ↳ Miscellaneous Devices
- ↳ Built-in Plugins
- ↳ Airfoil Pro
- ↳ Old Airfoil Discussions
- ↳ Alexa
- ↳ EasyDAQ Relay Card
- ↳ Email+
- ↳ Global Property Manager
- ↳ iTunes (Discontinued)
- ↳ NOAA Weather
- ↳ SQL Logger
- ↳ Timers and Pesters
- ↳ WeatherSnoop
- ↳ Growl (Discontinued)
- ↳ iCal Alarm Processor (Discontinued)
- ↳ Indigo Server Software
- ↳ Indigo Mac Client App
- ↳ Indigo Touch for iOS
- ↳ Indigo Touch for the Web
- ↳ Indigo Reflectors (remote access)
- ↳ Extending Indigo
- ↳ AI Coding Agents
- ↳ Python Scripting
- ↳ Plugin SDK and Development
- ↳ Client APIs
- ↳ Integrating Services/Applications
- ↳ Hacking
- ↳ Help Converting to Python 3
- ↳ Help Converting from AppleScript
- ↳ AppleScript Scripting
- ↳ Extending Indigo with Plugins and Python
- ↳ Indigo Accounts, Website, Forums, How-To Wiki, and Documentation
- ↳ Archived Posts
- 3rd Party Plugins and Developers
- ↳ Plugin Lists
- ↳ Developer Information for this Forum
- ↳ AaronLionsheep’s Plugins
- ↳ ShellyMQTT
- ↳ ShellyNGMQTT
- ↳ AB's Plugins
- ↳ AD2USB Alarm Interface
- ↳ Anyone's Plugins
- ↳ Autolog's Plugins
- ↳ AWTRIX
- ↳ Dynamic View Controller
- ↳ Foscam HD Controller
- ↳ Hubitat
- ↳ LIFX Controller
- ↳ nanoleaf Controller
- ↳ Roon Controller
- ↳ SMAPPEE Controller
- ↳ Squeezebox Controller
- ↳ Starling Bridge
- ↳ Stella-Z Thermostat Controller
- ↳ Touch Portal
- ↳ TRV Controller
- ↳ Z-Wave Interpreter
- ↳ Zigbee2mqtt
- ↳ Benjamin Schollnick's Plugins
- ↳ Berkinet's Plugins
- ↳ Bill's Plugins
- ↳ Bouncing Ball LTD
- ↳ Dave's Plugins
- ↳ Announcements Plugin
- ↳ Bike Share Plugin
- ↳ Dave's Scripts
- ↳ GhostXML Plugin
- ↳ Indigo Log Viewer
- ↳ Matplotlib Plugin
- ↳ Multitool Plugin
- ↳ OWServer Plugin
- ↳ Z-Wave Node Matrix Plugin
- ↳ Deprecated Plugins
- ↳ Thingspeak Plugin
- ↳ WUnderstation Plugin
- ↳ WUnderground Plugin
- ↳ Fantastic Weather Plugin
- ↳ Duncan’s Plugins
- ↳ FlyingDiver's Plugins
- ↳ Ecobee
- ↳ Harmony Hub
- ↳ Home Assistant Agent
- ↳ LIFX Bridge
- ↳ Lutron
- ↳ miniUniFi
- ↳ MQTT
- ↳ Spy Connect
- ↳ Trane Nexia
- ↳ Twilio
- ↳ Other Plugins
- ↳ Discontinued Plugins
- ↳ RFPlayer
- ↳ MyQ
- ↳ Better Email
- ↳ GlennNZ's Plugins
- ↳ Actron QUE AC Plugin
- ↳ AppleTV Plugin
- ↳ BlueIris
- ↳ DeepState AI Plugin
- ↳ Deluxe Graphing
- ↳ Device Timer
- ↳ Dreame Vacuum Plugin
- ↳ Emby Plugin
- ↳ Enphase Envoy Solar
- ↳ ESPHome4Indigo
- ↳ FindFriendsMini Plugin
- ↳ Gecko Spa Plugin
- ↳ Holiday Plugin
- ↳ HomeKitLink Siri
- ↳ iMessage
- ↳ iRoomba iRobot Plugin
- ↳ Kiosk Home iOS App
- ↳ LedSimple Effects Plugin
- ↳ Mammotion Robot
- ↳ Paradox Alarm Plugin
- ↳ Sipura SPA VOIP Plugin
- ↳ Solar Smart
- ↳ Sunrise Plugin
- ↳ Tesla Battery
- ↳ Windows PC Remote Plugin
- ↳ Greg Glockner's Plugins
- ↳ Greg's Plugins
- ↳ Honeywell TC2 Security
- ↳ howartp's Plugins
- ↳ Clock Display
- ↳ EnergyLink
- ↳ Font Awesome
- ↳ Honeywell Evohome
- ↳ MyEnergi Hub
- ↳ Neo Smart Blinds
- ↳ Pulse Counter
- ↳ Sense Home Energy
- ↳ Sensibo
- ↳ Somfy Manager
- ↳ Tesla EV Control
- ↳ Variable Devices
- ↳ Verisure Alarm
- ↳ Volvo On Call
- ↳ Wakeup Scheduler
- ↳ ZWave Lock Manager
- ↳ ZWave Sensor Logger
- ↳ ZWave Scene Controller
- ↳ ZWave Watcher
- ↳ Zwave Window Controller
- ↳ Jason's Plugins
- ↳ GitHub Plugin Updater
- ↳ Network Devices
- ↳ Power Source
- ↳ Prometheus Client
- ↳ Prowl Notify
- ↳ RToggle
- ↳ Webcam
- ↳ XMPP Client
- ↳ JoyUnspeakable - Plugins by David Garozzo
- ↳ Bouncie OBD Plugin
- ↳ On-Screen Keyboard Plugin
- ↳ Automatic OBD-II (discontinued)
- ↳ Karl's Plugins and Scripts
- ↳ AppleTV Plugin
- ↳ ARDUINO Plugin
- ↳ Devices and Variables
- ↳ FINGSCAN
- ↳ Homematic Plugin
- ↳ homeAway - presence
- ↳ Hue Lights
- ↳ Archives
- ↳ Indigo Utilities
- ↳ INDIGOplotD
- ↳ Migrate SQLite to PostgreSQL
- ↳ Min / Max / Average Plugin
- ↳ Mother Plugin
- ↳ Network Scanner
- ↳ piBeacon
- ↳ SecondsSinceLastChange Plugin
- ↳ Shelly Plugin
- ↳ Simple Applescript to Indigo (SATI) Interface
- ↳ startupAction Plugin
- ↳ uniFi-WiFi-AP
- ↳ VoiceReceiver
- ↳ kmarkley's plugins
- ↳ Korey’s Plugins
- ↳ Anthem-Rs232
- ↳ Apple Music Control
- ↳ Music Manager
- ↳ Spotify Control
- ↳ Viewsonic Projector Rs232
- ↳ VLC Control
- ↳ Kwijibo007’s Plugins
- ↳ Doorbird
- ↳ Monoprice 6 Zone Amp
- ↳ SSH Switch
- ↳ Samsung TV
- ↳ Mpoulson’s Plugins
- ↳ Ring Doorbell
- ↳ Mr.Slim Heat Pump
- ↳ NuHeat Heated Floors
- ↳ EMA\BlueFrog Solar Micro-Inverters
- ↳ PurpleAir
- ↳ Nathan Williams' Plugins
- ↳ Nick's Plugins
- ↳ Autelis Jandy
- ↳ Autelis Somfy
- ↳ Hikvision Camera Alerts
- ↳ Honeywell Thermostat
- ↳ TED 5000
- ↳ Neil's Plugins
- ↳ Daikin Wifi Controller
- ↳ GivEnergy Cloud Controller
- ↳ Glow IHD/CAD Energy Monitor
- ↳ Honeywell Evohome
- ↳ Jaguar/Land Rover InControl
- ↳ Octopus Energy Agile Tariff
- ↳ Solcast Solar Forecast
- ↳ Velux Active
- ↳ WLED LED Controller
- ↳ papamac’s plugins
- ↳ Virtual Garage Door
- ↳ Pi GPIO
- ↳ Perry the Cynic
- ↳ racarter's plugins
- ↳ Blink
- ↳ Heatmiser Neo
- ↳ Hive
- ↳ Netatmo Multi
- ↳ Sunsynk
- ↳ Tapo
- ↳ Texecom
- ↳ Tuya
- ↳ Watchdog
- ↳ raneil's corner
- ↳ rbdubz3's Plugins
- ↳ Smart Setpoints
- ↳ Sylvania Lightify
- ↳ Light Scenes
- ↳ RFXCOM
- ↳ RogueProeliator's Plugins and Apps
- ↳ TiVo Network Remote
- ↳ Roku Network Remote
- ↳ Niles Audio Zone Receiver
- ↳ Sharp TV Network Remote
- ↳ Sony Bravia Network Remote
- ↳ DomoPad Android Client
- ↳ Onkyo Receiver
- ↳ Plex Media Server Manager
- ↳ Google Assistant
- ↳ Ryan Buckner's Plugins
- ↳ Tomorrow.io Plugin
- ↳ SearchCz's Plugins
- ↳ Roomify
- ↳ Securify
- ↳ Simon’s Plug-ins
- ↳ Claude Skill
- ↳ Domio
- ↳ Home Intelligence
- ↳ MCP Lite
- ↳ Netro Irrigation
- ↳ Sofabaton
- ↳ UK Trains
- ↳ TwitchCaptain's Home Automation Bazaar
- ↳ Broadlink Devices
- ↳ APC Metered Rack PDU
- ↳ Captain’s Recapitulation
- ↳ VTMikeL's plugins
- ↳ Auto Fan
- ↳ Auto Lights
- ↳ Grafana Dashboard and InfluxDB Client
- ↳ Security Spy Helper
- ↳ August Home
- ↳ Google Vision
- ↳ Just Add Power
- ↳ MCP Server
- ↳ WeatherSnoop
- ↳ WebDeck Software
- ↳ BAFControl
- ↳ homebridge-indigo (deprecated)
- ↳ WonderSlug's Plugins
- ↳ Archives (developer left platform)
- ↳ Bert's Plugins
- ↳ Indify
- ↳ Chameleon Plugins
- ↳ NEST Home
- ↳ iTravel
- ↳ LED Device Manager
- ↳ iFindStuff
- ↳ Bip's Plugins
- ↳ Colorado4Wheeler’s Plugins by EPS
- ↳ Unsupported and Legacy Plugins
- ↳ Homebridge Buddy
- ↳ Device Extensions Plugin
- ↳ HomeKit Bridge
- ↳ LCD Creator
- ↳ Other Indigo Bits and Bytes
- ↳ Room-O-Matic
- ↳ Scene Toggle
- ↳ Super Conditions (IF-THEN-ELSE)
- ↳ Firstnibble
- ↳ iAutomate.com Long Range RFID Plugin
- ↳ indilinq
- ↳ Jacob Lindehoff's Plugins
- ↳ Kristian's Plugins
- ↳ Mission Machines' Plugins
- ↳ Nathan Sheldon Software
- ↳ Proxidyne
- ↳ Sean's Plugins
- ↳ Spencer's Plugins
- ↳ thechad.io
- ↳ Travis' Plugins
- ↳ Smartphone Radar
- ↳ DSC Alarm Plugin
- ↳ DigiTemp 1-Wire Temperature Plugin
- ↳ Yergey's Forum
- ↳ ZachBenz's Plugins
- ↳ RingForIndigo
- User Contributions
- ↳ User Plugins
- ↳ Open Source Plugins
- ↳ Adapters
- ↳ Alexa-Hue Bridge
- ↳ DIRECTV DVR Control
- ↳ Dynamic Control
- ↳ HassBridge
- ↳ Photo Frame
- ↳ Pushover
- ↳ Archives
- ↳ Rachio
- ↳ Security Camera
- ↳ Sonos
- ↳ Vera Bridge
- ↳ Yamaha RX
- ↳ 8 Channel Network Relay
- ↳ Python Scripts
- ↳ Apple Shortcuts
- ↳ Other Scripts
- ↳ Control Page Designs and Images
- ↳ Other Applications and Integrations
- ↳ Miscellaneous
- ↳ AppleScripts
- ↳ Archived Posts
- General Home Automation Discussions
- ↳ Switching to Indigo
- ↳ Vendor Announcements
- ↳ Cool Home Automation Finds
- ↳ Help Wanted & Bounties
- ↳ How Do I...
- ↳ Switching Hardware Technologies
- ↳ User Modifications
- ↳ Classifieds
- ↳ General Home Automation
- ↳ General Chat
- Professional Installer Discussions
- ↳ Finding Installers
- ↳ Installer Discussions