I need to monitor HP printer state (ink, paper, etc). Hplip has hp-info tool with debug-mode and very verbose output. But I can't find any documentation with explanation of its data. For example:
hp-info[31896]: debug: printer_status=1
hp-info[31896]: debug: device_status=2
hp-info[31896]: debug: cover_status=4
hp-info[31896]: debug: detected_error_state=64 (0x40)
hp-info[31896]: debug: Printer status=1000