Skip to content

Add CAST-1 WizMote blueprint#16

Open
bharvey88 wants to merge 1 commit into
mainfrom
cast-1-wizmote-blueprint
Open

Add CAST-1 WizMote blueprint#16
bharvey88 wants to merge 1 commit into
mainfrom
cast-1-wizmote-blueprint

Conversation

@bharvey88

@bharvey88 bharvey88 commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

Home Assistant automation blueprint for the Apollo CAST-1 WizMote, moved out of the CAST-1 firmware repo (was in ApolloAutomation/CAST-1#35) so it lives alongside the other Apollo blueprints.

Each of the nine WizMote buttons gets an Action dropdown (Nothing / Play / Pause / Play / Pause / Next / Previous / Volume Up / Volume Down / Toggle Light / Send HA Event) plus a custom action. On HA start and on save the blueprint writes the picks down to the device's per-button selects, so the device page always mirrors the automation. Buttons set to Send HA Event run the custom action. Routing uses native event triggers + event_data filters + trigger IDs; the device picker is filtered to CAST-1-W / CAST-1-ETH.

Pairs with the firmware in ApolloAutomation/CAST-1#35.

Adds:

  • CAST-1/CAST-1-WizMote.yaml
  • CAST-1/README.md (import badge + setup, matching the other product folders)

Summary by CodeRabbit

  • New Features

    • Introduced Home Assistant automation blueprint for ESPHome WizMote CAST-1 devices with per-button action configuration
    • Supports customizable actions for On, Off, Night Mode, Brightness Up/Down, and 4 additional buttons
    • Enables custom Home Assistant event routing
  • Documentation

    • Added setup and configuration guide for the WizMote automation blueprint

@coderabbitai

coderabbitai Bot commented Jun 22, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 24a806bc-c2c3-4819-b639-e111472eb010

📥 Commits

Reviewing files that changed from the base of the PR and between 13d1d11 and f4c2f34.

📒 Files selected for processing (2)
  • CAST-1/CAST-1-WizMote.yaml
  • CAST-1/README.md

Walkthrough

A new Home Assistant automation blueprint (CAST-1/CAST-1-WizMote.yaml) is added for the Apollo CAST-1 WizMote device. It exposes per-button dropdown selectors and custom action inputs for nine buttons, synchronizes device-side select entities on HA start/reload, and executes user-defined actions on ESPHome button events. A README with setup instructions is also included.

Changes

CAST-1 WizMote Blueprint

Layer / File(s) Summary
Blueprint metadata, inputs, and execution policy
CAST-1/CAST-1-WizMote.yaml
Defines blueprint name, source URL, a device selector filtered to CAST-1-W/CAST-1-ETH models, nine per-button input sections (each with a dropdown *_mode and a *_action custom actions array), and sets queued execution with max: 10.
Triggers and choose action flow
CAST-1/CAST-1-WizMote.yaml
Registers homeassistant_start and automation_reloaded triggers for config sync, plus esphome.cast1_wizmote_event triggers for each button. The choose block pushes each button's mode to matching device select entities on sync, and executes the corresponding *_action on button-event triggers.
README documentation
CAST-1/README.md
Documents blueprint purpose, per-button action options and default mappings, requirements, import steps, and links to product page, wiki, Discord, firmware, and blueprints.

Sequence Diagram(s)

sequenceDiagram
  participant HA as Home Assistant
  participant Blueprint as CAST-1 WizMote Automation
  participant ESPHome as ESPHome Device (CAST-1)
  participant DeviceSelect as Device Select Entities
  participant UserAction as User Custom Actions

  rect rgba(100, 149, 237, 0.5)
    Note over HA,DeviceSelect: Sync path (startup / reload)
    HA->>Blueprint: homeassistant_start or automation_reloaded
    Blueprint->>DeviceSelect: select.select_option(*_mode) for each of 9 buttons via template entity_id lookup
  end

  rect rgba(144, 238, 144, 0.5)
    Note over ESPHome,UserAction: Button press path
    ESPHome->>HA: esphome.cast1_wizmote_event (button: on / off / night / ...)
    HA->>Blueprint: trigger matched by button payload
    Blueprint->>UserAction: execute *_action for matched button
  end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

Poem

A WizMote hops into the warren today,
Nine buttons to bind in a YAML bouquet! 🐇
On startup we sync, on button we run,
Each action configured, each select begun.
The blueprint is wired, the README complete—
New automation makes the smart home so sweet! ✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title 'Add CAST-1 WizMote blueprint' directly and clearly describes the main change: adding a new Home Assistant automation blueprint for the CAST-1 WizMote device, which is the primary content of the changeset.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch cast-1-wizmote-blueprint

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

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.

2 participants