agame wrote:Sorry... I was on a small screen and didn't check on the specific posts you should look at. First see this post from @neilk, it gives the general locations and methods for making it work. Then, Check out the final revised script in this post (This is really the only script you will need)....Being new to Indigo I'm still at a loss to grasp where to place the code on this post? (On vera I would be adding some to a startup script and the remainder on triggers.) Gonna have to study harder.
Basically, you are creating a background script that Indigo will run on startup. That script will listen for events received from your DoorBird and take tell Indigo to run some arbitrary action group. Here is the code bit that for starts an action group for a Button Push (doorbell rung) event:
- Code: Select all
if self.path == "/doorbell":
indigo.server.log("DoorBird sent doorbell command", type="DoorBird")
indigo.actionGroup.execute(actionBell)
- Code: Select all
actionBell = 384010246 # ID of Action Group to run on the Doorbell rings.
So, basically,
- Follow the instructions to add an event to the DoorBird
- Place the script in some convenient location (like: /Library/Application Support/Perceptive Automation/Indigo 7/Scripts/Attachments
- Create an action to make your SONOS announcement
- Edit the script to change the action code to the code of your new action
- Ring the DoorBird
Good luck and post back here if you need any help.