home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
73.52k stars 30.71k forks source link

roomba 670 - controls not working #37175

Closed repomanz closed 3 years ago

repomanz commented 4 years ago

Home Assistant 0.111.4 Supervisor 227 no custom components

Environment

hassOS 4.10

Traceback/Error logs

none that I immediately see

Additional information

I have a roomba 670 configured and installed via the roomba integration. Even though it's integrated and connected to HA I'm not able to use the vacuum cleaner commands to get it started, return, etc. However; as you can see in the screen shot it's connected and reading sensor data.

image

Sure would like to get this working.

probot-home-assistant[bot] commented 4 years ago

Hey there @pschmitt, @cyr-ius, @shenxn, mind taking a look at this issue as its been labeled with an integration (roomba) you are listed as a codeowner for? Thanks! (message by CodeOwnersMention)

repomanz commented 4 years ago

Hello dev (@pschmitt , @Cyr-ius , @shenxn) I would like to trouble shoot this issue with you guys. Can you let me know what you need? New to homeassistant but can get any logs you require.

shenxn commented 4 years ago

@repomanz Sorry I missed the last notification. Can you enable the debug log and see what you can get? Add the following lines into your configuration.yaml

logger:
  default: info
  logs:
    homeassistant.components.roomba: debug
    roomba: debug
repomanz commented 4 years ago

Hi Shenxn. thanks for response.

logs upon fresh boot:

