When roombaName is unknown, the log messages which display self.roombaName display an empty string for the name. Please either look up the name from the config file or somewhere when the name is unknown, or replace it with the address (IP address). This will significantly aid in log readability when more than one roomba is in the house. The following code snippet might prove useful.
self.password = password if roombaName == "": self.roombaName=address else: self.roombaName = roombaName self.log.info("Setting roombaName to {}".format(self.roombaName)) self.topic = topic
This could impact the set_mqtt_client function, and map file naming.
When roombaName is unknown, the log messages which display self.roombaName display an empty string for the name. Please either look up the name from the config file or somewhere when the name is unknown, or replace it with the address (IP address). This will significantly aid in log readability when more than one roomba is in the house. The following code snippet might prove useful.
self.password = password if roombaName == "": self.roombaName=address else: self.roombaName = roombaName self.log.info("Setting roombaName to {}".format(self.roombaName)) self.topic = topic
This could impact the set_mqtt_client function, and map file naming.