Repository navigation
Releases
Releases · juju35/ha-printer-scanner-card
v2.18.0
Features
power_entityoption (also in the visual editor): the switch, light or input boolean of the printer's smart plug adds a round power button in the header of both cards. It stays shown while the printer is off or offline, so the printer can be turned back on from the card; turning it on is immediate, turning it off asks for a confirmation at the top of the card, which warns when a job is under way. Closes #110.
v2.17.4
Fixes
- The repository is renamed
juju35/ha-printer-scanner-card: the card editor's documentation link points to the new address. Card types (custom:printer-card,custom:printer-mini-card) and theprinter-card.jsfile are unchanged, so existing dashboards keep working.
Upgrade note
- The Marketplace now installs the card in
/local/community/ha-printer-scanner-card/. If a card shows a configuration error (Custom element doesn't exist: printer-card), change the dashboard resource (Settings → Dashboards → ⋮ → Resources) from/local/community/ha-printer-card/printer-card.jsto/local/community/ha-printer-scanner-card/printer-card.js, then clear the browser cache.
v2.17.3
Maintenance
- The card source is split into ES modules:
src/(entrysrc/index.js), cut at its sections, with the translations in one file per language (i18n/<lang>.js).scripts/bundle.mjsconcatenates them back, in their original order, into the same single file and per-language files as before; the tests evaluate that bundle.
v2.17.2
Performance
- Card picker: the previews are back (
preview: true), and light. Each card's preview is drawn only once it scrolls into view of Home Assistant's card picker, which otherwise builds the preview of every card at once: until then it holds Home Assistant's state (no render, no history request, no animation). On a dashboard or in the card editor the card is drawn as before.
v2.17.1
Performance
- Card picker: the cards no longer ask Home Assistant for a live preview (
preview: falseinwindow.customCards). The picker drew every card at once (history requests, animations), which made the list slow to open; it now shows each card's description instead.
v2.17.0
Features
- Informational IPP reasons (#98): the IPP state reasons ending in
-report(RFC 8011's information level, such aswifi-not-configured-reporton a printer kept on Ethernet) no longer show up as warnings, in the warning count nor as a chip of the mini card.show_reports: true(both visual editors) brings them back as muted info lines under the full card's alerts, after No alerts when nothing else is wrong. ignore_reasons(YAML): IPP state reasons expected on a given printer, left out of the alerts, with or without their suffix ([wifi-not-configured, door-open]).
v2.16.3
Fixes
- Mini card: a tap outside the card brings the compact view back on iOS too (Safari and the companion app send no click for a tap on something that is not clickable): a press and a release both outside the card now count, a scroll or a drag out of the card does not.
- Mini card: the detailed view folds back to the compact one when the card leaves the page (another dashboard view, a conditional card hidden), like the other mini cards.
- The page no longer moves by itself on state updates: the card is patched in place instead of being rewritten (icons, illustration and picture stay the same nodes, animations no longer restart), and the icons of the status, chips, section titles, alerts and lines keep their size while they load — a rewrite made the full card lose about 12 px for a frame on every update of its entities. The status pill is measured again once Home Assistant's card frame has drawn its content: measured before (no size yet), it showed on the title row until the next resize.
- Masonry view: the card asks for the room it really takes (its drawn height, hidden sections and missing ink or alerts included) instead of a fixed size, so the cards under it no longer leave a gap or overlap.
Maintenance
- An unused discovery helper removed.
- Browser test of the card's height and nodes across state updates (
npm run test:browserruns everytest/*.browser.mjs).
v2.16.2
Fixes
- IPP inks (#92): a marker reported under its plain color name (Magenta, Gray) while its entity ID names a variant (
photo_magenta,light_gray) is now shown as that variant, with its own label and color — the Canon PRO-100's photo magenta and light gray no longer read as a second Magenta and Gray. The cartridge's own name is also found when the printer device has been renamed.
v2.16.1
Fixes
- Illustrated header:
autonow follows the Home Assistant theme alone — a light theme keeps the day picture after sunset, a dark theme still shows the night one.
v2.16.0
Features
- Illustrated header on the full and the mini card (90px): the printer's own picture (HP, Brother, Epson, Canon or generic, still chosen by
pictureor the model) standing on a desk strip in a small office, with its control panel lit and pulsing in the status colour; the name, its status pill (dot and label in the header icon's colour, right after the name only when the whole name and its whole label fit there, else on a line of its own under the subtitle kept to one line; its dot alone when even that does not fit and on cards 200px wide or less; measured on the rendered header, so it holds in every language, the classic header's pill following the same rule) and Ink N % (or toner) on the wall at the left. Day or night picture: night after sunset (sun.sun) or with the dark theme, forced withillustration_theme: day | night.illustration: falsekeeps the classic header. Both options are in the visual editor of both cards, in all 22 languages. - The round header icon's colour now follows the status on both cards and both headers: state colour while ready, printing, scanning or copying, grey asleep or offline, amber on a warning, red on an error; the brand logo badge stays on it.
- The mini card's expand / collapse button sits in the banner's top-right corner (24 px frosted round button), and in the card's top-right corner on the classic header.
Fixes
show_title: falsehides the title again in the illustrated header, where it sits in the title row with the status pill.- Night picture with the dark theme even while the sun is up (
illustration_theme: auto): the header is night whensun.sunis below the horizon or Home Assistant's theme is dark;day/nightstill force it.