`2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.mqttclient] Connected to Roomba 10.180.20.30, response code = 0
2020-07-01 19:05:36 INFO (Thread-7) [roomba.roomba] Connecting to Roomba 10.180.20.30
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"netinfo":{"dhcp":true,"addr":179573790,"mask":4294967040,"gw":179573761,"dns1":16843010,"dns2":16777218,"bssid":"1a:e8:29:9d:a9:93","sec":4}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"wifistat":{"wifi":1,"uap":false,"cloud":1}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"netinfo":{"dhcp":true,"addr":179573790,"mask":4294967040,"gw":179573761,"dns1":16843010,"dns2":16777218,"bssid":"1a:e8:29:9d:a9:93","sec":4}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"wlcfg":{"sec":7,"ssid":"494F54205375727665696C6C616E63652056616E"}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"mac":"80:c5:f2:ce:57:64"}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"country": "US"}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"cloudEnv": "prod"}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"svcEndpoints":{"svcDeplId": "v011"}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"name": "pancake"}}}'

2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"lastDisconnect":3,"cap":{"ota":1,"eco":1,"svcConf":1},"bbrun":{"nCliffsF":16374,"nPanics":12437,"hr":291,"min":29,"nScrubs":10540,"sqft":0,"nStuck":0,"nPicks":0,"nCliffsR":0,"nMBStll":0,"nWStll":0,"nCBump":0},"bbmssn":{"nMssn":437,"nMssnOk":233,"nMssnF":204,"aMssnM":9,"nMssnC":0,"aCycleM":0},"bbpause":{"pauses":[3,6,6,6,0,5,6,13,6,0]},"bbrstinfo":{"nNavRst":0,"nMobRst":0,"causes":"0000"},"bbpanic":{"panics":[17,17,17,17,17]},"bbchg3":{"nAvail":971,"estCap":0}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"r2a":{"monits":false,"params":{"monitIds":[],"monitPeriodMs":1000,"monitConditions":"8"}}}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"cleanSchedule":{"cycle":["none","none","none","none","none","none","none"],"h":[11,11,9,11,9,11,10],"m":[45,45,0,45,0,45,0]},"language":0,"cleanMissionStatus":{"cycle":"none","phase":"charge","expireM":0,"expireTm":0,"rechrgM":0,"error":0,"notReady":0,"mssnM":0,"mssnStrtTm":0,"sqft":0,"initiator":"","nMssn":437},"dock":{"known":false},"bin":{"present":true,"full":false},"batteryType":"lith","batPct":100,"mobilityVer":"7587","bootloaderVer":"2.4","soundVer":"13"}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] State updated to: Charging
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"langs":[{"en-US":0},{"en-GB":15},{"fr-FR":1},{"de-DE":2},{"es-ES":3},{"es-XL":11},{"pt-PT":12},{"pt-BR":19},{"it-IT":4},{"nl-NL":5},{"da-DK":6},{"sv-SE":7},{"nb-NO":8},{"fi-FI":16},{"pl-PL":10},{"cs-CZ":17},{"ru-RU":18},{"he-IL":20},{"ja-JP":13},{"zh-CN":14},{"zh-TW":9}],"binPause":false,"carpetBoost":false,"noAutoPasses":false,"noPP":false,"openOnly":false,"twoPass":false,"vacHigh":false,"sku":"R675020","timezone":"America/Chicago"}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] State updated to: Charging
2020-07-01 19:05:36 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.roomba
2020-07-01 19:05:36 INFO (MainThread) [homeassistant.components.binary_sensor] Setting up binary_sensor.roomba
2020-07-01 19:05:36 INFO (MainThread) [homeassistant.components.vacuum] Setting up vacuum.roomba
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: $aws/things/3167072442223640/shadow/update, b'{"state":{"reported":{"tz":{"ver":8,"events":[{"dt":1583082000,"off":-360},{"dt":1583654401,"off":-300},{"dt":1604214001,"off":-360}]},"ecoCharge":false,"wifiSwVer":"3.5.62+95","softwareVer":"3.5.62+95","hardwareRev":3,"wifiAnt":1,"schedHold":false}}}'
2020-07-01 19:05:36 DEBUG (Thread-7) [roomba.roomba] State updated to: Charging
2020-07-01 19:05:36 DEBUG (Thread-7) [homeassistant.components.roomba.irobot_base] Got new state from the vacuum: {'state': OrderedDict([('reported', OrderedDict([('tz', OrderedDict([('ver', 8), ('events', [OrderedDict([('dt', 1583082000), ('off', -360)]), OrderedDict([('dt', 1583654401), ('off', -300)]), OrderedDict([('dt', 1604214001), ('off', -360)])])])), ('ecoCharge', False), ('wifiSwVer', '3.5.62+95'), ('softwareVer', '3.5.62+95'), ('hardwareRev', 3), ('wifiAnt', 1), ('schedHold', False)]))])}
2020-07-01 19:05:37 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"signal":{"rssi":-41,"snr":48}}}}'
2020-07-01 19:05:37 DEBUG (Thread-7) [roomba.roomba] State updated to: Charging

2020-07-01 19:05:43 DEBUG (Thread-7) [roomba.roomba] Received Roomba Data 10.180.20.30: wifistat, b'{"state":{"reported":{"signal":{"rssi":-41,"snr":48}}}}'
2020-07-01 19:05:43 DEBUG (Thread-7) [roomba.roomba] State updated to: Charging

Issuing a clean / start job (upon mouse-clicking, nothing happens with roomba) 2020-07-01 19:14:15 DEBUG (SyncWorker_0) [roomba.roomba] Send command: start 2020-07-01 19:14:15 DEBUG (SyncWorker_0) [roomba.roomba] Publishing Roomba Command : {"command": "start", "time": 1593648855, "initiator": "localApp"}

shenxn commented 4 years ago

@repomanz It seems everything works as expected. Maybe your robot uses a different protocol. Try start your robot from the app and see if you can get some debug log.

repomanz commented 4 years ago

Hi @shenxn

I don't see a way to get debug from the app. Is the code within HA based off this? https://github.com/koalazak/dorita980

shenxn commented 4 years ago

@repomanz Sorry I wasn't clear enough. You get debug log from HA. Start your HA with debug log enabled. Then start your robot from the app on your phone. You might be able to get some debug log related to "last_commend" in HA.

repomanz commented 4 years ago

Ha :) ok, let me resetup everything. Will report back.

nukefrenzy commented 4 years ago

Ha :) ok, let me resetup everything. Will report back.

I had this same problem with my 960. I could see the info about its status, but could not control it. I rebooted the roomba by holding the clean button for 10+ seconds and then everything worked fine for me.

bdraco commented 3 years ago

Recently there was a problem with reconnecting that was fixed here https://github.com/home-assistant/core/issues/43388#issuecomment-734443333

Please reopen if the issue persists