I can’t seem to get my Vac into HA. So far the issue is MQTT connectivity. I have this in my config on the Vac running Valetudo RE 10.5
"mqtt": {
"enabled": false,
"identifier": "rockrobo",
"topicPrefix": "valetudo",
"autoconfPrefix": "homeassistant",
"broker_url": "mqtt://ha_mqtt:[email protected]:1883",
"provideMapData": true,
"caPath": "",
"qos": 0
},
Log file shows it is trying to use the username as host though.
2021-03-27T17:43:05.394Z MQTT Error : mqtt_general_error : {"errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"ha_mqtt"}
I have deleted and re-entered it via Vi and the web gui for the Vac. No joy. Quite confused. Is there another option for user/pass then just in the broker url? I have Room Assistant working so I know that MQTT is good for at least one device. No user/pass and I get error 5 so I need some sort of autho. I have this in my config.yaml if it has any bearing but I don’t think I am far enough along to have to troubleshoot this yet.
vacuum:
- platform: mqtt
name: "roborock"
supported_features:
- turn_on
- turn_off
- pause
- stop
- return_home
- battery
- status
- locate
- clean_spot
- fan_speed
- send_command
command_topic: "vacuum/command"
battery_level_topic: "vacuum/state"
battery_level_template: "{{ value_json.battery_level }}"
charging_topic: "vacuum/state"
charging_template: "{{ value_json.charging }}"
cleaning_topic: "vacuum/state"
cleaning_template: "{{ value_json.cleaning }}"
docked_topic: "vacuum/state"
docked_template: "{{ value_json.docked }}"
error_topic: "vacuum/state"
error_template: "{{ value_json.error }}"
fan_speed_topic: "vacuum/state"
fan_speed_template: "{{ value_json.fan_speed }}"
set_fan_speed_topic: "vacuum/set_fan_speed"
fan_speed_list:
- min
- medium
- high
- max
send_command_topic: "vacuum/send_command"