I wanted to know it there was an option to lock a device, in certain cases. That would elimnate the obligation of creating multiple action groups. I thought that that feature already existed.
There isn't locking, but you can disable the device (in the Main Window or there is an Action for it in the Actions panel), which will prevent Indigo from sending commands to it or from processing any commands received from it.
Each morning Indigo turns off all X10 devices from each hose code (A, B, C ... etc ). That initialisation is executed a few times a day to prevent light of being left on. When executing in the morning, I would like to prevent some lights of being turned off. That's why I wanted to know if it is possible to lock a specific device to prevent it of being affected by the execution of the action group at that specific moment.
By the answers, I understand that it is not possible.
There definitely isn't a solution if you are using the All Off for House Code XYZ action. That sends a single X10 command that will turn off all modules on the house code, and there is no way to avoid it for some modules on that house code as it is a protocol level command and all modules that are on the house code will respond to it.