Skip to content

Releases: macpit/Home-Assistant-Switch-Manager

v3.0.12 – IKEA BILRESA blueprint

08 Apr 17:55

Choose a tag to compare

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

04 Apr 16:17

Choose a tag to compare

Bugfix

  • Fix: Removed invalid title field from button-level entries in the zigbee2mqtt-aqara-th-s04d blueprint. This caused an Invalid config error in the HA log on every restart, even for users who don't own this device. (Fixes #19)

v3.0.10

25 Mar 06:24

Choose a tag to compare

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

19 Mar 19:21
8824445

Choose a tag to compare

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 correct subtype conditions
  • 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_longpress_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:

Full Changelog: v3.0.8...v3.0.9

v3.0.8

17 Mar 18:39

Choose a tag to compare

What's Changed

Full Changelog: v3.0.7...v3.0.8

v3.0.7

15 Mar 21:32

Choose a tag to compare

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

  • Add Sonoff SNZB-01M 4-button remote blueprint (#13)
  • Add ZBMINIL2 Extreme blueprint (#12)

Full Changelog: v3.0.6...v3.0.7

v3.0.7-beta.2

12 Mar 21:24

Choose a tag to compare

v3.0.7-beta.2 Pre-release
Pre-release

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

12 Mar 21:12

Choose a tag to compare

v3.0.7-beta.1 Pre-release
Pre-release

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

12 Mar 08:02

Choose a tag to compare

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

08 Mar 14:56

Choose a tag to compare

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