Skip to content

feat(minibrew): expose next action date/time and improve realtime sensor state mapping - #22

Merged
stuartp44 merged 14 commits into
mainfrom
copilot/add-date-and-time-next-action
Jul 26, 2026
Merged

feat(minibrew): expose next action date/time and improve realtime sensor state mapping#22
stuartp44 merged 14 commits into
mainfrom
copilot/add-date-and-time-next-action

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown
Contributor

This pull request introduces significant improvements to the MiniBrew Home Assistant integration, focusing on enhanced real-time telemetry support, improved configuration options, and better error handling. It updates the minimum required version of pymbrewclient, adds new sensors for richer device monitoring, and refines the user and reauthentication flows for a smoother experience.

Dependency and Telemetry Enhancements

  • Require pymbrewclient>=1.11.0 to support new SensorType telemetry and real-time features (manifest.json, CHANGELOG.md, README.md). [1] [2] [3]
  • Add real-time diagnostic sensors for Peltier fan power, ESP core temperature, and process phase, along with improved mapping of telemetry fields (README.md).

Configuration and Options Improvements

  • Update configuration options to include a "real-time discovery interval" (default 300s) and expose it in the options flow (README.md, config_flow.py, const.py). [1] [2] [3]
  • Automatically update legacy config entry titles to "MiniBrew Pro" and store client/coordinator objects in a more extensible structure (__init__.py). [1] [2]

Authentication and Error Handling

  • Add robust authentication error detection and a new reauthentication flow for expired or invalid credentials (config_flow.py). [1] [2] [3]

Documentation and Naming Consistency

  • Update documentation and UI text for clarity, including consistent branding as "MiniBrew" and improved sensor descriptions (README.md, manifest.json). [1] [2]

Platform and Resource Management

  • Ensure real-time MQTT streams are properly stopped on unload, and reload entries when options change for dynamic configuration (__init__.py).

These changes collectively make the integration more robust, user-friendly, and capable of leveraging the latest device telemetry.

Copilot AI changed the title [WIP] Add date and time for next action to integration feat(sensor): expose next action date/time for MiniBrew devices Jun 25, 2026
Copilot AI requested a review from stuartp44 June 25, 2026 20:01
@stuartp44 stuartp44 added the preview-release Creates a preview release label Jun 25, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.6841eca
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.6841eca

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.6841eca.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.6841eca

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@dut97

dut97 commented Jun 28, 2026

Copy link
Copy Markdown

Hi Stu, unfortunately it doesn't work. See screendump on my original post.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.b378552
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.b378552

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.b378552.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.b378552

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.0d68437
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.0d68437

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.0d68437.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.0d68437

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.4ac6c2b
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.4ac6c2b

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.4ac6c2b.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.4ac6c2b

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.c0d3715
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.c0d3715

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.c0d3715.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.c0d3715

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.d038402
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.d038402

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.d038402.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.d038402

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.7bb265e
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.7bb265e

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.7bb265e.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.7bb265e

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@dut97

dut97 commented Jul 24, 2026

Copy link
Copy Markdown

Hi Stu, I downloaded the preview version. Unpacked it and uploaded the "minibrew" folder into "custom components"". I realoaded HomeAssistant. I cannot see the sensor Next action datetime or anything with next action. Am I doing something wrong?
image

@stuartp44

stuartp44 commented Jul 24, 2026

Copy link
Copy Markdown
Owner

This is what I have got working so far, but I still have a brew on to see the full data.
image
You can see the "time in stage"

@dut97

dut97 commented Jul 24, 2026

Copy link
Copy Markdown

I see time in stage on the minibrew itself. What I'm after is time to (or date and time) when next user action is required on the Keg's.

@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.d533573
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.d533573

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.d533573.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.d533573

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

…ore temperature; update changelog and README
@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.99b5e44
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.99b5e44

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.99b5e44.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.99b5e44

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

…ed telemetry

- Added reauthentication confirmation dialog with updated credential fields.
- Improved error messages for invalid authentication.
- Added new telemetry attributes including process phase, session ID, and last time online.
- Updated existing telemetry attributes for clarity (e.g., Peltier power, ESP32 core temperature).
- Enhanced test coverage for new telemetry fields and ensured proper handling of duplicate packets in the realtime manager.
@github-actions

Copy link
Copy Markdown
Contributor

Preview Release Created

A preview release has been created for testing this PR.

Version: 0.8.0-preview.22.0c48446
Release: https://github.com/stuartp44/hambrewclient/releases/tag/v0.8.0-preview.22.0c48446

How to Test

  1. Go to the draft release
  2. Download minibrew-0.8.0-preview.22.0c48446.zip
  3. Extract to your Home Assistant custom_components directory
  4. Restart Home Assistant
  5. Test the changes and report back here

Or install directly via HACS:

# Add custom repository in HACS:
https://github.com/stuartp44/hambrewclient

# Then select version: 0.8.0-preview.22.0c48446

WARNING: This is a preview release - do not use in production!

Once testing is complete and approved, this PR can be merged for an official release.

@stuartp44 stuartp44 changed the title feat(sensor): expose next action date/time for MiniBrew devices feat(minibrew): expose next action date/time and improve realtime sensor state mapping Jul 26, 2026
@stuartp44 stuartp44 linked an issue Jul 26, 2026 that may be closed by this pull request
@stuartp44

Copy link
Copy Markdown
Owner

@dut97 The last preview on this PR is now working and has what you wanted in it. I also switched to WS/MQTT first, with the REST API as a fallback.

@stuartp44
stuartp44 marked this pull request as ready for review July 26, 2026 20:45
@stuartp44
stuartp44 merged commit f1d6c17 into main Jul 26, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

preview-release Creates a preview release preview-released

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Please add date and time for next action to the integration

3 participants