From 33d6e56e499fc01dc300a6506bc340fe687f2f33 Mon Sep 17 00:00:00 2001 From: Jonny Bergdahl <128166901+jonnybergdahl@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:59:40 +0200 Subject: [PATCH] Update device_trigger.mqtt.markdown (#29471) --- .../device_trigger.mqtt.markdown | 32 +++++++++++++++++-- 1 file changed, 29 insertions(+), 3 deletions(-) diff --git a/source/_integrations/device_trigger.mqtt.markdown b/source/_integrations/device_trigger.mqtt.markdown index c55012fbc0f..e10b26b56d5 100644 --- a/source/_integrations/device_trigger.mqtt.markdown +++ b/source/_integrations/device_trigger.mqtt.markdown @@ -102,7 +102,22 @@ Note that it is not necessary to provide the full device information in each mes - Discovery payload: ```json - {"automation_type":"trigger","type":"action","subtype":"arrow_left_click","payload":"arrow_left_click","topic":"zigbee2mqtt/0x90fd9ffffedf1266/action","device":{"identifiers":["zigbee2mqtt_0x90fd9ffffedf1266"],"name":"0x90fd9ffffedf1266","sw_version":"Zigbee2MQTT 1.14.0","model":"TRADFRI remote control (E1524/E1810)","manufacturer":"IKEA"}} + { + "automation_type": "trigger", + "type": "action", + "subtype": "arrow_left_click", + "payload": "arrow_left_click", + "topic": "zigbee2mqtt/0x90fd9ffffedf1266/action", + "device": { + "identifiers": [ + "zigbee2mqtt_0x90fd9ffffedf1266" + ], + "name": "0x90fd9ffffedf1266", + "sw_version": "Zigbee2MQTT 1.14.0", + "model": "TRADFRI remote control (E1524/E1810)", + "manufacturer": "IKEA" + } + } ``` - Trigger topic: `zigbee2mqtt/0x90fd9ffffedf1266/action` @@ -114,8 +129,19 @@ Note that it is not necessary to provide the full device information in each mes - Discovery payload: ```json - {"automation_type":"trigger","type":"action","subtype":"arrow_right_click","payload":"arrow_right_click","topic":"zigbee2mqtt/0x90fd9ffffedf1266/action","device":{"identifiers":["zigbee2mqtt_0x90fd9ffffedf1266"]}} - ``` + { + "automation_type": "trigger", + "type": "action", + "subtype": "arrow_right_click", + "payload": "arrow_right_click", + "topic": "zigbee2mqtt/0x90fd9ffffedf1266/action", + "device": { + "identifiers": [ + "zigbee2mqtt_0x90fd9ffffedf1266" + ] + } + } + ``` - Trigger topic: `zigbee2mqtt/0x90fd9ffffedf1266/action` - Trigger payload: `arrow_right_click`