iobroker.mystrom

0.1.0 • Public • Published

Logo

ioBroker.mystrom

NPM version Downloads Number of Installations (latest) Number of Installations (stable) Dependency Status Known Vulnerabilities

NPM

Tests: Test and Release

mystrom adapter for ioBroker

myStrom adapter

The adapter reads all data from the myStrom app and updates it every 30 minutes. It also reads the local data of the devices if they are online and an IP has been assigned via the app or manually. To do this, all devices must be online when the adapter is started. Buttons are not always online either try by pressing twice and then holding for 8 seconds or reset by pressing for 10 seconds until it flashes red and then pressing once. After the reset, it is necessary to reconnect via WLAN. Connect manually by pressing 3 times and then log in manually to the WLAN and only then follow the path in the app. The button is then online and can be read out.

URLs can be entered for the respective actions of the buttons and motion detectors. The switches can also be switched via ioBroker State.

Wifi switch

To switch the devices use the localCommand mystrom.0.XXXXXXX.localCommands.

Buttons

The SimpleAPI must be used to switch ioBroker states.

The SimpleAPI can be activated via an ioBroker web.0 instance. Activate the "Built-in 'Simple API'" options in the web.0 instance.

The following can then be used to set a state Set the following state under Objects mystrom.0.XXX.localData.api/v1/device.XXXX.single or long or double (devices must be online when the adapter is started, press twice and then hold for 8 seconds. Then restart the adapter until the localData folder is filled).

get://ioBrokerIP:8082/toggle/javascript.0.test

PIR motion detector

Set the following state under objects mystrom.0.XXXXX.localData.api/v1/action.pir

get://ioBrokerIP:8082/toggle/javascript.0.test

More details on how to change two states at the same time, for example https://api.mystrom.ch/#d74e63de-9e48-4d02-8164-cd8d7ed67332

DE:

Der Adapter liest alle Daten aus der myStrom App und aktualisiert diese alle 30min. Er liest außerdem die lokalen Daten der Geräte wenn sie online sind und über die App oder manuell eine IP vergeben wurden ist. Dazu müssen alle Geräte bei Adapterstart online sein. Button sind nicht immer online entweder probieren über 2x drücken und dann 8 Sekunden gedrückt halten oder reseten über 10 Sekunden drücken bis er rot blinkt und dann einmal drücken. Nach dem Reset ist ein erneutes Verbinden via WLAN notwendig. Manuell verbinden via 3 mal drücken und dann manuell bei dem WLAN anmelden und dann erst den Weg in der App folgen. Danach ist der Button online und kann ausgelesen werden.

Es können URLs eingegeben für die jeweiligen Aktionen der Buttons und Bewegungsmelder. Außerdem können die Switch via ioBroker State geschaltet werden.

Wifi-Switch

Zum Schalten der Geräte die localCommand benutzen mystrom.0.XXXXXXX.localCommands.

Buttons

Zum Schalten von ioBroker states muss man die SimpleAPI verwenden.

Die SimpleAPI kann über ein ioBroker web.0 Instanz aktiviert werden. In der Instanz web.0 Optionen "Eingebautes 'Simple-API'" aktivieren.

Zum setzen eines States kann dann folgende URL

Unter Objekte folgenden State setzen mystrom.0.XXX.localData.api/v1/device.XXXX.single oder long oder double (Geräte muss bei Adapterstart online sein, Zweimal drücken und dann für 8 Sekunden halten. Danach Adapter neustarten bis der Ordner localData gefüllt ist.):

get://ioBrokerIP:8082/toggle/javascript.0.test

PIR Bewegungsmelder

Unter Objekte folgenden State setzen mystrom.0.XXXXX.localData.api/v1/action.pir

get://ioBrokerIP:8082/toggle/javascript.0.test

Mehr Details wie man z.B. zwei States gleichzeitig ändert: https://api.mystrom.ch/#d74e63de-9e48-4d02-8164-cd8d7ed67332

Changelog

0.1.0 (2024-04-21)

  • improve cpu usage

License

MIT License

Copyright (c) 2020-2030 TA2k tombox2020@gmail.com

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.

Readme

Keywords

Package Sidebar

Install

npm i iobroker.mystrom

Weekly Downloads

113

Version

0.1.0

License

MIT

Unpacked Size

52.3 kB

Total Files

13

Last publish

Collaborators

  • bluefox
  • tomboxi