ListViewAdapter for devices, Basic Device and SwitchDevice templates