Mqtt binary_sensor not updating while mqtt sensor is working


I am facing the issue the a mqtt sensor is working as expected while the (same) binary sensor is not:

My main system has Mosquito Broker 4.2 installed.

I have two sensors subscribing the same topics:


  • platform: mqtt
    state_topic: ‘ha_slave01topic/input_boolean/test_trigger_remote/state’
    name: “mqtt_sensor_remote”


  • platform: mqtt
    state_topic: ‘ha_slave01topic/input_boolean/test_trigger_remote/state’
    name: “mqtt_binary_sensor_remote”

The state per mqtt gets updated:

While the sensor gets updated the binary sensor does not:

I also get an error message for the binary sensor that no matching payloads exist. I don’t get that message for the sensor.


Any idea what is wrong with my binary_sensor configuration?

Please format your code correctly.

The binary mqtt sensor requires ON or OFF payloads by default. Note the title case. HA is case sensitive. You have on/off. You will need to define the payloads:

  platform: mqtt
  state_topic: 'ha_slave01topic/input_boolean/test_trigger_remote/state'
  name: "mqtt_binary_sensor_remote"
  payload_on: "on"
  payload_off: "off"

Many thanks! It works now.

I was trying the payload_on: “ON” and payload_off: “OFF” from the documentation example but it did not work due to the case sensitivity.

1 Like