mqtt2ha
    Preparing search index...

    Interface MqttSettings

    Configuration settings for MQTT connection and behavior

    interface MqttSettings {
        client_name?: string;
        discovery_prefix?: string;
        host: string;
        password?: string;
        port?: number;
        state_prefix?: string;
        tls_ca_cert?: string;
        tls_certfile?: string;
        tls_key?: string;
        use_tls?: boolean;
        username?: string;
    }
    Index

    Properties

    client_name?: string

    Unique identifier for this MQTT client

    discovery_prefix?: string

    The Home Assistant MQTT discovery prefix (default: "homeassistant")

    host: string

    The hostname or IP address of the MQTT broker

    password?: string

    Password for MQTT authentication

    port?: number

    The port number of the MQTT broker (default: 1883)

    state_prefix?: string

    The prefix for state topics (default: "mqtt2ha")

    tls_ca_cert?: string

    Path to the TLS CA certificate file

    tls_certfile?: string

    Path to the TLS certificate file

    tls_key?: string

    Path to the TLS private key file

    use_tls?: boolean

    Whether to use TLS/SSL for the connection (default: false)

    username?: string

    Username for MQTT authentication