Skip to content

Commit

Permalink
fix(mqtt): Fix home assistant vacuum.send_command functionality
Browse files Browse the repository at this point in the history
  • Loading branch information
Hypfer committed Feb 12, 2021
1 parent 5492e4d commit 97ac35e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/mqtt/MqttAutoConfManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ class MqttAutoConfManager { //TODO: does this thing even make sense?
supported_features: this.supportedFeatures,
availability_topic: this.topics.availability,
command_topic: this.topics.command,
send_command_topic: this.topics.custom_command,
state_topic: this.topics.state,
set_fan_speed_topic: this.supportedFeatures.includes("fan_speed") ? this.topics.set_fan_speed : undefined,
fan_speed_list: this.supportedFeatures.includes("fan_speed") ? this.robot.capabilities.FanSpeedControlCapability.getPresets() : undefined
Expand Down Expand Up @@ -86,7 +87,8 @@ class MqttAutoConfManager { //TODO: does this thing even make sense?
get supportedFeatures() {
const features = [
"battery",
"status"
"status",
"send_command"
];


Expand Down

0 comments on commit 97ac35e

Please sign in to comment.