Setting Device Rooms

I have a question regarding changing the rooms that the Caddx devices are located in. In UI5, it appears that the Caddx device (settings) and the alarm device (arm, disarm) will always move to the same room the other device is in. For example, if I move the Caddx device to a room labeled plugins, the alarm device will also move to the same room. Is there a way to separate the two devices?

Thanks,
Steven

P.S. Not sure if logs would be helpful so I left them out.

You’re right, the partition device has the “embedded” flag set to true, which means that it moves around with the parent device. There probably isn’t a good reason for this in UI5 (it was set that way for the old UI2 interface).

See if you can turn off the “embedded” flag through the advanced tab of the partition device. I don’t recall if this is visible in UI5 but I can see it in UI7. If you can, see if your change persists through a Luup reload. Otherwise I can guide you to edit the source of the plugin.

Changing the embedded flag did not persist after a Luup reload. How would I edit the source of the plugin?

Download the L_CaddxNX584Security.lua file from Apps > Develop Apps > Luup Files.

Use a text editor to edit line 599 (or thereabouts) and change the last argument from true to false:

-- before luup.chdev.append( ROOT_DEVICE, childDevices, partitionName(p), PARTITION_STATUS[p]["name"], "urn:schemas-futzle-com:device:CaddxNX584Partition:2", "D_CaddxNX584Partition2.xml", "", "", true
)

-- after luup.chdev.append( ROOT_DEVICE, childDevices, partitionName(p), PARTITION_STATUS[p]["name"], "urn:schemas-futzle-com:device:CaddxNX584Partition:2", "D_CaddxNX584Partition2.xml", "", "", false )

Upload the edited file back to your Vera on the same page. Do a Luup reload and the new code should stick.

Works perfectly! Thank you!! ;D