I have installed Plantgateway on a Raspberry Pi Zero W to use with Mi Flora sensors.
I have configured the plantgw.yaml with mqtt config, this is how it’s configured:
mqtt: #url of your mqtt server, madatory server: x.x.x.x #prefix of the topic where the sensor data will be published, mandatory prefix: pgw01/plants #terminate topic with a trailing slash, optional as defaults to True #trailing_slash: False #port of the mqtt server, optional if using 8883 port: 1883 #client_id to use with the mqtt server, optional as defaults to unique numeric identifier client_id: homeassistant #credentials for the mqtt server, optional if you do not use authentication user: xxxx password: yyyy #format for timestamp string using strftime(), optional as defaults to ISO8601 format timestamp_format: "%y-/%m-%d %H:%M:%S"
and this is how the MQTT config I configuration.yaml looks like:
mqtt: broker: !secret broker_ip port: 1883 client_id: home-assistant-1 discovery: true discovery_prefix: home-assistant-1 username: !secret mqtt_username password: !secret mqtt_password
But I can’t get anything in my HA, I wonder do I need to do some more configuration for the device to receive mqtt correctly or will it auto discover without needing to do anything more than the config I did above?