blueprint:
name: ZHA - 1-Button Scene Switch ("HOBEIAN") ( ZG-101ZL)
description: Automate your 1-Button Scene Switch using ZHA events.
domain: automation
input:
1button_scene_switch:
name: 1-Button Scene Switch
description: 1-Button Scene Switch to use
selector:
device:
integration: zha
manufacturer: HOBEIAN
model: ZG-101ZL
multiple: false
button_one_short_press:
name: Button, single press
description: Action to run on button single press
default: []
selector:
action: {}
button_one_double_press:
name: Button, double press
description: Action to run on button double press
default: []
selector:
action: {}
button_one_long_press:
name: Button, long press
description: Action to run on button long press
default: []
selector:
action: {}
mode: restart
max_exceeded: silent
trigger:
- platform: event
event_type: zha_event
event_data:
device_id: !input 1button_scene_switch
action:
- variables:
command: '{{ trigger.event.data.command }}'
endpoint_id: '{{ trigger.event.data.endpoint_id }}'
- choose:
- conditions: '{{ command == ''toggle'' }}'
sequence:
- choose:
- conditions: '{{ endpoint_id == 1 }}'
sequence: !input button_one_short_press
- conditions: '{{ command == ''on'' }}'
sequence:
- choose:
- conditions: '{{ endpoint_id == 1 }}'
sequence: !input button_one_double_press
- conditions: '{{ command == ''off'' }}'
sequence:
- choose:
- conditions: '{{ endpoint_id == 1 }}'
sequence: !input button_one_long_press
This works a treat. Thank you!
My HOBEIAN ZG-101ZL buttons/switches arrived a day after you posted this Blueprint, so lucky me.
The buttons themselves are also great, and are a cheaper alternative to the Xiaomi buttons (which I also have). These just don’t have Triple press, and Multiple (4+) press - which are rarely performed, so are fine.
I am having trouble getting this blueprint to work on my ZG-101ZL buttons. Did you have to modify the blueprint in any way or did it work straight away?
Thanks Jase
Problem resolved by updating to Home Assistant core v2025.8.2
Hello ShogunMan,
Welcome to the Home Assistant Forum!
Thanks for contributing to the community with a new Blueprint.
I have a suggestion for you. Many people who are not familiar with directory structures will have problems installing this without the Home Assistant MY tools.
Adding a MY link for this Blueprint to your top post would help them a lot.
Here is the link to make that.
Create a link – My Home Assistant
You can also set a minimum version if you have code that won’t work on older versions. About the blueprint schema - Home Assistant
Had trouble with the event/toggle and found your post. Works great! I feel so spoiled with how easy your MY link made it… thanks so much, with your blueprint I think this is the best value Zigbee button on AliExpress!
Thank you very much! ![]()
The blueprint works like a charm.
I’ve used it to manually switch my lights on and off for the non-home assistant ‘users’ in my house
. I try to make sure that every smart device can also be operated with a switch.
I used this €4,29 button I found on Ali with the following description: Ewelink Zigbee Smart Push Button Wireless Switch Include Battery Remote Control.
Hi,
Thanks for adding the ZHA blueprint. I’m using Zigbee2MQTT, so I was wondering how I should modify this blueprint to get it working with Z2M? I’m fairly new to HA, but I’m constantly learning. I only have one of these ZG-101ZL devices, as I wanted to test it out first.
I also have a few Ikea switches also and found some blueprints for them, but it seems Ikea updated the Styrbar model, so the blueprint didn’t work for the new model.
I really appreciate any help and can try to post in the community if I manage to get it working with Z2M.
Please do post when you get this figured out as I’m in the same boat.
As a short term workaround I’ve setup three automations (single / double / hold) to do what I need, but a blueprint would be awesome!
thanks @ShogunMan very helpful blueprint. Nice and simple to use. Love your work!
Thanks @sthl, this works really nice!
you are amazing dude, thank you so much, i was about to just buy something else. lol
Many thank, that was very helpfull. Works great. ![]()
Thank you so much. I couldn’t integrate this button into ZHA because the switch it shows wasn’t working correctly, but with your automation it worked perfectly.
thanks a lot for the blueprint just getting started with home assistant and already could not figure out why the button would not work.