Add LD2410 BLE integration#83883
Conversation
|
Hi 930913 It seems you haven't yet signed a CLA. Please do so here. Once you do that we will be able to review and accept this pull request. Thanks! |
- Add integration - Add config flow - Add binary_sensor - Add tests - Update CODEOWNERS
- Add return types - Raise errors from previous error - Rm unneeded log
af67cba to
7e4cf3b
Compare
- Use BinarySensorEntityDescription - Remove lokalized languages - Remove dupe async_add_entities call
Also catch all BleakError
And don't concatenate f strings.
s/led/ld2410/
Use the entity description to get the key
Track connectivity on the coordinator and return availiblity accordingly.
Forgot to add it, lol.
TODO: Tests
|
This looks like its pretty close to ready. I just need to find time to do another review pass after I've had enough sleep to be sure 😄 |
@bdraco How has your sleeping been? 😆 |
|
Not as well as I had hoped. This is still on my list to get done |
| ENTITY_DESCRIPTIONS = [ | ||
| BinarySensorEntityDescription( | ||
| key="is_moving", | ||
| device_class=BinarySensorDeviceClass.MOTION, | ||
| has_entity_name=True, | ||
| name="Motion", | ||
| ), | ||
| BinarySensorEntityDescription( | ||
| key="is_static", | ||
| device_class=BinarySensorDeviceClass.OCCUPANCY, | ||
| has_entity_name=True, | ||
| name="Occupancy", | ||
| ), | ||
| ] |
There was a problem hiding this comment.
MINOR: This could be a tuple since it never changes
There was a problem hiding this comment.
Noted. I might change it in a subsequent MR.
|
Looks like there is some feedback on the docs PR to address: home-assistant/home-assistant.io#25264 |
Proposed change
Adds an MVP integration to connect to LD2410B sensors over bluetooth. This was the mmWave sensor demonstrated by Andreas Spiess at https://www.youtube.com/watch?v=dAzHXpP3FcI
Type of change
Additional information
Checklist
black --fast homeassistant tests)If user exposed functionality or configuration variables are added/changed:
If the code communicates with devices, web services, or third-party tools:
Updated and included derived files by running:
python3 -m script.hassfest.requirements_all.txt.Updated by running
python3 -m script.gen_requirements_all..coveragerc.To help with the load of incoming pull requests: