npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

iobroker.mystrom

v0.1.0

Published

myStrom Adapter

Downloads

196

Readme

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 [email protected]

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.