get_alarm function

Get inverter device alarms