@gooorooo awesome! nice find. do you find you can do anything with this? i was hoping to look into how the roomba generates the map that the app uses, and maybe create a hass camera that shows the last map the roomba saw
I’ve created a pull request with some code changes and proposed to publish most recent version in PyPI repository. All the next steps are on NickWaterton’s side.
No plans to enhance current Roomba module - I’m newbie with HA code at the moment.
Hi! I have trouble getting trash bin status on my dashboard, I’m using the code below. The problem is that the template sensor says “OK” even though the bin actually is full, can anyone help me?
- platform: template
sensors:
roomba_bin_state_template:
friendly_name: 'Cleos behållare'
value_template: >-
{%- if "states.vacuum.roomba.attributes.bin_full", "false" %}
OK
{%- elif "states.vacuum.roomba.attributes.bin_full", "true" %}
Behöver tömmas (needs to be emptied)
{%- else %}
Ingen kontakt (offline)
{%- endif %}
@xstrex Got a 896 and had issues with the missing bin_full attribute as well.
I managed to find the problem: the roomba script checks for the entry “binFullDetect” in the capabilities, which is missing. Therefore it does not read out the entry “full” from the bin states, which does exist.
I’m not sure what to make out of all those entries in the capabilities, so as a quick fix, I just made a custom component for roomba and removed this check.
Looks like HA’s Roomba platform relies on roombapy v1.3.1 (reference, unless I’m mistaken) which hasn’t been updated since August 2017, so it doesn’t include @gooorooo’s fix.
Unless you follow the instructions to update your virtualenv manually, I think the only way to fix is for @pschmitt to update roombapy on PyPI to include the latest changes from Roomba980-Python. I’m not exactly sure how easy that would be since I don’t know what changes went into his fork.
All that said, others seem to be using it fine, though perhaps that is with an older version of HA. I’m on 0.83.1 and still see the [Errno 2] No such file or directory error when I add the Roomba platform to my config file.
after installing all dependencies, as suggested by @gooorooo, i copied /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/site-packages/homeassistant/components/vacuum/roomba.py (that’s an os x path, change accordingly) into custom_components/vacuum/roomba.py and changed the requirements to
this works for me, though i’m still on homeassistant version 0.75.3. before this change i also got the FileNotFoundError while using the standard component.
I am using https://www.home-assistant.io/components/vacuum.roomba/ component and I see in the log that it connects roomba every 5 seconds, when I set “continuous: false”, then it still connecting every 5 seconds to roomba to check status. I don’t want to check every 5 seconds the status of roomba. Is there any possibility to set status interval?
Have you happened to have upgraded home assistant? I’m on the latest and can’t get this to work. I have followed your steps and see the custom component get loaded. I even see home assisant getting data from my roomba. The issue is though that my home assistant gui won’t come up when I have roomba enabled.
Can you share your roomba.py so I can ensure mine looks the same?