ha-rest980-roomba icon indicating copy to clipboard operation
ha-rest980-roomba copied to clipboard

Getting error when creating docker (Step 4)

Open mermelmadness opened this issue 2 years ago • 27 comments

I'm following the instructions and get this error when trying to run the docker commands:

docker run --name rest980 -e BLID=***************************** -e PASSWORD=************************** -e ROBOT_IP=192.168.1.126 -e FIRMWARE_VERSION=2 -p 3000:3000 koalazak/rest980:latest

WARNING: The requested image's platform (linux/amd64) does not match the detected host platform (linux/arm64/v8) and no specific platform was requested standard_init_linux.go:228: exec user process caused: exec format error

Running on a Raspberry Pi 3

mermelmadness avatar Feb 10 '22 23:02 mermelmadness

The official repo does have have an ARM Image (compatible with RPi) - have a look at this thread where a community member provides a working image

jeremywillans avatar Feb 11 '22 00:02 jeremywillans

Ok, but I'm not sure what command I should be running. Is it the same as the one you listed but ...maramend/rest980 instead?

Because when I do that I get:

[email protected] start /usr/src/app node ./bin/www WARNING: NODE_ENV value of 'production' did not match any deployment config file names. WARNING: See https://github.com/lorenwest/node-config/wiki/Strict-Mode

mermelmadness avatar Feb 11 '22 01:02 mermelmadness

once you have the image online, step 5 is what you follow to get the room details from the ip address of the docker host running the rest980 container (on the port you specified, being 3000 unless changed)

jeremywillans avatar Feb 11 '22 01:02 jeremywillans

Step 5 I can do. I actually tried to do this earlier and got this, so I'm trying again, but more closely following the directions. I got all my info in a text document so I know the RIDs and everything (don't have any zones). I just can't get it to work. Seems that it's not too easy to start over, either. image Was hoping someone made a video of the step by step and put it online. I'm not too good with just knowing how to do something in code or where files are supposed to be. I have an MQTT broker since I use Z2M but I'm not sure what you mean by "A working MQTT Server with discovery is also needed" or how to set it up.

mermelmadness avatar Feb 11 '22 01:02 mermelmadness

if your use MQTT for Z2M then you should be set ready to go.

ok so if you have all the room ids, then move onto step 6 in which you do need to get your handy dirty with code and update the relevant secrets, input_booleans and input_texts to match what you have configured.

based on the above, im not sure if you have used packages yet to bring your vacuum.yaml file into the HA config. if you check the developer tab, do you see a sensor.rest980 ?

jeremywillans avatar Feb 11 '22 02:02 jeremywillans

No, no entity by that name.

I didn't complete step 4. The docker won't build on my Pi. Can I just install these integrations instead? image image image

I have a J7, btw

mermelmadness avatar Feb 11 '22 02:02 mermelmadness

I'd like to start over from scratch, but I'm not sure how to remove the original docker. I'm also still not sure how to build the armv7 on my Pi. Nothing seemed to work.

mermelmadness avatar Feb 11 '22 22:02 mermelmadness

The official repo does have have an ARM Image (compatible with RPi) - have a look at this thread where a community member provides a working image

So, I just ran a uname command and got this:

Linux a0d7b954-ssh 5.10.92-v8 #1 SMP PREEMPT Tue Feb 8 17:24:27 UTC 2022 aarch64 Linux

Does this mean I have the 64-bit OS? Shouldn't the regular repo work, then?

mermelmadness avatar Feb 12 '22 03:02 mermelmadness

No, no entity by that name.

I didn't complete step 4. The docker won't build on my Pi. Can I just install these integrations instead?

image

image

image

I have a J7, btw

Yea you should just be able to use the j7 image.. in fact I recommend it!

jeremywillans avatar Feb 12 '22 12:02 jeremywillans

Yea you should just be able to use the j7 image.. in fact I recommend it!

I've been seeing this for over 20 minutes image

mermelmadness avatar Feb 12 '22 23:02 mermelmadness

It completely locked up my Pi and none of my devices were working. Had to shut down and restart.

mermelmadness avatar Feb 12 '22 23:02 mermelmadness

When you install the image, it need down actually build the image file so it could actually take a while spending on how much other stuff is running on the box.

iirc you have the j7 - so make sure you use that particular image variant

jeremywillans avatar Feb 13 '22 00:02 jeremywillans

Alright, I got rid of everything I don't use anymore and stopped all addons I don't actively use every day. Let's see what happens.

mermelmadness avatar Feb 13 '22 01:02 mermelmadness

Do you have a Discord?

mermelmadness avatar Feb 13 '22 01:02 mermelmadness

It just won't build on my Pi. Every time I try and install it completely locks it up. Gonna have to wait until I get better hardware. I'm either going to repurpose a NUC, MacBook Pro, or Mac Mini for my new setup.

mermelmadness avatar Feb 13 '22 02:02 mermelmadness

I'm up and running with newer hardware and no problems installing the addons. One question. Does vacuum.yaml belong in /config or /config/vacuum?

EDIT: More than one question. I followed the instructions again and still get "entity not found" errors.

mermelmadness avatar Feb 15 '22 18:02 mermelmadness

vacuum.yaml should go in /config/packages/

however you need to enable the packages feature in your main config file. check and either add/update the homeassistant section of the configuration.yaml as noted below -

homeassistant:
  packages: !include_dir_named packages

jeremywillans avatar Feb 16 '22 05:02 jeremywillans

That was the missing piece.

