Added doc on restrictions

14 views
Skip to first unread message

George Farris

unread,
Jan 21, 2016, 11:44:47 AM1/21/16
to pytom...@googlegroups.com
Hi all,

I added some docs on the restriction command, it was missing.



Cheers
George

David

unread,
Jan 30, 2016, 3:05:25 PM1/30/16
to pytomation
This is cool; I never researched how that was programmed.

For commands that I want to restrict completely, I override the COMMANDS attribute, to remove the command altogether. But I can see you wanting to restrict only in certain circumstances.

Are the instances that show this being used?

I assume this won't restrict the physical switch... Or is there code to immediately return the device to the restricted state, if the device changes states outside pytomation?

George Farris

unread,
Feb 1, 2016, 11:50:14 AM2/1/16
to pytom...@googlegroups.com
No this does not restrict the physical switch.  The online docs have an
example of using it in an instance.

You can use the Attribute.TARGET to add devices to be restricted.

The only real problem is that all devices must already exist to use it
which limits the command a bit.

George
Reply all
Reply to author
Forward
0 new messages