Repository navigation
EphEmberLocal: cloud-free mode (0.5.0) - #5
Merged
Merged
Conversation
Zones, readings and schedules come from the gateway's reports on a local broker (retained copies under state/ from tools/ember_state_keeper.py, or live upload/ reports); commands go straight to the gateway. No Ember account needed. Schedule linking moved to build_zone_programs(), shared with the cloud code. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The gateway often reports only the points that changed; keeping just the last message lost the rest (found live: no current temperature). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A command sent while the gateway was reconnecting was accepted by the broker and silently lost (found live: a hot water boost). Commands now wait up to confirm_timeout for the gateway's report of the changed point and return False otherwise, without touching the cached zone. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Without the bridge nobody answers the gateway's regular gettime requests; it then dropped its connection after about half an hour. Answering them as the cloud does (downtime, time in ms) kept it connected (45 min, 5 requests answered, live). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Adds
EphEmberLocal, a cloud-free mode on top of the local broker from 0.4.16. It needs no Ember account.upload/zoneType,upload/pointdata,upload/programme,upload/thermostat. They come out in the same format as the cloud's, so all the existing helpers work unchanged.tools/ember_state_keeper.pykeeps the latest reports as retained messages under<productId>/<uid>/state/..., andEphEmberLocalreads those first.names={mac: name}, otherwise "Hot Water" / "Heating" (numbered). Zone ids are the macs.build_zone_programs(), which both modes use.docs/local-broker.md. Changelog and version 0.5.0.Tested live on an EMBER-PS through a local broker with the state keeper:
61 tests pass, 8 of them new. They use the gateway's real reports with the IDs replaced. No new flake8 warnings.
🤖 Generated with Claude Code