Page 1 of 1

Aeotec Siren ZW164 script

PostPosted: Thu Sep 24, 2020 1:43 pm
by zoff
How do I use python to "push a button" on the Aeotec Indoor Siren ZW164. The following script line gives me an error:
Code: Select all
 indigo.device.turnOn[985370218] # "Siren 1- button 1 chimes"

embedded script: 'instancemethod' object has no attribute '__getitem__'

[Solved] Aeotec Siren ZW164 script

PostPosted: Thu Sep 24, 2020 1:57 pm
by zoff
zoff wrote:
How do I use python to "push a button" on the Aeotec Indoor Siren ZW164. The following script line gives me an error:
Code: Select all
 indigo.device.turnOn[985370218] # "Siren 1- button 1 chimes"

embedded script: 'instancemethod' object has no attribute '__getitem__'


After some fiddling I realized that simply changing the [ ] to ( ) did it.