mirror of
https://github.com/esphome/esphome.git
synced 2025-10-27 21:23:48 +00:00
MQTT climate features (#913)
* mqtt_climate: add action support * mqtt_climate: add fan and swing mode support * mqtt_climate: reduce length of discovery payload by using abbreviations https://github.com/home-assistant/home-assistant/blob/dev/homeassistant/components/mqtt/abbreviations.py
This commit is contained in:
@@ -30,6 +30,11 @@ class MQTTClimateComponent : public mqtt::MQTTComponent {
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(target_temperature_high, command)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(away, state)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(away, command)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(action, state)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(fan_mode, state)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(fan_mode, command)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(swing_mode, state)
|
||||
MQTT_COMPONENT_CUSTOM_TOPIC(swing_mode, command)
|
||||
|
||||
protected:
|
||||
std::string friendly_name() const override;
|
||||
|
||||
Reference in New Issue
Block a user