Update device_trigger.mqtt.markdown (#29471)

This commit is contained in:
Jonny Bergdahl 2023-10-23 10:59:40 +02:00 committed by GitHub
parent 3cd0cbcfc0
commit 33d6e56e49
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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`