I installed HomeAssistant supervisor on a virtual machine in Hyper-V, downloaded the mosquitto broker add-on in add-on, added MQTT integration, and allowed auto-addition of devices. In the configuration.I am writing the following yaml code:
mqtt:
broker: core-mosquitto
port: 1883
discovery: true
When restarting, the home assistant displays the following message:
Couldn’t reset the configuration
Validation error: Invalid config for integration mqtt at /config/configuration.yaml, line 12: extra keys not allowed @ data[‘mqtt’][0][‘broker’]
I also checked this way:
mqtt:
server: mqtt://core-mosquitto:1883
But it didn’t work out either: Validation error: Invalid config for integration mqtt at /config/configuration.yaml, line 12: extra keys not allowed @ data[‘mqtt’][0][‘server’]
I’m just starting to learn IoT and it’s not very clear what’s wrong yet.