python-insteonplm icon indicating copy to clipboard operation
python-insteonplm copied to clipboard

cannot easily delete aldb record from PLM

Open rpdrewes opened this issue 5 years ago • 2 comments

The del_aldb command works to delete records from non-PLM devices, by setting inuse flag to 0, but it seems to have no effect on the PLM. The records still stay inuse 1 when deleted.

I have seen references in other Issues that the aldb on the PLM is different than the aldbs on the non-PLM devices, but I'm at a loss as to how to delete records from the PLM without using button-unlinking or a full factory reset of the PLM (followed by relinking the desired devices).

Am I missing something? Thanks

rpdrewes avatar Dec 22 '19 23:12 rpdrewes

The method for doing his is to use the PLM manage_aldb_record method. There is no way to directly manage an ALDB record in the modem. What this method requires is to set the control_code which determines the action to take on a link (not a record directly). Have a look at the doc string at the top of the method : https://github.com/nugget/python-insteonplm/blob/7a8f77455572231474b3277781fa8272e0117e70/insteonplm/plm.py#L261

teharris1 avatar Jan 20 '20 00:01 teharris1

@rpdrewes hopefully this answers your question. Let me know if it does not.

teharris1 avatar Feb 21 '20 00:02 teharris1