Skip to content

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

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

feat(sensor): expose next action date/time for MiniBrew devices#22
Copilot wants to merge 4 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.

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