When asking AI, be sure to send the docs, the exact page. It will be more precise. All that said, here's my config
controllers:
- id: mqtt
name: MQTT
enabled: true
implementation: MQTTController
config:
# omitted...
entities:
# dehum
tasmota_dehumidifier:
name: "Dehum - sensors"
include: tasmota_sensor_temperature_humidity
topic: "tasmota-dehum"
source: SI7021
tasmota_dehumidifier_switch:
name: "Dehum - switch"
include: tasmota_generic_relay
topic: "tasmota-dehum"
unit: ""
You could probably consolidate them, but I prefer to have the switch and the sensors separated: it's easier to start and to manage them.
In you case, as per the post, topic: "tasmota-dehum" should be topic: "fan_controller", while sourceshould beAM2301`.