Skip to content

feat: scene + battery panes, MQTT-driven weather pane#6

Open
chrisn-au wants to merge 1 commit into
masterfrom
feat/ha-bridge-pane-types
Open

feat: scene + battery panes, MQTT-driven weather pane#6
chrisn-au wants to merge 1 commit into
masterfrom
feat/ha-bridge-pane-types

Conversation

@chrisn-au
Copy link
Copy Markdown

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

  • LedController.go: register scenePane (OnOffPane with new scene icons) and batteryPane in the layout
  • ui/WeatherPane.go (rewritten, -119/+123 net): consume weather channel state events from ha-bridge instead of calling OpenWeatherMap directly. Drops the owm + bugsnag deps. Carries the device-specific weather state (condition, current temp, today's hi/lo, day-or-night) and renders pulse / detail UI
  • ui/BatteryPane.go (new, +200): listens to battery channel state events, shows SOC bar + charging indicator with a 5s detail-view on tap
  • images/: new scene-on.gif / scene-off.png, refreshed fan-on.gif

Pairs with

ha-bridge#2 — the bridge driver that produces the weather and battery events these panes consume.

Test plan

  • Deployed and live on both spheres for several days
  • Battery pane reflects HA solar-battery SOC + charge/discharge state
  • Weather pane shows current condition icon + tap-for-temperature
  • Scene pane fires associated HA scenes via tap

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant