Map Auto Uploader for MeshCore HA Integration#163
Open
Confituurke wants to merge 7 commits intomeshcore-dev:mainfrom
Open
Map Auto Uploader for MeshCore HA Integration#163Confituurke wants to merge 7 commits intomeshcore-dev:mainfrom
Confituurke wants to merge 7 commits intomeshcore-dev:mainfrom
Conversation
…l Settings toggle)
Map Auto Uploader for MeshCore HA Integration## Map Auto Uploader for MeshCore HA Integration Integrates [map.meshcore.dev-uploader](https://github.com/recrof/map.meshcore.dev-uploader) into the MeshCore Home Assistant integration. Repeater and room server adverts received by the Companion are automatically uploaded to [map.meshcore.dev](https://map.meshcore.dev) when Map Auto Uploader is enabled in Global Settings. ### Highlights - **Map Auto Uploader** — Off by default; enable in Global Settings - Reuses HA connection (USB, BLE, or TCP) - Ed25519 signing (supercop format, compatible with map.meshcore.dev-uploader) - Replay protection and signature verification - Logbook events for successful and failed uploads - Translations in English and Slovak ### Requirements - Private key export on firmware (`ENABLE_PRIVATE_KEY_EXPORT=1`) ### Commits 1. **HA robustness** — `mesh_core` returns `None` when disconnected; `_resolve_contact` guard 2. **Core implementation** — `map_uploader.py`, `CONF_MAP_UPLOAD_ENABLED` 3. **Integration** — init, SELF_INFO/RX_LOG_DATA handling, MQTT/map try-except 4. **Config and UI** — HA OptionsFlow compatibility, Global Settings toggle 5. **Logbook and translations** — `EVENT_MESHCORE_MAP_UPLOAD`, en/sk strings 6. **Documentation** — README section, `map-upload.md`, installation link
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Integrates the map.meshcore.dev-uploader bot into the MeshCore Home Assistant integration. When enabled, repeater and room server adverts received by the Companion are automatically uploaded to map.meshcore.dev—no separate bot required.
Features
Requirements
ENABLE_PRIVATE_KEY_EXPORT=1)Changes
1. HA robustness
mesh_corereturnsNonewhen disconnected (instead of raising)_resolve_contactguard for services when device is disconnected2. Map Auto Uploader: core
map_uploader.py– ADVERT handling, verification, signing, upload to map APICONF_MAP_UPLOAD_ENABLEDconstant3. Map Auto Uploader: integration
4. Map Auto Uploader: config and UI
mesh_coreguard when adding repeater5. Map Auto Uploader: logbook and translations
EVENT_MESHCORE_MAP_UPLOADlogbook eventmap_upload_enabledstrings in en.json and sk.json6. Map Auto Uploader: documentation
docs/docs/map-upload.md, installation link