I'm trying to figure out how to create a trigger (DeviceStateChangeTrigger) with at least one action using Python but can't seem to put the trigger creation and action creation steps together. The Triggers documentation on this page provides an example of how to create a DeviceStateChangeTrigger but makes no mention of how to add any actions to that trigger. The class properties listed at the top of that page lists "actions" as a property of type "list of Actions", but if I issue the Python command
- Code: Select all
print indigo.tirggers["My Test Trigger with Actions"]