- Posted on
Wed Feb 22, 2023 8:23 pm
-
roquej
offline
-
- Posts: 609
- Joined: Jan 04, 2015
- Location: South Florida, USA
I have had time to look at this, but the issue is fairly regular now:
iRobot-Roomba Starting Roomba
iRobot-Roomba Debug updateFrequency = 86400.0
iRobot-Roomba Debug statusFrequency = 60
iRobot-Roomba Debug deviceStartComm called for Roomba-Master
iRobot-Roomba Debug Mapping File should equal:/Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.GlennNZ.indigoplugin.irobot/192.168.X.Y-mapping-data.json
iRobot-Roomba Debug Mapping Data File Does Not Exist.
iRobot-Roomba No Cloud Mapping Data found for this device. Please setup in Device Config if needed.
iRobot-Roomba Debug {}
iRobot-Roomba Debug checkALlRoombas called.
iRobot-Roomba Debug getRoomba Info Running..
iRobot-Roomba Debug getRoombaInfo for Roomba-Master
iRobot-Roomba Debug connectRoomba Called self.roomba_list = []
iRobot-Roomba Debug Device Name = Roomba-Master
iRobot-Roomba Debug connecting Roomba Device: Roomba-Master
iRobot-Roomba Debug Using config file: /Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.GlennNZ.indigoplugin.irobot/192.168.101.156-config.ini
iRobot-Roomba Debug CONTINUOUS connection
iRobot-Roomba Debug Reading Config File: 192.168.X.Y-config.ini
iRobot-Roomba Debug Reading config file... /Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.GlennNZ.indigoplugin.irobot/192.168.X.Y-config.ini
iRobot-Roomba Debug reading info from config file /Library/Application Support/Perceptive Automation/Indigo 2022.1/Preferences/Plugins/com.GlennNZ.indigoplugin.irobot/192.168.X.Y-config.ini
iRobot-Roomba Debug Sections ['192.168.X.Y']
iRobot-Roomba Debug Posting DECODED data
iRobot-Roomba Debug Connecting: Name:Roomba-Master && Address:192.168.X.Y && password::1:XXXXXXXXXXXXXXX && Port:8883
iRobot-Roomba Debug Connecting Roomba-Master
iRobot-Roomba Debug Selecting the best SSL TLS Settings
iRobot-Roomba Setting TLS
iRobot-Roomba Debug MQTT Client Succesfully setup
iRobot-Roomba Debug Client MQTT New Connection - Connect Running now Roomba-Master
iRobot-Roomba Debug Threading inital connection to avoid issues if one iRoomba down...
iRobot-Roomba Debug Client LoopStart Running now Roomba-Master
iRobot-Roomba Debug Adding myroomba to self.roomba_list..
iRobot-Roomba Debug self.roomba_list:[<roomba.Roomba object at 0x104b49990>]
iRobot-Roomba Debug Reconnecting device/checked
iRobot-Roomba Debug Updating Master States....
iRobot-Roomba Debug updateMasterStates called.
iRobot-Roomba Debug saveMasterStateDevice called. FromonMessage:False and currentstate:None
iRobot-Roomba Debug Writing Master State Device:XXXXXX:{}
iRobot-Roomba Debug Roomba Connected Roomba-Master
iRobot-Roomba Debug Subscribed: 1 (0,)
iRobot-Roomba Debug on_message: msg.topic:$aws/things/3162C22490730760/shadow/update msg.qos:0 payload:b'{"state":{"reported":{"country": "US"}}}'
iRobot-Roomba Debug check on_message called by on_message iroomba function: For Device:192.168.X.Y
iRobot-Roomba Debug Found Device: 192.168.X.Y Matching device IP192.168.X.Y
iRobot-Roomba Debug saveMasterStateDevice called. FromonMessage:True and currentstate:None
iRobot-Roomba Debug Writing Master State Device: XXXXXX:{"state": {"reported": {"country": "US"}}}
iRobot-Roomba Debug Errorcode and notReady:0
iRobot-Roomba Debug on_message: msg.topic:$aws/things/3162C22490730760/shadow/update msg.qos:0 payload:b'{"state":{"reported":{"cloudEnv": "prod"}}}'
iRobot-Roomba Debug check on_message called by on_message iroomba function: For Device:192.168.X.Y
iRobot-Roomba Debug Found Device: 192.168.X.Y Matching device IP192.168.X.Y
iRobot-Roomba Debug saveMasterStateDevice called. FromonMessage:True and currentstate:None
iRobot-Roomba Debug Writing Master State Device:XXXXXX:{"state": {"reported": {"country": "US", "cloudEnv": "prod"}}}
iRobot-Roomba Debug Errorcode and notReady:0
iRobot-Roomba Debug on_message: msg.topic:$aws/things/3162C22490730760/shadow/update msg.qos:0 payload:b'{"state":{"reported":{"svcEndpoints":{"svcDeplId": "v011"}}}}'
iRobot-Roomba Debug check on_message called by on_message iroomba function: For Device:192.168.X.Y
iRobot-Roomba Debug Found Device: 192.168.X.Y Matching device IP192.168.X.Y
iRobot-Roomba Debug saveMasterStateDevice called. FromonMessage:True and currentstate:None
iRobot-Roomba Debug Writing Master State Device: XXXXXX:{"state": {"reported": {"country": "US", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}}}}
iRobot-Roomba Debug Errorcode and notReady:0
iRobot-Roomba Debug on_message: msg.topic:$aws/things/3162C22490730760/shadow/update msg.qos:0 payload:b'{"state":{"reported":{"wifiAnt":1}}}'
iRobot-Roomba Debug check on_message called by on_message iroomba function: For Device:192.168.X.Y
iRobot-Roomba Debug Found Device: 192.168.X.Y Matching device IP192.168.X.Y
iRobot-Roomba Debug saveMasterStateDevice called. FromonMessage:True and currentstate:None
iRobot-Roomba Debug Writing Master State Device: XXXXXX:{"state": {"reported": {"country": "US", "cloudEnv": "prod", "svcEndpoints": {"svcDeplId": "v011"}, "wifiAnt": 1}}}
iRobot-Roomba Debug Errorcode and notReady:0
iRobot-Roomba Debug on_message: msg.topic:umi/resp msg.qos:0 payload:b'"err":-32700}!'
iRobot-Roomba Error Exception Caught On Message
Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 890, in on_message
log_string, json_data = self.decode_payload(msg.topic,msg.payload)
File "/Library/Application Support/Perceptive Automation/Indigo 2022.1/Plugins/iRobot-Roomba.indigoPlugin/Contents/Server Plugin/roomba.py", line 1089, in decode_payload
return formatted_data, dict(json_data)
UnboundLocalError: local variable 'json_data' referenced before assignment