I have an RFID key fob reader, which has a Custom State, 'currentTag'. I need to delete the value to avoid random failures in which my door opens (with the help of a strong wind).
Is it possible to use python to modify a Custom State of a device? If so, given my very limited python expertise, could someone please help with the code?
Thanks,
Bob
Modify device state
- matt (support)
- Site Admin
- Posts: 21450
- Joined: Mon Jan 27, 2003 1:17 pm
- Location: Texas
- Contact:
Re: Modify device state
Updating of device states via Python API is restricted to the plugin type that defines the device (in your case probably the RFID plugin).
If this is something you just need to do once, then you could make a backup of Indigo's database file (just for safety) then open it in a raw text editor and make the change manually. If it something you need to happen programmatically from Indigo, then it will require a modification to the plugin to add a new action that resets the state. Not terribly difficult to do, but it does require some Python and XML knowledge.
If this is something you just need to do once, then you could make a backup of Indigo's database file (just for safety) then open it in a raw text editor and make the change manually. If it something you need to happen programmatically from Indigo, then it will require a modification to the plugin to add a new action that resets the state. Not terribly difficult to do, but it does require some Python and XML knowledge.
Re: Modify device state
The custom state requires resetting after each entry, and with virtually no python, and zero XML, I guess I'm stuck.
Thanks for helping me avoid fruitless rabbit holes.
Thanks for helping me avoid fruitless rabbit holes.
- matt (support)
- Site Admin
- Posts: 21450
- Joined: Mon Jan 27, 2003 1:17 pm
- Location: Texas
- Contact:
Re: Modify device state
Phidgets. I think he has abandoned it.