Optionalclient_Unique identifier for this MQTT client
Optionaldiscovery_The Home Assistant MQTT discovery prefix (default: "homeassistant")
The hostname or IP address of the MQTT broker
OptionalpasswordPassword for MQTT authentication
OptionalportThe port number of the MQTT broker (default: 1883)
Optionalstate_The prefix for state topics (default: "mqtt2ha")
Optionaltls_Path to the TLS CA certificate file
Optionaltls_Path to the TLS certificate file
Optionaltls_Path to the TLS private key file
Optionaluse_Whether to use TLS/SSL for the connection (default: false)
OptionalusernameUsername for MQTT authentication
Configuration settings for MQTT connection and behavior