-
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.
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.
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.