Skip to content

Releases

v2.18.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 13:25
9133d48

Features

  • power_entity option (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

Choose a tag to compare

@github-actions github-actions released this 25 Nov 23:06
dd76cc0

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 the printer-card.js file 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.js to /local/community/ha-printer-scanner-card/printer-card.js, then clear the browser cache.

v2.17.3

Choose a tag to compare

@github-actions github-actions released this 24 Nov 07:35
aef0f69

Maintenance

  • The card source is split into ES modules: src/ (entry src/index.js), cut at its sections, with the translations in one file per language (i18n/<lang>.js). scripts/bundle.mjs concatenates 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

Choose a tag to compare

@github-actions github-actions released this 22 Nov 17:10
1f86283

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

Choose a tag to compare

@github-actions github-actions released this 22 Nov 15:55
92046b8

Performance

  • Card picker: the cards no longer ask Home Assistant for a live preview (preview: false in window.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

Choose a tag to compare

@github-actions github-actions released this 21 Nov 20:38
f92c20b

Features

  • Informational IPP reasons (#98): the IPP state reasons ending in -report (RFC 8011's information level, such as wifi-not-configured-report on 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

Choose a tag to compare

@github-actions github-actions released this 20 Nov 21:37
5b8d709

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:browser runs every test/*.browser.mjs).

v2.16.2

Choose a tag to compare

@github-actions github-actions released this 18 Nov 20:04
52ffaae

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

Choose a tag to compare

@github-actions github-actions released this 18 Nov 00:28
6bb17b6

Fixes

  • Illustrated header: auto now 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

Choose a tag to compare

@github-actions github-actions released this 17 Nov 22:16
dd0df04

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 picture or 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 with illustration_theme: day | night. illustration: false keeps 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: false hides 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 when sun.sun is below the horizon or Home Assistant's theme is dark; day / night still force it.