feat: scene + battery panes, MQTT-driven weather pane#6
Open
chrisn-au wants to merge 1 commit into
Open
Conversation
Adds the LED-controller side of the ha-bridge battery/scene/weather slot
types. Each pane subscribes to its sphere channel ("battery", "weather"
or "on-off" for scenes) and renders state events ha-bridge publishes.
- LedController.go: register scenePane (on-off, scene icon) and batteryPane
in the layout
- ui/WeatherPane.go: rewritten to consume "weather" channel state events
from ha-bridge instead of calling OpenWeatherMap directly. Drops the
owm + bugsnag dependencies. ClockPane fallback uses system local time.
- ui/BatteryPane.go (new): listens to "battery" channel state events,
shows SOC + charging indicator
- images: new scene-on.gif / scene-off.png, refreshed fan-on.gif
All deployed and live on both spheres for several days.
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.
Summary
LED-controller side of the ha-bridge battery / scene / weather slot types. Each pane subscribes to its sphere channel and renders state events that ha-bridge publishes upstream.
Changes
scenePane(OnOffPane with new scene icons) andbatteryPanein the layoutweatherchannelstateevents from ha-bridge instead of calling OpenWeatherMap directly. Drops theowm+bugsnagdeps. Carries the device-specific weather state (condition, current temp, today's hi/lo, day-or-night) and renders pulse / detail UIbatterychannel state events, shows SOC bar + charging indicator with a 5s detail-view on tapscene-on.gif/scene-off.png, refreshedfan-on.gifPairs with
ha-bridge#2 — the bridge driver that produces the
weatherandbatteryevents these panes consume.Test plan