Skip to content

feat(sensor): expose next action date/time for MiniBrew devices#22

Draft
stuartp44 with Copilot wants to merge 11 commits into
mainfrom
copilot/add-date-and-time-next-action
Draft

feat(sensor): expose next action date/time for MiniBrew devices#22
stuartp44 with Copilot wants to merge 11 commits into
mainfrom
copilot/add-date-and-time-next-action

Conversation

Copilot AI commented Jun 25, 2026

Copy link
Copy Markdown

This issue asks the integration to surface the date/time for the next required action (as shown in the app UI card, e.g. “Your action needed: Monday, June 22 - 23:07”).
This PR adds that value as a dedicated sensor entity for both Craft and Keg devices.

  • What changed

    • Added next_action_datetime sensor entities for:
      • Craft devices
      • Keg devices
    • Registered both sensors during device sensor setup.
  • Sensor behavior

    • Reads the next-action date/time from sub_title.
    • Only exposes a value when user_action indicates action is required.
    • Returns None when no action is required / data is unavailable.
    • Marks the new sensors as diagnostic entities.
  • Localization + docs

    • Added translation key: next_action_datetime (strings.json, translations/en.json).
    • Updated README sensor feature lists (Craft + Keg) to include “Next Action Date and Time”.
action = device.get("user_action")
if action == 0 or action is None:
    return None
return device.get("sub_title")  # e.g. "Monday, June 22 - 23:07"

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.

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.

3 participants