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

homebridge-applescript - script triggers only working externally - why? #11

Open
manuspam opened this issue Nov 12, 2022 · 1 comment
Open

Comments

@manuspam
Copy link

manuspam commented Nov 12, 2022

Hi all

i cannot get this plugin to work.
I install it in Homebridge, set my triggername and commands correctly and restart the server.
The applescripts just do not fire.

Please find my json file below.
https://jsonlint.com/ says my json is ok.

Is this plugin still operational in Big Sur 11.7?
Is the problem the accessability rights in Mac Settings?
Or is it because I use the "Homebridge Tuya Platform" plugin and use a Tuya item as the trigger?

Any ideas appreciated.
Manu


{
"bridge": {
"name": "Homebridge 9599",
"username": "123",
"port": 51953,
"pin": "456",
"advertiser": "bonjour-hap"
},
"platforms": [{
"name": "Config",
"port": 8581,
"auth": "form",
"theme": "auto",
"tempUnits": "c",
"lang": "auto",
"platform": "config"
},
{
"options": {
"username": "123",
"password": "456",
"accessId": "234",
"accessKey": "789",
"lang": "en",
"projectType": "2",
"appSchema": "tuyaSmart",
"countryCode": 41,
"debug": false
},
"name": "TuyaPlatform",
"platform": "TuyaPlatform"
}
],
"accessories": [{
"accessory": "Applescript",
"name": "TESTTRIGGER",
"on": "tell application ''TextEdit'' to activate",
"off": "tell application ''TextEdit'' to quit"
}],
"disabledPlugins": []
}

@manuspam manuspam changed the title Is this plugin still working? homebridge-applescript plugin not working for me Nov 12, 2022
@manuspam manuspam reopened this Nov 15, 2022
@manuspam
Copy link
Author

Update: I can trigger scripts which will run, but not WITHIN homebridge. When I trigger the commands externally, the scripts run fine. Any ideas why this only works externally?

@manuspam manuspam changed the title homebridge-applescript plugin not working for me homebridge-applescript scripts not working, only externally Nov 15, 2022
@manuspam manuspam changed the title homebridge-applescript scripts not working, only externally homebridge-applescript - script triggers only working externally - why? Nov 15, 2022
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

1 participant