Integration backend
- Add Image platform (
image) to PLATFORMS and implementcustom_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_accessedfor diagnostics.
- Device info caching and capability flags:
- Prefer new chamber keys (
_cached_has_chamber_sensor/control,_cached_max_chamber_temp) with legacybox_*mirrors for back-compat. - Heuristic promotions when telemetry exposes
boxTemp/targetBoxTemp/maxBoxTempandlightSw.
- Prefer new chamber keys (
- Diagnostics service upgrades:
- Crawl local printer web root (https/https) and collect shallow
href/srcURLs forhttp_urls_accessed. - Include chamber capability flags and
max_chamber_tempin diagnostic output. - Persistent notification now awaited (async) to avoid task warnings.
- Crawl local printer web root (https/https) and collect shallow
- Minor cleanup and fixes:
- Remove repeated keys in
model_detectionblock. - Import ordering and duplicate import cleanup; ruff clean.
- Remove repeated keys in
Entities and sensors
- Sensor labels:
- "Box Temperature" -> "Chamber Temperature" (keeps uid
box_temperatureand protocol fieldboxTemp). - Max temperature sensor renamed for display: "Max Chamber Temperature" with uid
max_box_temppreserved.
- "Box Temperature" -> "Chamber Temperature" (keeps uid
- Numbers:
- Chamber target control label updated (K2 Pro/Plus): "Chamber Target"; gating now respects
_cached_has_chamber_controlwith legacy fallback.
- Chamber target control label updated (K2 Pro/Plus): "Chamber Target"; gating now respects
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.
- Config:
- Visual editor:
- Added
powerandshow_power_buttonfields with labels and helper text. - Removed duplicate schema entries.
- Added
- 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; newchamber_*keys mirror them. - Sensor
uidvalues unchanged; labels only updated for display.
What's Changed
- push dev to main by @3dg1luk43 in #21
Full Changelog: v0.6.3.5...v0.6.5-alpha