All, this is my small contribution using PowerShell to get an inventory of your system:
Base code:
$vera = wget “http://192.168.81.1:3480/data_request?id=user_data2&output_format=xml”
$xmlvera = [xml]$vera.Content
(you could create $devices here that is equal to $xmlvera.root.devices.ChildNodes to shorten/replace typing, I didn’t to allow some basic raw examples)
What you can do with these objects (type in the whole line and press enter):
$xmlvera.root.devices.ChildNodes.Count
$cooper = $xmlvera.root.devices.ChildNodes | Where {$_.manufacturer -Match “Cooper”}
$cooper.Count
$dimcooper = $cooper | Where {$.device_type -Match “DimmableLight”}
$swcooper = $cooper | Where {$.device_type -Match “BinaryLight”}
$alldim = $xmlvera.root.devices.ChildNodes | Where {$.device_type -Match “DimmableLight”}
$allsw_and_relay = $xmlvera.root.devices.ChildNodes | Where {$.device_type -Match “BinaryLight”}
$dimcooper.count
$swcooper.count
$alldim.count
$allsw_and_relay.count
Count by manufacturer field example:
$xmlvera.root.devices.ChildNodes | Group-Object manufacturer
Okay, I have these in variables, how do I get this data to excel (use $[VARIABLE] | Export-Csv -NoTypeInformation [PATH AND FILE NAME].csv)?
$xmlvera.root.devices.ChildNodes | Export-Csv -NoTypeInformation .\alldevices.csv
$cooper | Export-Csv -NoTypeInformation .\cooperdevices.csv
I believe this works for both UI5 and 7, 7 I know works for sure.
You can use PowerShell to change state as well. If you don’t know PowerShell, that’s okay, if you have Windows you have it and with an IP change above these commands should work as is (if you have Cooper, otherwise you can use the name of your devices in place of the word cooper or you can even filter on different field). If you have Linux you can use mono.
Enjoy