Skip to content

Releases: kyvaith/Suntek-HA

v0.4.20

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 21:07

Changes

  • Persist the Last wake-up diagnostic state in Home Assistant storage so it survives restarts after the next wake command.
  • Read the user-defined SuntekCam device name from the cloud userdata endpoint and expose it on the camera entity.
  • Use the cloud device name as the default Suntek camera card title while keeping manual card title overrides.
  • Add the dashboard card screenshot to the README.
  • Bump the card resource URL to refresh the frontend module cache.

v0.4.19

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 20:56

Changes

  • Hide the internal media migration counter from the Last media sync sensor and sync button attributes.
  • Remove the migrated count from the Suntek camera card media sync summary.
  • Bump the card resource URL to refresh the frontend module cache.

v0.4.18

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 20:50

Changes

  • Add a Motion detection binary sensor backed by Suntek cloud alarm messages.
  • Poll the APK-derived queryMsg cloud endpoint and expose the latest motion event details as sensor attributes.
  • Fall back to the newest cloud media upload as a motion event source when the cloud message list is empty.
  • Parse fractional Suntek cloud timestamps and handle cloud clock skew without false motion after restart.

v0.4.17

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 20:22

Changes

  • Restore the last cloud media sync status from the persisted media index.json when Home Assistant starts.
  • Keep the Last Media Sync sensor and custom card summary accurate after Home Assistant restarts or page reloads.

Verification

  • Deployed to the live Home Assistant instance and restarted Home Assistant.
  • Confirmed sensor.vist_138396_lxexm_last_media_sync restored ok with the previous sync statistics after restart.

v0.4.16

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 20:13

Changes

  • Change the default card title to Suntek LTE.
  • Add a card editor name setting so the title can be customized from Lovelace.
  • Only show the green Live badge once the backend camera entity reports native_live_status: streaming.
  • Keep showing Last Snapshot while the MJPEG connection is only carrying the startup keepalive/snapshot frame.

v0.4.15

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 20:07

Changes

  • Group cloud media backups by capture date instead of storing everything in undated.
  • Parse capture dates from Suntek filenames such as VKUP2026-0621-135944 when cloud metadata is incomplete.
  • Migrate existing undated files into dated folders during the next sync without downloading them again.
  • Show migrated media counts in the custom Lovelace card sync summary.

v0.4.14

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 19:54

Changes

  • Store cloud media backups under Home Assistant's local media directory (/media) instead of /config/media.
  • Prefer configured hass.config.media_dirs paths when available, with /media as the default fallback.

v0.4.13

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 19:48

Changes

  • Show the cached latest snapshot immediately while the native live stream is starting.
  • Replace the cloud status badge in the custom card with Last Snapshot / Live indicators.
  • Feed Home Assistant's HLS stream worker from the local camera proxy to avoid external URL/auth failures.
  • Improve the media sync summary shown in the custom Lovelace card.

v0.4.12

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 19:09

Changes

  • Add native live worker retries with a fresh wake-up before each P2P reconnect attempt.
  • Detect stalled P2P bootstrap states where the cloud reports the camera as not ready, then retry instead of hanging on a dead session.
  • Send the native P2PReqWI/ListReqWI bootstrap variants after HelloAck.
  • Add stage-specific timeouts for LoginDev, OpenVideo, and first video frame diagnostics.
  • Bump the integration and dashboard card resource version to 0.4.12.

v0.4.11

Choose a tag to compare

@kyvaith kyvaith released this 05 Jul 11:25

Fixed

  • Stabilize the Suntek Lovelace card so Home Assistant state refreshes no longer recreate the MJPEG <img> element and repeatedly restart P2P sessions.
  • Add stream reconnect with exponential backoff and cache busting for the custom card.
  • Prefer relay sessions over premature direct UDP punch-through when opening native P2P live; direct is kept as a fallback.

Verified

  • Native P2P test reached relay, accepted LoginDev, and returned a valid 640x480 JPEG frame.