diff --git a/main.py b/main.py index 4bef4aa..c4aea22 100644 --- a/main.py +++ b/main.py @@ -162,11 +162,10 @@ def mqttpublish(did,subtopic,message): vacbot.refresh_statuses() vacbot.refresh_components() -rooms = "Known rooms:\n" +# Publish all known rooms by thier id and type for room in vacbot.getSavedRooms(): - rooms += "\t id={} type={}\n".format(room['id'], room['subtype']) + mqttpublish(did, "rooms/{}".format(room['id']), room['subtype']) -log.info(rooms) ## MQTT ----> Ecovacs # Subscribe to this ecovac topics, translate mqtt commands into sucks commands to robot