Problems with HomeKit fan (MQTT) setup:(

Hi.

I have set my house vent system up with Mqtt control and im exposing this to my home app (apple HomeKit).

I got this error in the log:

WARNING (SyncWorker_18) [homeassistant.components.homekit.util] [‘low’, ‘medium’, ‘high’] does not contain the speed setting off as its first element. Assuming that low is equivalent to ‘off’.

The yaml config looks like this:

fan:
- platform: mqtt
  name: "Nilan"
  state_topic: "ventilation/control/RunSet"
  command_topic: "ventilation/runset"
  speed_state_topic: "ventilation/control/VentSet"
  speed_command_topic: "ventilation/ventset"
  qos: 1
  retain: true
  payload_on: "1"
  payload_off: "0"
  payload_low_speed: "1"
  payload_medium_speed: "3"
  payload_high_speed: "4"
  speeds:
    - low
    - medium
    - high

The vent system actually has 4 fan modes 1-4, so I don’t know if this is causing the issue?

What happens if you do this?

  speeds:
    - 'off'
    - low
    - medium
    - high

EDIT
Delimited off with quotes.

2 Likes

I tried that before but it did not work . But now I tried to put the off in quotes instead like “off” .

Now the error is gone - strange hmmm :confused:

I will try leave it like this the next few days and see how it turns out. I will reply back if it still makes problems :wink: thanks for your reply :wink:

Oops! My mistake. I forget that you must delimit the word off with quotes (single or double quotes). Without quotes, off has special meaning to Home Assistant and is treated as boolean instead of a string.

I’ve update my original post to prevent misleading other readers.

1 Like