https://github.com/postlund/dlink_hnap
Experimental integration to Home Assistant supporting D-Link devices
https://github.com/postlund/dlink_hnap
custom-integration dlink home-assistant
Last synced: 8 months ago
JSON representation
Experimental integration to Home Assistant supporting D-Link devices
- Host: GitHub
- URL: https://github.com/postlund/dlink_hnap
- Owner: postlund
- License: mit
- Created: 2020-07-23T13:19:22.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2025-02-09T10:33:42.000Z (over 1 year ago)
- Last Synced: 2025-06-03T15:14:57.155Z (about 1 year ago)
- Topics: custom-integration, dlink, home-assistant
- Language: Python
- Homepage:
- Size: 9.77 KB
- Stars: 41
- Watchers: 8
- Forks: 7
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README


[](https://github.com/custom-components/hacs)
[](https://github.com/ambv/black)
# D-Link HNAP
This is an experimental integration to Home Assistant supporting D-Link devices. It communicates
locally with the devices, i.e. no cloud needed, but only supports polling.
The following devices are supported:
* Motion Sensor (DCH-S150)
* Water Leakage Sensor (DCH-S160 and DCH-S161)
*DISCLAIMER: Currently I don't use any of these devices. So I cannot test the integration. It is
provided as reference and for the community to maintain. Please send PRs!*
## Installation
### HACS _(preferred method)_
This integration is available in the default repository list, just search for it!
### Manual install
Place the `custom_components` folder in your configuration directory
(or add its contents to an existing `custom_components` folder).
## Configuration
This integration does not support config flows yet, so you need to add
it in `configuration.yaml`:
```yaml
binary_sensor:
- platform: dlink_hnap
name: Kitchen Motion
host: 10.0.0.10
type: motion
username: Admin
password: 123456
timeout: 35
- platform: dlink_hnap
name: Kitchen Leakage
host: 10.0.0.11
type: water
username: Admin
password: 123456
```
Here are the configuration options:
key | optional | type | default | description
-- | -- | -- | -- | --
`name` | True | string | D-Link Motion Sensor | Name for the sensor
`type` | False | string | | Sensor type: motion or water
`host` | False | string | | IP address to sensor
`username` | True | string | Admin | Username for authentication (always Admin)
`password` | False | int | | PIN code written on the device
`timeout` | True | int | 35 | Amount of seconds before sensor going to `off` after *last* motion (only used when `type` is `motion`)