github 3dg1luk43/ha_creality_ws v0.6.5-alpha

pre-release10 hours ago

Integration backend

  • Add Image platform (image) to PLATFORMS and implement custom_components/ha_creality_ws/image.py:
    • ImageEntity "Current Print Preview" for K1 family.
    • HTTPS-first preview fetch with self-signed tolerance, HTTP fallback.
    • Rate-limited (5s), caches last successful image; returns tiny placeholder PNG when unavailable.
    • Attributes: preview_reason (ok | not_printing | unsupported_model | fetch_failed), source_url.
    • Records attempted URLs into coordinator cache _http_urls_accessed for diagnostics.
  • Device info caching and capability flags:
    • Prefer new chamber keys (_cached_has_chamber_sensor/control, _cached_max_chamber_temp) with legacy box_* mirrors for back-compat.
    • Heuristic promotions when telemetry exposes boxTemp/targetBoxTemp/maxBoxTemp and lightSw.
  • Diagnostics service upgrades:
    • Crawl local printer web root (https/https) and collect shallow href/src URLs for http_urls_accessed.
    • Include chamber capability flags and max_chamber_temp in diagnostic output.
    • Persistent notification now awaited (async) to avoid task warnings.
  • Minor cleanup and fixes:
    • Remove repeated keys in model_detection block.
    • Import ordering and duplicate import cleanup; ruff clean.

Entities and sensors

  • Sensor labels:
    • "Box Temperature" -> "Chamber Temperature" (keeps uid box_temperature and protocol field boxTemp).
    • Max temperature sensor renamed for display: "Max Chamber Temperature" with uid max_box_temp preserved.
  • Numbers:
    • Chamber target control label updated (K2 Pro/Plus): "Chamber Target"; gating now respects _cached_has_chamber_control with legacy fallback.

Frontend card (k_printer_card.js)

  • Added optional Power button:
    • Config: power (switch entity), show_power_button (boolean).
    • Resolves entity across domains, optimistic UI (2s) for instant feedback.
    • Pinned far-right in chips via CSS ordering.
    • Light chip visibility reacts to power state and printer status; no page reload.
  • Visual editor:
    • Added power and show_power_button fields with labels and helper text.
    • Removed duplicate schema entries.
  • Styling/behavior:
    • Power button reflects ON/OFF visually only when a power entity is configured and present.

Copilot instructions

  • Expanded guidance for Image platform, diagnostics URL cache, and frontend card behavior.
  • Added a dated "Recent updates (2025-11-12)" section summarizing the above.

Backward compatibility

  • No breaking changes to unique_ids or protocol fields.
  • Legacy box_* cached keys remain; new chamber_* keys mirror them.
  • Sensor uid values unchanged; labels only updated for display.

What's Changed

Don't miss a new ha_creality_ws release

NewReleases is sending notifications on new releases.