Hi gotschi
I got the nuts and bolts of the setup done and working. Just wondering if you could give a few tips to tweak image.php to accommodate a large house, so I can see the vacuum lines always inside the camera view, the vacuum goes beyond the edges. Also I am not using your setup exactly with the same integration you are using with and haven’t done anything in php before but looking at split[2],split[1],split[0] is the format for location by any chance (y, x , theta), my 1st guess was (theta, x, y).
yes the first two digits are the coordinates and the third is theta,
you can also get this all to run in a < iframe > with a canvas and some js pulling the coordinates from the txt created by the automation, this way you don’t need a php/httpd container but I wanted to have them generated server side
I took your original PHP file and moved all the custom user tweaks into variables at the top to make it easier for others to implement it and incorporated it into my GitHub repository for deploying rest980.
my model is s9+,
i installed both the php-nginx_armv7 and rest980_build, the nginx part went fine i think. i can go to http://192.168.1.100:3000/map and i see this:
none of the buttons work, i know the ip, blid and password are correct because i use the normal vacuum integration.
on the rest980_build addon i get this after build:
> [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
the only parameter i didn’t change is the firmware version.
> [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
GET /api/local/info/state 200 166.361 ms - 2
GET /api/local/info/state 304 114.796 ms - -
GET /api/local/info/state 304 106.242 ms - -
GET /api/local/info/state 304 103.137 ms - -
GET /api/local/info/state 304 104.417 ms - -
GET /api/local/info/state 304 102.919 ms - -
I created the below GitHub Repo as an alternative method than using the built in Roomba sensor.
Depending on your model - this provides the capability to use selective room cleaning directly from HA (and via automations)
Please have a look and reach out if you have any questions.
first of all thank you for answering my question.
I understand what you describe above but have myself a strange situation.
My Roomba 966 keeps disappearing; it gives with a restart of HA, entity not available.
Do you have any clue what can cause this?
Does the ha-rest980-roomba replace the vacuum.roomba as I have set it up now ( as I delete it myself ) and how will the connection be when the Roomba needs to have acces to the internet?
Maybe the questions look a little bit silly but I was almost giving up on getting te Roomba into HA.
I found one thing on the current implementation for the Live map.
To fill the location log (used to draw the map), we use a template sensor to query the location from the vaccum entity. But if you are cleaning big room and if you are cleaning regulary. The history of this template sensor will be hugh (around 60k state value for 10 days). It’s generating useless load on the DB and it can impact the performance. In my case, I had side effect when using the Card creation wizard of HA, the wizard include some card preview based on your existing entity. And unfortutunately it using with hugh entity as example for Histroy graph card and it make the UI freezing …
The fix was to clean the history via SQL (or to way the daily purge) and finally exclude this template sensor from the history and recorder component. There is no impact on the live map and the histroy isn’t generated at all for this device:
hello, forgive me I’m italian and i don’t speak english well, i’m trying to get the map from hassio too (roomba 980 integrated correctly) but i can’t follow you. you kindly write me well for the steps you’ve performed? I would be infinitely grateful to you