None of the available jar files worked for me so I compiled the latest source available on the unreleased Openhab Neato addons github and fixed a few errors to make the binding work properly :
-Sending commands didn’t work so equalsIgnoreCase was used instead of “==” for comparing two string in sendCommand and in sendGetGeneralInfo of the NeatoRobot.java file
-Added a few lines to also pause the robot before sending the return to dock when sending the dock command
-Commented out the CHANNEL_ERROR case in publishChannel function
cat openhab_conf/transform/neato-sv.map ui_alert_busy_charging=Busy Charging
ui_error_navigation_noprogress=Navigation Issue
ui_alert_recovering_location=Recovering Location
ui_error_brush_overload=Brush Overload
ui_error_dust_bin_full=Dust Bin Full
ui_error_dust_bin_emptied=Dust Bin Emptied
ui_error_brush_stuck=Brush Stuck
// Curent state of the vacuum cleaner
INVALID=Invalid
IDLE=Idle
BUSY=Busy
PAUSED=Paused
ERROR=Error
ON=Yes
OFF=No
// Current action of the vacuum cleaner
HOUSE CLEANING=Cleaning House
SPOT CLEANING=Spot Cleaning
MANUAL CLEANING=Manual Cleaning
DOCKING=Docking
USER MENU ACTIVE=User Menu Active
SUSPENDED CLEANING=Suspended Cleaning
UPDATING=Updating
COPYING LOGS=Copying Logs
RECOVERING LOCATION=Recovering Location
IEC TEST=Iec Test
// Current or last cleaning mode
CLEAN-MODE-ECO=Eco
CLEAN-MODE-TURBO=Turbo
// Modifier of current or last cleaning
CLEAN-MODIFIER-NORMAL=Normal
CLEAN-MODIFIER-DOUBLE=Double
// Current or Last category of the cleaning
CLEAN-CATEGORY-HOUSE=House Cleaning
CLEAN-CATEGORY-SPOT=Spot Cleaning
CLEAN-CATEGORY-MANUAL=Manual Cleaning
NULL=NULL
-=NA
=NA
Do I have to use Botvac cloud or does it also work when cleaner is offline (only local WLAN connection to OH; but no internet access)?
I am from Germany, so I have some doubts using cloud services
Hey, I tried the latest build from jfbarnard. With it I have the same problem like before. I tried to switch robot language from german to english. Also for german I have tried the option to switch from 24h to 12h. But my status in paper ui is always → “OFFLINE - COMMUNICATION_ERROR Unacceptable range for date”
Neato model: Botvac Connected 2.2.0
Any ideas? thx…
log:
11:06:27.041 [DEBUG] [ab.binding.neato.internal.NeatoRobot] - Will get STATE for Robot Nummer ZWEI
11:06:27.551 [DEBUG] [ab.binding.neato.internal.NeatoRobot] - Result from getRobotState: {“message”:“Unacceptable range for date”}
11:06:27.552 [ERROR] [ab.binding.neato.internal.NeatoRobot] - Error when getting Robot State. Error message Unacceptable range for date
11:06:27.552 [ERROR] [b.binding.neato.handler.NeatoHandler] - Error when refreshing state. Error: Unacceptable range for date
Traceback (most recent call last):
File "/etc/openhab2/scripts/neato-botvac-getlastmap.py", line 2, in <module>
from pybotvac import Account
File "/usr/local/lib/python2.7/dist-packages/pybotvac-0.0.6-py2.7.egg/pybotvac/__init__.py", line 1, in <module>
from .account import Account
File "/usr/local/lib/python2.7/dist-packages/pybotvac-0.0.6-py2.7.egg/pybotvac/account.py", line 5, in <module>
import urllib.parse
ImportError: No module named parse
When using version 0.0.5 of pybotvac it will work. Since the last commit (on Feb 10, 2018) ‘urllib.parse’ is being imported, which is named differently on python2. You can fix it by changing line 5 on ‘pybotvac/account.py’ from ‘import urllib.parse’ to ‘import urlparse’. After this modification run ‘python setup.py install’ again.
Maybe you have entered the secret string returned by the pybotvac app instead of the Neato account password? As troubleshoot steps you could follow the instructions how to get the map described on: https://github.com/stianaske/pybotvac
Sorry, I deleted the source after I tweaked the few things for the fix. However I recently browsed the repo for the binding and saw that the lines I fixed myself were already spotted by the reviewer and were in the list of changes requested