I wrote the AppDaemon application that adds four sensors to HA with data from Brother network printer WWW interface. Tested only with HL-L2340DW and MFC-J5320DW.
Arguments:
-
host
- hostname or IP address of the printer (required) -
status_interval
- interval scanning for status page, default 10 sec., status and toner sensors (optional) -
info_interval
- interval scanning for information page, default 300 sec., printer counter and drum usage sensors (optional) -
use_mqtt
- use mqtt or add entites by AppDaemon (optional), default false -
mac
- printer MAC address to generate unique_id for MQTT Discovery (optional) -
retain
- retain true or false for MQTT, default false
Configuration example:
brother_printer_status:
module: brother_printer_status
class: BrotherPrinterStatus
host: !secret brother_hostname
status_interval: 5
info_interval: 600
use_mqtt: true
mac: 00:11:22:33:44:55
retain: true
Repository: https://github.com/bieniu/ha-ad-brother-printer