-
Notifications
You must be signed in to change notification settings - Fork 6
myStrom buttons
Besides the dingz buttons, this plugin also supports the myStrom WiFi Button and myStrom WiFi Button+.
If the button is connected to the WiFi long enough when homebridge starts, the plugin might be able to set the callback URL automatically. The easiest way to force a connection to the WiFi is the following:
- Open the case of your myStrom button
- Carefully disconnect and reconnect the battery plug
- Close the case of your myStrom button
The button will connect for a while to the WiFi. If you haven't auto-discovery enabled, then you should restart homebridge now. If auto-discovery is enabled and still running (approximately for 10 min after the start of homebridge), the button should eventually be found and the callback URL be set.
The plugin supports myStrom WiFi Button+ auto-discovery. In order for this to work, once your button is connected to teh WiFi network of your choice, you have to connect the Button to a charger via the USB-C connector. Once the plugin starts, it will discover the button and add it to HomeKit.
It is worth noting that the Button+ is displayed as a temperature and humidity sensor. To configure it, look for an accessory named "Button+ ABCDEF" (where ABCDEF
are the last 6 characters of the Button+'s MAC address printed on the back of it) and display the accessory settings. Navigate to the "Accessories" view, and you should see three accessories:
From there, you can open the button, add it to the Home View or configure actions based on the four buttons' actions.
If this doesn't work, you might have to manually set the callback URL in the myStrom App:
- Open the myStrom App
- If you have not already added your button, add it
- Navigate to the "Button" -> "Settings Menu"
- Under "Trigger URL" set it to
POST
tohttp://your-homebridge-server:18081/button
The WiFi Buttons only connect every so often to the network and of course when the button is pushed. Therefore, the plugin can not reliably set the URL automatically. Furthermore, it might be useful if you use the IP address of your Homebridge Server in the Trigger URL instead of the hostname as this adds another delay/complication in case of DNS resolution issues.
Don't forget to change the port in the Trigger URL if you've set it to another than the default value in the plugin.