Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stateless applescript #9

Open
flyingartichoke opened this issue Jan 24, 2017 · 1 comment
Open

Stateless applescript #9

flyingartichoke opened this issue Jan 24, 2017 · 1 comment

Comments

@flyingartichoke
Copy link

Is it possible to configure the applescript as a "stateless" switch?

I'd like to be able to just call a script and have it run once, rather than define separate on and off scripts. Currently I do this by creating a blank script for the "off" transition and I have a dummy switch which I use in HomeKit to turn off the Applescript switch as soon as it turns on. This works OK, but it'd be really nice to not have to create an extra switch and multiple automations for every Applescript accessory.

An example of where I would like to use this is I have an Applescript which creates a playlist with a random album from my iTunes library. There's no corresponding "off" behavior, and no reason for the switch to stay "on" in HomeKit.

This is already being done in the homebridge-http-simple-switch plugin, so hopefully the same could be done here?

@raphtabe
Copy link

+1 A push button with only one script linked would be great !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants