Add CAST-1 WizMote blueprint#16
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughA new Home Assistant automation blueprint ( ChangesCAST-1 WizMote Blueprint
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
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
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. Comment |
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:
Summary by CodeRabbit
New Features
Documentation