Commit Graph
17 Commits
Author SHA1 Message Date
0531b6d120 Add per-map rotation support with select entity and calibrated overlays (#37)
* Add map rotation constants

Introduce rotation configuration constants for map image handling.
Adds rotation options (0, 90, 180, 270) and dispatcher signal name.

* Add per-map rotation select entity

Add SelectEntity to control map rotation per map_flag.
Rotation value is persisted via RestoreEntity and stored in hass.data.
Dispatcher signal notifies image entities when rotation changes.

* Enable rotation select platform and initialize storage

Register SELECT platform and initialize rotation storage in hass.data.
Add proper unload cleanup and reload behavior.

* Add backend map rotation with executor offloading

Implement backend image rotation using Pillow.
Rotation is applied in async_add_executor_job to avoid blocking the event loop.
Includes defensive validation and fallback handling.

* Add translations for rotation select entity

Add English and German translations for map rotation select entity.
Includes user-friendly labels for rotation options.

* Document map rotation select entity in README

Add documentation for the per-map rotation select entity.

Explains:
- How to rotate maps (0/90/180/270)
- Where to find the rotation select entity
- That calibration points are rotated as well
- That no reload is required

Also clarifies usage with Xiaomi Vacuum Map Card.

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

---------

Co-authored-by: Luke Lashley <conway220@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2026-04-16 20:37:23 -04:00
Luke LashleyandGitHub 1128d40ee8 bump version 0.1.4 2025-12-05 19:37:49 -05:00
Luke LashleyandGitHub 83013ab729 Refactor room name retrieval in image.py 2025-12-05 16:57:24 -05:00
Luke LashleyandGitHub 3e9149be0a Make sure uuid has a valid name 0.1.3 2025-12-03 16:33:13 -05:00
Luke LashleyandGitHub 9813d3e31c Add support for 2025.12.0 0.1.2 2025-12-03 15:52:27 -05:00
Luke LashleyandGitHub c05872c6b5 Update README.md 2025-04-08 10:36:55 -04:00
Luke LashleyandGitHub 5b72ec5771 Merge pull request #9 from PiotrMachowski/GitHub-Actions
Add GitHub Actions
2025-04-02 19:41:38 -04:00
Piotr Machowski a596488d59 Add GitHub Actions 2025-04-03 01:07:31 +02:00
Luke LashleyandGitHub bc2ee212f4 Merge pull request #5 from PiotrMachowski/patch-1 2025-03-31 06:38:51 -04:00
Piotr MachowskiandGitHub 3cb20e9917 Improve hacs.json 2025-03-31 05:40:10 +02:00
Luke LashleyandGitHub 781fc0fd46 Update README.md 2025-03-30 10:08:32 -04:00
Luke LashleyandGitHub 0c1ce8261d Update README.md 2025-03-30 08:02:59 -04:00
Luke LashleyandGitHub cbb26122a8 bump to 0.1.1 0.1.1 2025-03-29 22:53:47 -04:00
Luke LashleyandGitHub 43e4cce9ee Update hacs.json 2025-03-29 22:51:02 -04:00
Luke LashleyandGitHub 19185c9216 Update hacs.json 2025-03-29 22:50:03 -04:00
Luke LashleyandGitHub 68d6fcf8dd Update README.md 2025-03-26 18:33:36 -04:00
Luke db39b317e9 init commit 0.1.0 2025-03-22 11:15:33 -04:00