INFO ESPHome 2025.6.1
INFO Reading configuration /config/esphome/thermo-hygro.yaml...
INFO Unable to import component mqtt.binary_sensor: No module named 'esphome.components.mqtt.binary_sensor'
Failed config
binary_sensor.mqtt: [source /config/esphome/thermo-hygro.yaml:123]
Platform not found: 'binary_sensor.mqtt'.
platform: mqtt
name: prevent-deep-sleep
topic: homeassistant/input_boolean/prevent_deep_sleep/state
payload_on: on
payload_off: off
internal: True
id: prevent_deep_sleep```
I am very confused!
. I have tried deinstalling/reinstalling esphome add-on (version 2025.6.1)
. retyping the code in case of hidden characters
. done a full hardware reboot
Thanks, but forget what the whole program is supposed to do. I am trying to get a switch in HA to be available in ESPhome as a binary sensor. I am converting a working ESPhome device that uses the API to MQTT.
Looks like you are using syntax that was deprecated some time ago. It is usually a good idea to review the documentation for any of the commands you are using to make sure you are following the current way of doing things.