image

Will test later this morning. I removed the schedule dropdown since I don't use any schedules. Now, you said the map view wasn't working anymore since iRobot changed their API?

mermelmadness avatar Feb 16 '22 12:02 mermelmadness

Glad its working!

Yeah maps aren't working until the robot is able to publish the positional data again.

jeremywillans avatar Feb 17 '22 03:02 jeremywillans

Ok, will check for updates periodically. Now, when initially setting up I got all my RIDs by doing a couple of groups of rooms and writing down the order. One thing I noticed is that you can’t select the order for the robot to vacuum from the Lovelace UI. You just select the rooms and it will do them in whatever order it wants to. Is that accurate? Did I miss something in the config that would let me select the room order for a new clean job?

mermelmadness avatar Feb 17 '22 03:02 mermelmadness

it will order then based on the order you enable the booleans

check out this item 👍

jeremywillans avatar Feb 17 '22 08:02 jeremywillans

Tried that. No matter what room I select first it tries to do my office first, then gives a navigation error and says the map is incorrect. I’ll redo the RIDs to make sure they’re accurate.

mermelmadness avatar Feb 17 '22 10:02 mermelmadness

Hmm, I haven’t tested this on the j7, but it should work the same. Can you confirm when you enable the booleans the order in the clean_rooms input text is correct?

Can you schedule a clean from the iRobot app and copy the api response for the lastCommand section? Just want to compare against the what I see from the i7

jeremywillans avatar Feb 17 '22 10:02 jeremywillans

Here's the result of the API from the last cleaning job I did, which was last night. Only did 3 rooms.

"lastCommand":{"command":"clean","initiator":"google","time":1645055483,"ordered":1,"pmap_id":"u917o-SARKqlXLWdJQtWBA","regions":[{"region_id":"18","type":"rid"},{"region_id":"34","type":"rid"},{"region_id":"33","type":"rid"}],"user_pmapv_id":null,"favorite_id":null,"robot_id":null,"select_all":null},"lastDisconnect":0,"mapUploadAllowed":true,"missionTelemetry":{"aux_comms":1,"bat_stats":1,"behaviors_report":1,"camera_settings":1,"coverage_report":1,"hardknock_report":1,"map_hypotheses":1,"map_load":1,"map_save":1,"pmap_navigability":1,"sensor_stats":1,"tumor_classifier_report":1,"vital_stats":1,"vslam_report":1},"mssnNavStats":{"nMssn":48,"missionId":"01FW2F573R0FPYXP5Z3C3YK990","gLmk":72,"lmk":63,"reLc":0,"plnErr":"none","mTrk":93,"kdp":0,"sfkdp":0,"nmc":2,"nmmc":1,"nrmc":0,"mpSt":"idle","l_drift":0,"h_drift":0,"l_squal":3,"h_squal":29},"name":"Howie","noAutoPasses":true,"noPP":false,"odoaMode":0,"odoaFeats":{},"openOnly":false,"pmapLearningAllowed":true,"pmaps":[{"sV6rnViTQWiqQalv0WO1pA":"220213T021224"},{"u917o-SARKqlXLWdJQtWBA":"220217T003441"}],"pmapCL":true,"pmapShare":{"copy":[1,4]},"rankOverlap":15,"reflexSettings":{"rlWheelDrop":{"enabled":0}},"sceneRecog":1,"schedHold":false,"sku":"j755020","softwareVer":"sapphire+1.2.12+Firmware-Production+57","subModSwVer":{"nav":"sapphire-nav+1.2.12+ubuntu-HEAD-4316d8880a0+0","mob":"1.2.12+ubuntu-HEAD-4316d8880a0+0","pwr":"0.2.6+ubuntu-HEAD-4316d8880a0+0","sft":"1.3.1+ubuntu-HEAD-5dc7afa7447+21","mobBtl":"4.1","cam":"0.2.31","linux":"linux+sextant-5.18.8_release+Firmware-Production+57","con":"4.7.1-tags/release-4.7.1@bb784e52/","parcels":{"machine-learning-parcel":"none"}},"svcEndpoints":{"svcDeplId":"v011"},"timezone":"America/New_York","tls":{"tzbChk":1,"privKType":2,"lcCiphers":[0,0,0,0,0,0,0,50380848,50336514,50380847]},"twoPass":false,"tz":{"events":[{"dt":1641038400,"off":-300},{"dt":1647154801,"off":-240},{"dt":1667714401,"off":-300}],"ver":13},"vacHigh":false,"netinfo":{"dhcp":true,"addr":"192.168.1.126","mask":"255.255.255.0","gw":"192.168.1.1","dns1":"192.168.1.1","dns2":"0.0.0.0","bssid":"04:d4:c4:1d:6c:54","sec":4},"signal":{"rssi":-69,"snr":27,"noise":-96},"wifistat":{"cloud":14,"wifi":1,"uap":false},"wlcfg":{"sec":4,"ssid":"417765736F6D6573617563655F3547"}}

mermelmadness avatar Feb 17 '22 14:02 mermelmadness

Just tried it again. Definitely did not choose my office, but it started there anyway. And now I have to reboot it for some reason as the iRobot app can't connect.

mermelmadness avatar Feb 17 '22 16:02 mermelmadness

I'm still having the issue of selective room cleaning not being correct. It always starts with the room the dock is in.

mermelmadness avatar Feb 27 '22 18:02 mermelmadness

discussing 1:1

jeremywillans avatar Dec 13 '22 01:12 jeremywillans