Releases: macpit/Home-Assistant-Switch-Manager
v3.0.12 – IKEA BILRESA blueprint
What's new
- Add Zigbee2MQTT blueprint for IKEA BILRESA remote (E2489) — 2 buttons, press / double / hold / hold released
Thanks to @lmoodie for the contribution! 🇦🇺
Full Changelog: v3.0.11...v3.0.12
v3.0.11 – Fix Aqara TH-S04D blueprint schema error
Bugfix
- Fix: Removed invalid
titlefield from button-level entries in thezigbee2mqtt-aqara-th-s04dblueprint. This caused anInvalid configerror in the HA log on every restart, even for users who don't own this device. (Fixes #19)
v3.0.10
What's new
New Blueprint
- Aqara Climate Sensor W100 (TH-S04D) (Zigbee2MQTT) — 3-button device with +, center, and - buttons, each supporting single press, double press, hold, and release actions. Thanks @stephanmatzoll for the detailed MQTT payload data!
v3.0.9
What's new
Moes ZG-101ZD (TS004F) – Improved Blueprints
- Improved MQTT blueprint (
zigbee2mqtt-moes-zg-101zd): All 4 buttons now have full single/double/hold actions with correctsubtypeconditions - New event-mode blueprint (
zigbee2mqtt-moes-zg-101zd-event): For setups using Home Assistant events instead of MQTT
Homematic – Hold Action Fix
- Fixed hold action condition in all Homematic blueprints (2/6/8-button):
press_long→press_long_start - This corrects the event type actually sent by Homematic devices, so hold actions now trigger reliably
Sonoff SNZB-01M – Transparent Image
- Converted blueprint image to RGBA with transparent background
Community PRs integrated from upstream
Already included since v3.0.8 – credited here for visibility:
- TuYa 3 Button Scene SS6300ZB (Z2M) – @hellodosi
- LocalBytes LocalDeck 24 – @LampyDave
- Sonoff MINI-ZB2GS(-L) – @szbotms
- Generic SNZB-01 Button (Z2M) – @spacerunner5
- Marmitek Push LE/LO BLK/WHT (Z2M) – @pvangorp
- Sonoff ZBM5 1C/2C/3C (Z2M) – @pvangorp
- ZHA TuYa 6 Button Scene TS0046 – @Schorsch980
Full Changelog: v3.0.8...v3.0.9
v3.0.8
What's Changed
- Add Shelly Wall Display XL blueprint (#14) — thanks @Feuer-1000!
Full Changelog: v3.0.7...v3.0.8
v3.0.7
What's Changed
ISSUES SOLVED
Switch Manager actions generated by visual editor cause invalid_format websocket error (extra keys not allowed @ data['action']) #10
New Blueprints
Full Changelog: v3.0.6...v3.0.7
v3.0.7-beta.2
Fix: Raw HA action format validation (corrected)
Replaces v3.0.7-beta.1 with the correct fix.
Root cause: The error occurs during WebSocket schema validation, not in init_script(). The visual editor sends raw action dicts at the button action level, but the schema expects {'mode': 'single', 'sequence': [...]}.
Fix: Pre-validator _normalize_config_action() in schema.py detects raw HA actions and wraps them in the {mode, sequence} structure.
Tested on HA 2026.3.1 — all scenarios pass, no regression on existing switches.
Fixes Sian-Lee-SA#404, #10
Installation
Install via HACS by downloading this specific version, or manually replace custom_components/switch_manager/.
v3.0.7-beta.1
Fix: Raw HA action format validation
Root cause: HA's visual editor may send raw action dicts ({'action': 'light.turn_on', ...}) at the button action level instead of the expected {'mode': 'single', 'sequence': [...]} wrapper. The schema rejects these with extra keys not allowed @ data['action'].
Fix: Pre-validator in schema.py detects raw HA actions and wraps them in the {mode, sequence} structure before schema validation.
Tested on HA 2026.3.1: correct structure, raw action, legacy service key, and empty sequence all pass. Existing switches load without errors.
Fixes Sian-Lee-SA#404
Installation
Install via HACS by downloading this specific version, or manually replace custom_components/switch_manager/ with the contents from this release.
v3.0.6
What's New
Duplicate Switch from List View
You can now duplicate any switch directly from the three-dot menu in the switch list. This creates a full copy of the switch configuration including all button actions, sequences, and variables.
The duplicated switch:
- Gets the original name with "(Copy)" suffix
- Has an empty identifier (must be set before use)
- Is enabled by default
- Opens immediately in the editor
This is useful when you have multiple switches of the same type and want to reuse action configurations as a starting point.
Other Changes
- Updated roadmap in README
- Commented on #4 — search & replace for entity IDs when copying is planned as a follow-up
Full Changelog: v3.0.5...v3.0.6
v3.0.5
What's New
Sortable Switch List
The switch list now supports clickable column headers for sorting by Name, Service, and Type — making it much easier to find switches when you have many configured.
Click a column header to sort ascending, click again for descending. The built-in ha-data-table sorting and search/filter continue to work as before.
Technical note: The original sm-data-table wrapper had a bug where its _sortFilterData override referenced internal properties (this._sortColumn, this._sortDirection) that were never set by the parent class's header click handler. This release fixes the property references so sorting actually works.
Other Changes
- Updated blueprint image for Philips Hue Senic Friends of Hue Switch (PR #7 by @livinhack)
Full Changelog: v3.0.4...v3.0.5