|
32 | 32 |
|
33 | 33 | Configuration variables:
|
34 | 34 |
|
35 |
| -- **name** (*Optional*): The name of the lock. Default is 'MQTT Lock'. |
| 35 | +- **command_topic** (*Required*): The MQTT topic to publish commands to change the fan state. |
36 | 36 | - **state_topic** (*Optional*): The MQTT topic subscribed to receive state updates.
|
37 |
| -- **command_topic** (*Required*): The MQTT topic to publish commands to change the lock state. |
| 37 | +- **name** (*Optional*): The name of the fan. Default is 'MQTT Fan'. |
38 | 38 | - **payload_on** (*Optional*): The payload that represents the running state. Default is "ON".
|
39 | 39 | - **payload_off** (*Optional*): The payload that represents the stop state. Default is "OFF".
|
40 | 40 | - **optimistic** (*Optional*): Flag that defines if lock works in optimistic mode. Default is `true` if no state topic defined, else `false`.
|
41 | 41 | - **qos** (*Optional*): The maximum QoS level of the state topic. Default is 0 and will also be used to publishing messages.
|
42 | 42 | - **retain** (*Optional*): If the published message should have the retain flag on or not.
|
43 |
| -- **value_template** (*Optional*): Defines a [template](/topics/templating/) to extract a value from the payload. |
| 43 | +- **state_value_template** (*Optional*): Defines a [template](/topics/templating/) to extract a value from the state. |
| 44 | +- **speed_state_topic** (*Optional*): The MQTT topic subscribed to receive speed updates. |
| 45 | +- **speed_command_topic** (*Optional*): The MQTT topic to publish commands to change the fan speed. |
| 46 | +- **speed_value_template** (*Optional*): Defines a [template](/topics/templating/) to extract a value from the speed. |
| 47 | +- **oscillation_state_topic** (*Optional*): The MQTT topic subscribed to receive oscillation updates. |
| 48 | +- **oscillation_command_topic** (*Optional*): The MQTT topic to publish commands to change the fan oscillation. |
| 49 | +- **oscillation_value_template** (*Optional*): Defines a [template](/topics/templating/) to extract a value from the oscillation. |
| 50 | +- **payload_oscillation_on** (*Optional*): The payload that represents the oscillation state. Default is "ON". |
| 51 | +- **payload_oscillation_off** (*Optional*): The payload that represents the oscillation state. Default is "OFF". |
| 52 | +- **payload_low_speed** (*Optional*): The payload that represents the low speed state. Default is "low". |
| 53 | +- **payload_medium_speed** (*Optional*): The payload that represents the low speed state. Default is "med". |
| 54 | +- **payload_high_speed** (*Optional*): The payload that represents the low speed state. Default is "high". |
| 55 | +- **speeds** array (*Optional*): Valid entries for the list are `off`, `low`, `med`, and `high`. |
44 | 56 |
|
45 | 57 | <p class='note warning'>
|
46 | 58 | Make sure that your topic match exact. `some-topic/` and `some-topic` are different topics.
|
|
0 commit comments