feat: enhance MQTT controller to prevent duplicate command sends and update documentation for delay parameter

This commit is contained in:
kobim committed 2026-11-21 15:09:59 +01:00
1 parent df0213b004
commit 50851c0cfe
5 files changed
+49 -6

No files matched your search

+1 -1
View File
@@ -13,7 +13,7 @@ _Please note that the device_code field only accepts positive numbers. The .json
| `unique_id` | string | optional | An ID that uniquely identifies this device. If two devices have the same unique ID, Home Assistant will raise an exception. |
| `device_code` | number | required | (Accepts only positive numbers) |
| `controller_data` | string | required | The data required for the controller to function. Enter the entity_id of the Broadlink remote **(must be an already configured device)**, or the entity id of the Xiaomi IR controller, or the MQTT topic on which to send commands. |
| `delay` | number | optional | Adjusts the delay in seconds between multiple commands. The default is 0.5 |
| `delay` | number | optional | Adjusts the delay in seconds between multiple commands. MQTT controllers also pace commands by topic and suppress identical payloads sent during this interval. Increase it for IR blasters with long Zigbee transmissions. The default is 0.5. |
| `temperature_sensor` | string | optional | *entity_id* for a temperature sensor |
| `humidity_sensor` | string | optional | *entity_id* for a humidity sensor |
| `power_sensor` | string | optional | *entity_id* for a sensor that monitors whether your device is actually `on` or `off`. This may be a power monitor sensor. (Accepts only on/off states) |