mirror of
https://github.com/esphome/esphome.git
synced 2024-12-22 05:24:53 +01:00
add mqtt speed topics for fan (#1140)
Co-authored-by: Samuel Sieb <samuel@sieb.net>
This commit is contained in:
parent
764eb960c6
commit
13696b1ec4
2 changed files with 8 additions and 0 deletions
|
@ -34,6 +34,10 @@ FAN_SCHEMA = cv.MQTT_COMMAND_COMPONENT_SCHEMA.extend({
|
||||||
cv.publish_topic),
|
cv.publish_topic),
|
||||||
cv.Optional(CONF_OSCILLATION_COMMAND_TOPIC): cv.All(cv.requires_component('mqtt'),
|
cv.Optional(CONF_OSCILLATION_COMMAND_TOPIC): cv.All(cv.requires_component('mqtt'),
|
||||||
cv.subscribe_topic),
|
cv.subscribe_topic),
|
||||||
|
cv.Optional(CONF_SPEED_STATE_TOPIC): cv.All(cv.requires_component('mqtt'),
|
||||||
|
cv.publish_topic),
|
||||||
|
cv.Optional(CONF_SPEED_COMMAND_TOPIC): cv.All(cv.requires_component('mqtt'),
|
||||||
|
cv.subscribe_topic),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1499,6 +1499,10 @@ fan:
|
||||||
low: 0.45
|
low: 0.45
|
||||||
medium: 0.75
|
medium: 0.75
|
||||||
high: 1.0
|
high: 1.0
|
||||||
|
oscillation_state_topic: oscillation/state/topic
|
||||||
|
oscillation_command_topic: oscillation/command/topic
|
||||||
|
speed_state_topic: speed/state/topic
|
||||||
|
speed_command_topic: speed/command/topic
|
||||||
|
|
||||||
interval:
|
interval:
|
||||||
- interval: 10s
|
- interval: 10s
|
||||||
|
|
Loading…
Reference in a new issue