kylewhirl / homebridge-shortcuts

8 stars 2 forks source link

Stateless #2

Open alxalxnet opened 1 year ago

alxalxnet commented 1 year ago

Describe The Bug:

I set up tested the plug in and it works fine. However, that stateless feature behaves oddly: if I turn on a switch, the shortcut will fire on my Mac , but the switch will not automatically turn off.

To Reproduce:

In the settings I unchecked the box "Stateful" and typed the name of the shortcut in the ON field, leaving the OFF field empty.

Expected behavior:

I expected the button in homekit to automatically go back to the OFF status once the shortcut has been fired.
Logs:

Show the Homebridge logs here, remove any sensitive information.

Plugin Config: { "name": "Resilio Switch", "stateful": true, "time": 1000, "on": "Proj On", "off": "Proj Off", "accessory": "Siri Shortcuts" }, { "name": "Restart Modem", "stateful": false, "time": 300, "on": "Proj On", "accessory": "Siri Shortcuts" }, { "name": "Hue Fade out", "stateful": false, "time": 1000, "on": "Hue Fade Out 15", "accessory": "Siri Shortcuts" }

Show your Homebridge config.json here, remove any sensitive information.

Screenshots:

Environment:

Vic-Firth commented 4 months ago

I have the same problem. No matter what I set things at it never turns off on its own.