iobroker-community-adapters / ioBroker.mydlink

adapter to control mydlink sockets and motion detectors
MIT License
4 stars 3 forks source link
dlink hnap iobroker motion-detectors polling-interval smarthome smartplugs sockets

Logo

ioBroker.mydlink

NPM version Downloads Number of Installations Current version in stable repository Translation status

NPM

Tests: Test and Release

myDlink Adapter for ioBroker.

Allows to control power sockets or motion detectors from D-Link from within ioBroker. mydlink is a registered trademark of D-Link. This Software is developed by the ioBroker community and is not owned or controlled by D-Link.

This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers. For more details and for information how to disable the error reporting see Sentry-Plugin Documentation! Sentry reporting is used starting with js-controller 3.0. This also helps with supporting new devices.

Currently tested devices:

Model Type Image
DSP-W215 Smart Plug (socket, temperature, current) Needs polling Image
DSP-W115 Smart Plug (socket) Image
DCH-S150 Motion Detector (last motion detected) Needs polling Image

The adapter needs to poll some devices. Newer ones do send push messages, which is now supported. Sensor readings and motion detection will be delayed by polling interval, if they need to be polled (can be set in config).

Configuration:

Nameset a name here, must be unique (for mydlink devices)
IPfill in IP address here, hostname should also work
PINPIN is printed on a sticker on the device, probably at the bottom. Can be TELNET for DSP-W115, see below.
Poll intervalper device poll interval
Set 0 to disable polling.
Recommendation: Set a fast poll interval for sensors and a longer one for plugs.
enableif not enabled, will not be polled or controlled.
Devices that are not plugged in can be disabled to avoid network traffic and error messages in the log.

The adapter does not interfere with the use of the app.

Setup of DSP-W115

DSP-W115 and other newer devices use a completely different protocol and a different setup. There are two ways to use them.

  1. Use App and Adapter at the same time: If you want to keep using the app, you have to put the device into factory mode, following this procedure:
    1. Reset device into recovery mode by holding the wps/reset button during boot until it starts blinking red instead of orange.
    2. Now a telnet deamon is running, connect to the device wifi
    3. Run telnet 192.168.0.20 and login with admin:123456 (or use putty, don't forget to select telnet instead of ssh).
    4. Run nvram_set FactoryMode 1
    5. Run reboot; exit; to reboot the device.
    6. Now you should enter TELNET as Pin, and the adapter will retrieve the required data from the device itself.
  2. Don't want to use the App
    1. Remove the device from the app, this will reset the device
    2. Start setup in the app again and configure your Wifi on the device.
    3. Now the device will reoobt and connect to your Wifi. During that time close the app, make sure it is really closed.
    4. Now the device should be connected to your Wifi and not connected to the app, so that the PIN from the sticker will work in the adapter. (If the device does not connect to your wifi or the device does not accept login via the PIN please try again. Press the button on the device until it lights up red in order to reset.)

Changelog

1.3.6 (2024-05-24)

1.3.5 (2023-10-30)

1.3.4 (2023-08-18)

1.3.3 (2023-08-07)

1.3.2 (2023-06-23)

1.3.1 (2023-06-12)

1.3.0 (2023-05-15)

1.2.1 (2022-09-01)

1.2.0 (2022-08-30)

1.1.12 (2021-07-21)

1.1.11 (2021-06-30)

1.1.10 (2021-06-30)

1.1.9 (2021-05-23)

1.1.8 (2021-05-20)

1.1.7 (2020-10-09)

1.1.6 (2020-10-09)

1.1.5 (2020-09-03)

1.1.4 (2020-06-23)

1.1.3 (2020-06-18)

1.1.2 (2020-06-01)

1.1.1 (2020-06-01)

1.1.0 (2020-05-31)

1.0.11 (2020-05-10)

1.0.10 (2020-05-10)

1.0.9 (2020-05-07)

1.0.8 (2020-05-05)

1.0.7 (2020-05-02)

1.0.6 (2020-05-02)

1.0.5 (2020-05-02)

1.0.4 (2020-05-01)

1.0.3 (2020-05-01)

1.0.2 (2020-04-30)

1.0.1 (2020-04-30)

1.0.0 (2020-04-30)

0.0.7

0.0.6

0.0.5

0.0.4

0.0.3

0.0.2

0.0.1

License

MIT License

Copyright (c) 2024 Garfonso garfonso@mobo.info

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.