Configure MQTT
myio_mqtt_setConfigure MQTT client settings on a myIO controller—broker, credentials, topics, QoS, TLS, publishing, subscriptions, and sensor bindings—then persist and reconnect or refresh Home Assistant discovery.
Instructions
Change the MQTT client. Only the given fields change; on/off fields are desired values (sent only when different). save=true (default) persists and reconnects (MqttSave). Fields: enabled, host, port, user, password, client_id, base_topic, retain, qos 0|1, ha_discovery, economy (4.x), tls (4.x), publish_on_change {buttons, outputs, activators}, periodic {outputs, temperatures, humidity, usens (4.x), sdm} + period_s 5..65000, subscribe, command_channel, command_slot; sensor_binding {slot, topic, key, usens} (4.5+; usens 0 = unbind); rediscover=true refreshes the Home Assistant entities without reconnecting. Editor/admin level.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "myio_mqtt_set"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| qos | No | ||
| tls | No | ||
| host | No | ||
| port | No | ||
| save | No | ||
| user | No | ||
| retain | No | ||
| server | No | controller name (default Ground floor) | |
| economy | No | ||
| enabled | No | ||
| password | No | ||
| period_s | No | ||
| periodic | No | ||
| client_id | No | ||
| subscribe | No | ||
| base_topic | No | ||
| rediscover | No | ||
| command_slot | No | ||
| ha_discovery | No | ||
| sensor_binding | No | ||
| command_channel | No | ||
| publish_on_change | No |