Compare commits

...

5 Commits

Author SHA1 Message Date
bittles c6a11b47b6 more hacs stuff 2023-01-02 19:27:03 -05:00
bittles cbac201d0d Update manifest.json 2023-01-02 19:20:58 -05:00
bittles 8d7aa5c582 add to do 2023-01-02 19:14:31 -05:00
bittles 0a2c296ef2 formatting 2023-01-02 19:12:44 -05:00
bittles d4afaceb62 add hacs support, bump version number, update readme 2023-01-02 19:11:56 -05:00
3 changed files with 42 additions and 13 deletions
+32 -9
View File
@@ -1,16 +1,16 @@
# Home Assistant Ecovacs Custom Component with Bumper Support
Replaces built in ecovacs component. Commit history is a bit of a mess. master branch shows changes from bmartins fork of sucks to v1.3.0 of this custom component. dev branch shows commits from my attempts at testing and getting this to work.
Replaces built in ecovacs component. Designed to work with bumper, https://github.com/bmartin5692/bumper, a replacement for Ecovacs servers to truly get local control.
Works with bumper with my N79 and should work with at least other XMPP based ecovacs. Don't know if changes will work with MQTT based ones.
Added additional catches to sucks because my N79 sends some weird payloads, but attributes all pull in now for brush life spans. Couple initial queries it also sends weird that I'm in process of catching atm. As of version 1.3.0 (in the manifest.json) these initial queries and all attributes are working. Was using an implementation completely mine but saw in the MQTT class there were already catches for child payloads without the main payload having the expected td in its payload. Kept comments in giving credit and adapted them to work with xmpp.
Should work as regular if bumper is false in config but haven't tested yet, goal was to get it all local. Maybe mess around and test it in future.
With bumper and my N79 commands would work but some queries had responses that included errno='', which bumper would flag as an error even though the full response was there. If your debug logs are throwing errors and the errno is '' then my small fork of bumper may help https://github.com/bittles/bumper-fork
With bumper, my N79 commands would work but some queries had responses that included errno='', which bumper would flag as an error even though the full response was there. It never created attributes for the filters as one of the results. If your debug logs are throwing errors and the errno is '' then my small fork of bumper may help https://github.com/bittles/bumper-fork
Should work as regular if bumper isn't used in config but haven't tested yet, goal was to get it all local. Maybe mess around and test it in future.
I'm using the docker-compose example for bumper by bmartin5692, https://github.com/bmartin5692/bumper on an odroid-n2+.
Based off the regular home assistant ecovacs config and bmartin's fork of sucks, https://github.com/bmartin5692/sucks.
I'm using the docker-compose example from my bumper forked from bmartin5692's, https://github.com/bmartin5692/bumper on an odroid-n2+.
### DNS
For DNS routing I have an Asus AX88u with asus-merlin installed running Adguard. DNS rewrites in AdGuard for domains:
```
*.ecouser.net
@@ -19,12 +19,20 @@ For DNS routing I have an Asus AX88u with asus-merlin installed running Adguard.
```
pointing to my bumper server.
Big credits to bmartin5692 for his fork of sucks to base this off of as well.
## Home Assistant Install & Config
Drop the ecovacs folder into your custom_components folder. If I polish this up I'll add hacs support.
### HACS Install
You can add this repository to your HACS: https://github.com/bittles/ha_ecovacs_bumper
Then download with HACS, HACS -> Integrations -> Explore & Download Repositories -> EcovacsBumper
Restart HASS.
### Manually Install
Drop the ecovacs folder into your custom_components folder.
Restart HASS.
### Config
In your configuration.yaml:
```
ecovacs:
@@ -50,3 +58,18 @@ ecovacs:
verify_ssl: false
```
Just finished getting this working late 12/13/22 so not sure if everything works yet but will commit changes here if I update it or at least document issues.
### Logging
```
logger:
logs:
custom_components.ecovacs.sucksbumper: debug # or whatever level you want
```
### To-Do:
Make component async, use config_flow, create device and clean up some of the hass integration stuff.
### Misc Info From Making This
Commit history is a bit of a mess. master branch shows changes from bmartins fork of sucks to v1.3.0 of this custom component. dev branch shows commits from my attempts at testing and getting this to work.
Added additional catches to sucks because my N79 sends some weird payloads, but attributes all pull in now for brush life spans. Couple initial queries it also sends weird that I'm in process of catching atm. As of version 1.3.0 (in the manifest.json) these initial queries and all attributes are working. Was using an implementation completely mine but saw in the MQTT class there were already catches for child payloads without the main payload having the expected td in its payload. Kept comments in giving credit and adapted them to work with xmpp.
+4 -3
View File
@@ -1,10 +1,11 @@
{
"domain": "ecovacs",
"name": "Ecovacs Bumper",
"version": "1.3.0",
"documentation": "https://www.home-assistant.io/integrations/ecovacs",
"version": "1.3.3",
"documentation": "https://github.com/bittles/ha_ecovacs_bumper",
"issue_tracker": "https://github.com/bittles/ha_ecovacs_bumper/issues",
"requirements": ["sleekxmppfs==1.4.1", "click>=6", "requests>=2.18", "pycryptodome>=3.4", "pycountry-convert>=0.5", "paho-mqtt>=1.4", "stringcase>=1.2"],
"codeowners": ["@OverloadUT", "@mib1185"],
"codeowners": ["bittles"],
"iot_class": "local_polling",
"loggers": ["sleekxmppfs", "sucksbumper"]
}
+5
View File
@@ -0,0 +1,5 @@
{
"name": "EcovacsBumper",
"domains": ["vacuum"],
"render_readme": true
}