homebridge-ssh icon indicating copy to clipboard operation
homebridge-ssh copied to clipboard

Can use this plugin 2 times in accesories?

Open rustywild opened this issue 8 years ago • 2 comments

how can i use this plugin 2 times with diferents values?

thanks

rustywild avatar Jun 01 '16 14:06 rustywild

I tried it, it's working :) Juste add a new accessorie with your different values

deadbone avatar Aug 22 '16 07:08 deadbone

When i add 2 different accessories, and activate 1 then the second will also seems to be on after update the homekit app. How can i solve this?

And what is the value of "exact_match": true, what will happen when i change to false?

    "accessories": [{
            "accessory": "Weather",
            "apikey": "secret",
            "location": "Amsterdam,NL",
            "name": "Temp."
    }, {
            "accessory": "SSH",
            "name": "iTunes Cay",
            "on": "osascript /Volumes/Data/Peter/Documents/Script/Cay.scpt",
            "off": "osascript -e 'tell application \"iTunes\" to stop'",
            "state": "osascript -e 'tell application \"iTunes\" to get player state'",
            "on_value": "playing",
            "exact_match": true,
            "ssh": {
                    "user": "Peter",
                    "host": "127.0.0.1",
                    "port": 22,
                    "password": "lala"
                    }
    }, {
            "accessory": "SSH",
            "name": "iTunes Peter",
            "on": "osascript /Volumes/Data/Peter/Documents/Script/iTunes.scpt",
            "off": "osascript -e 'tell application \"iTunes\" to stop'",
            "state": "osascript -e 'tell application \"iTunes\" to get player state'",
            "on_value": "playing",
            "exact_match": true,
            "ssh": {
                    "user": "Peter",
                    "host": "127.0.0.1",
                    "port": 22,
                    "password": "lala"
                    }
    }],

poudenes avatar Jan 18 '17 09:01 poudenes