bieniu/brother

Incorrect status in Russian menu

Closed this issue · 2 comments

Hello.
I don't see issue in this repo from home-assistant/core#30888 from @bastshoes
I have same troubles when I use menu in Russian.
My printer is DCP-L2540DN.

image

Please set logger for brother package to debug:

logger:
  logs:
    brother: debug

After HA restart there will be in log entries like this:

{'1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.10.0': ['0001040000026e', '060104000000c5'], '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.17.0': '1.35', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.8.0': ['63010400000001', '4101040000251c', '1101040000026e', '31010400000002', '6f010400000384', '8101040000000a'], '1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0': 'Brother HL-L2350DW', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.11.0': ['82010400002c72'], '1.3.6.1.2.1.43.10.2.1.4.1.1': '622', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.1.0': 'E78260D9N955740', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.4.5.2.0': 'Ma³o toneru', '1.3.6.1.2.1.1.3.0': '252877000'}

I need this '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.4.5.2.0': 'Ma³o toneru' with correct spelling.

Hello.
Current state "Sleep". In Russian is "Спящий режим"

2020-02-21 00:16:53 DEBUG (MainThread) [brother] RAW data: {'1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.10.0': ['0001040000014d'], '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.17.0': 'R1906110243', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.8.0': ['63010400000001', '1101040000014d', '41010400002648', '31010400000001', '6f01040000157c', '8101040000003c', '86010400000010'], '1.3.6.1.4.1.2435.2.4.3.2435.5.13.3.0': 'Brother DCP-L2540DN series', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.11.0': ['82010400002d93'], '1.3.6.1.2.1.43.10.2.1.4.1.1': '333', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.5.1.0': 'E73932A9N575479', '1.3.6.1.4.1.2435.2.3.9.4.2.1.5.4.5.2.0': 'ÁßïéØÙ àÕÖØÜ    ', '1.3.6.1.2.1.1.3.0': '1171125'},
2020-02-21 00:16:53 DEBUG (MainThread) [brother] Data: {'status': 'áßďéřů ŕőöřü', 'page_counter': 333, 'uptime': 0, 'drum_status': 1, 'drum_counter': 333, 'drum_remaining_life': 98, 'black_toner_status': 1, 'black_toner_remaining': 55, 'black_toner': 60, 'drum_remaining_pages': 11667}

Firefox on web ui open page of mfc with encoding iso-8859-5