HA Blueprint: Matter Switch Tap Sequences

Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

I’ve updated the blueprint to add light binding. The UI is also a bit more polished as well. To update to the newest version you can click on the blue link above to reimport it.

It sounds like matter binding won’t be available in HA for quite some time, so hopefully this can work as a bridge for some users for the time being. You can also use it to bind the switch to other smart lights like Zigee, Zwave, Hue.

The dimming transition has a “step” like nature which is not ideal. If anyone has ideas on how to make the transition more fluid like a traditional dimmer, please share.

For the next version I’d like to add a Fan binding as well, similar to the blue series where the config button controls the fan speed. Are there any other features the community would be interested to see in this blueprint?

5 Likes

Hey - I was just working on modifying this blueprint, but you’ve saved me time! Was a bit sad to find the light binding not a default entity on the HA Switch device, but this is a great stopgap.

I’m going to be experimenting with this in the next few days, and see if i can get the fluid transition working. Maybe I can get transition types in there too (fade, instant, or the up/down motions).

Thanks so much for working on this blueprint! :grinning:

1 Like

#Legend. Was just looking for exactly this and was about to code one. Thank you so much

1 Like

Just released v0.3 which add the ability to bind a fan to the Config button

2 Likes

Is anyone else having issues when using it in smart bulb mode? when i do a single down press it will turn off all my lights correctly but then also turn the switch off. The switch should stay on to keep power to the lights

Sounds as if it is not really in the smart bulb mode.

Yeah and idk what’s going on because I put in that mode

This looks amazing, would it be possible to integrate the blue/red series switches as well?

For the Blue/Red series, @rohan put together some great automations to configure tap sequences.

Thank you so much for creating this! It makes my lights work just how I wanted.

Quick question: When I setup light binding between the switch and my smart lights, the LED on the switch shows white instead of the default blue that I have my switch set to. Is there a way to change this?

Hey Rob, you’re welcome.

Are you using a group for the Target Light that includes the LED notification bar? If you go to the Logbook and filter by the light entity for your LED notification bar, does it say which automation is turning it on/off?

@francesc0 or anyone is it possible to take a look at my YAML file. I’m trying to make Single Click up and down Tied to Fan and Double Click tied to the light bulb as my fan has one switch for both the fan and the light kit on the fan. I’m only getting the fan and the light kit to work together. They aren’t separated so if I turn on the fan the light turns on as well same with off. I also changed the setting on the Fan to Smart Fan mode not sure if this is helping or if I should have left it on the original settings.

I just don’t know what I’m doing wrong. Any help would be greatly appreciated because I’m getting frustrated and I’m sure that isn’t helping. Thanks to anyone in advance.

alias: Office Fan - Matt
description: “”
use_blueprint:
path: jay-kub/inovelli-matter-switch-tap-sequences.yaml
input:
entity_up: event.white_series_smart_2_1_switch_up_5
entity_down: event.white_series_smart_2_1_switch_down_5
entity_config: event.white_series_smart_2_1_switch_config_5
up1:
- type: turn_on
device_id: baff653d44df34a8338ee9ad49e24019
entity_id: 867d9960b06a42fdac6767dc07ed303b
domain: fan
target_fan: fan.white_series_lightfan_module_fan_control
upHeld:
- action: fan.increase_speed
metadata: {}
data:
percentage_step: 33
target:
device_id: baff653d44df34a8338ee9ad49e24019
configHeld:
up2:
- type: turn_off
device_id: baff653d44df34a8338ee9ad49e24019
entity_id: a98319018efcc709b4270514cf5ea53f
domain: light
down1:
- type: turn_off
device_id: baff653d44df34a8338ee9ad49e24019
entity_id: 867d9960b06a42fdac6767dc07ed303b
domain: fan
down2:
- type: turn_off
device_id: baff653d44df34a8338ee9ad49e24019
entity_id: a98319018efcc709b4270514cf5ea53f
domain: light
downHeld:
- action: fan.decrease_speed
metadata: {}
data:
percentage_step: 33
target:
device_id: baff653d44df34a8338ee9ad49e24019
entity_light: light.white_series_lightfan_module_dimmable_light
target_light: light.white_series_smart_2_1_switch_light_1_8
upReleased:
min_brightness: 10

Looks like you’re using the device_id for your actions, but ideally you should be using the entity_id. Also, you’re using the action type: turn on which is not something I’ve seen before. Ideally you should select what type of device you’re turning on (e.g. fan.turn_on or light.turn_on).

For Up-Single, delete the action you have and do the following in the GUI:

Add Action > fan.turn_on > Choose entity > (insert your fan entity here - probably something like fan.white_series_lightfan_module). Rinse and repeat for all other turn_on/off actions.

The actions for fan.increase_speed look OK, except one is targeting the device and the other is targeting both the device and two light entities. Remove all the targets and replace them with your fan entity.

For the Fan Mode, use Ceiling (3 Speed).

For the Dimmer Switch, use Smart Bulb Enable. However, if you wired the switch correctly (with the load wire connected to the line terminal) this shouldn’t matter.

1 Like

Thank you. I appreciate the help

This was perfect by the way. Thank you for the suggestions everything is working.

1 Like