Aqara Buttons All-In-One [Zigbee2MQTT]

hello, new to this… I found this blueprint and I though it was GREAT!

I have created an action, but nothing happen when I click the button… how can I fix it? how can I debug it?

@FiNaRWhich Which switch model are you using?

WXKG01LM - Xiaomi WXKG01LM control via MQTT | Zigbee2MQTT

@TFhdKi95ae8L hmm… which version of z2m and models of aqara switches you use?

not using AQARA, but XIAOMI

image

@FiNaR can u remove this line from blueprint and try again?

image

P.S. Blueprint should located in config/blueprints/automation/Drafted/aqara-buttons-all-in-one-zigbee2mqtt.yaml

@mynameisused can u try also?

@Drafted no luck :frowning:

it seems I cannot trigger the automation:

how can I debug? I can see the XIAOMI button in the dashboard so, it is connected…

@FiNaR delete automation, edit blueprint file (remove 1 line) in configurator, then create new automation using this blueprint, set action sensor of your switch and set singe click action, save and test it.
You can also see z2m logs, when press a key.

I did use this but stopped working with the 2021.4.5 update
Made manual automations and they work

same ) can u try pls

no luck… still nothing working :frowning:

can you please share what have you done? please

can u provide z2m logs here when you press a key?

I’m using version: 1.18.1-1
Aqara WXKG12LM.
MQTT explorer shows the messages being sent.

I have uninstalled the bleuprint… created a manual automation and it works… not sure why the blueprint does not work…

It didnt work. I found someone with a similar issue saying that there was no event trigger and got it resolved this way…but its too advanced for me to understand…would really appreciate if you could guide me through the process.

I’m also not too sure what decouple does for a switch…

Aqara QBKG25LM (3gang, no neutral) does not trigger event · Issue #5106 · Koenkk/zigbee2mqtt · GitHub

Hi there.

I have one QBKG22LM and one QBKG21LM. I also have one QBKG25LM (three-gang) but that one is known not to work with Z2M.

The issue manifests when I set homeassistant_legacy_triggers: false and try to use the action attribute like this:

- conditions:
        - condition: state
          entity_id: sensor.zigbee_button_smallroom_action
          state: double
          attribute: action

in Z2M config. The event generated then looks like this:

{
    "event_type": "state_changed",
    "data": {
        "entity_id": "sensor.zigbee_switch_kitchen_action",
        "old_state": {
            "entity_id": "sensor.zigbee_switch_kitchen_action",
            "state": "release_right",
            "attributes": {
                "action": "release_right",
                "button_right": "release",
                "linkquality": 99,
                "operation_mode": "decoupled",
                "operation_mode_left": "decoupled",
                "operation_mode_right": "decoupled",
                "state_left": "ON",
                "state_right": "ON",
                "friendly_name": "zigbee.switch.kitchen action",
                "icon": "mdi:gesture-double-tap"
            },
            "last_changed": "2021-04-29T14:09:00.562730+00:00",
            "last_updated": "2021-04-29T14:09:00.562730+00:00",
            "context": {
                "id": "cbec526666baa680ce0a95e81ed7b034",
                "parent_id": null,
                "user_id": null
            }
        },
        "new_state": {
            "entity_id": "sensor.zigbee_switch_kitchen_action",
            "state": "release_right",
            "attributes": {
                "action": "",
                "linkquality": 99,
                "operation_mode": "decoupled",
                "operation_mode_left": "decoupled",
                "operation_mode_right": "decoupled",
                "state_left": "ON",
                "state_right": "ON",
                "friendly_name": "zigbee.switch.kitchen action",
                "icon": "mdi:gesture-double-tap"
            },
            "last_changed": "2021-04-29T14:09:00.562730+00:00",
            "last_updated": "2021-04-29T14:09:00.572998+00:00",
            "context": {
                "id": "804978c97cc9e29542033e55b3d7da04",
                "parent_id": null,
                "user_id": null
            }
        }
    },
    "origin": "LOCAL",
    "time_fired": "2021-04-29T14:09:00.572998+00:00",
    "context": {
        "id": "804978c97cc9e29542033e55b3d7da04",
        "parent_id": null,
        "user_id": null
    }
}

Hello
when I try to import the schema to HA I get this message:
while scanning a simple key in “”, line 242, column 1: ^ could not find expected ‘:’ in “”, line 243, column 1: < p> <img src = "https: // community-a … ^

can you help and tell what went wrong? :slight_smile:
mirek

Same here. Looks like it might be including the image HTML code after the code block, and deciding that this HTML code is not valid blueprint code.
The blueprint itself is fine. If I copy / paste the code block to a blueprint file myself, then I can use it.

@zalus @mmakaay fixed.

1 Like