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
@@ -11,7 +11,7 @@ Find your device's brand code [here](FAN.md#available-codes-for-fan-devices) and
**unique_id** (Optional): An ID that uniquely identifies this device. If two devices have the same unique ID, Home Assistant will raise an exception.<br />
**device_code** (Required): ...... (Accepts only positive numbers)<br />
**controller_data** (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.<br />
**delay** (Optional): Adjusts the delay in seconds between multiple commands. The default is 0.5 <br />
**delay** (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 long Zigbee IR transmissions. The default is 0.5 <br />
**power_sensor** (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)<br />
## Example (using broadlink controller)