renderer: support for switch type and accessory number