Commit Graph

179 Commits

Author SHA1 Message Date
Brian Martin c0eda3a6cb Fix clean from CLI
Fix clean from CLI
Inject an action='start' for IOTvacs
2019-01-17 09:55:22 -05:00
Brian Martin e2b0ea7b55 Add test MQTTPing
Add test MQTTPing & Fix tests
2019-01-17 09:13:47 -05:00
Brian Martin c72be5509a MQTT Plumbing
MQTT Client plumbed up
- Connect, disconnect, statuses working
2019-01-17 02:35:48 -05:00
Brian Martin ca7d37c193 WIP: Initial MQTT work
WIP: Add initial EcoVacsMQTT client
- Connect and get message

TODO: Parse messages and plumb to events
2019-01-16 09:02:03 -05:00
Brian Martin 3c01cd2678 Set timeout for IOT api calls
Set timeout to 1.25 secs for IOT API
- Some commands (Move) never return a status, so this allows things to continue moving along without waiting too long
2019-01-15 11:09:49 -05:00
Brian Martin 335ac6a7e1 Handle already charging
Handle already charging
Small cleanup
2019-01-15 10:16:09 -05:00
Brian Martin 4ca9750738 Fix xmpp
Fix xmpp to work with iot
2019-01-15 02:24:49 -05:00
Brian Martin ef467acaf8 Remove egg & update gitignore for vscode files
Remove egg & update gitignore for vscode files
2019-01-14 14:20:25 -05:00
Brian Martin d070ab7812 Delete launch.json 2019-01-14 14:15:20 -05:00
Brian Martin 205214c9a1 Update .gitignore 2019-01-14 14:14:46 -05:00
Brian Martin 484502badd Cleanup init code
Cleanup init code from adding IOT
2019-01-14 13:59:02 -05:00
Brian Martin 62185d135f Add spotclean to cli
Add spotclean to cli
2019-01-14 13:13:02 -05:00
Brian Martin 304c576960 Add spotarea command tests
Add spotarea command tests
2019-01-14 11:23:27 -05:00
Brian Martin d317e4b913 Fix tests & Clean
Fix tests
Add tests for iot
Modify Clean to use kwargs for SpotArea
2019-01-14 10:59:25 -05:00
Brian Martin ef0bd2e90d Add backward action
Add backward action
2019-01-13 21:22:19 -05:00
Brian Martin c1f6814f8e Add clean_status for IOT
Add clean_status for IOT
- Reports cleaning or paused
2019-01-13 14:12:29 -05:00
Brian Martin 0da4532908 Add spotarea
Add SpotArea option for D90X w/ Mapping
2019-01-13 13:59:29 -05:00
Brian Martin e408157b72 Basic support for D90X
Add EcoVacsIOT in VacBot
2019-01-12 15:43:02 -05:00
Brian Martin 58ace66a78 Update .gitignore 2019-01-10 22:40:10 -05:00
William Pietri dde7544f84 moving content to developing.md 2018-12-03 07:32:02 -08:00
William Pietri 0cab614140 Update developing.md 2018-12-03 07:29:31 -08:00
William Pietri 92065d714c Adding link to python venv info. 2018-12-03 07:18:23 -08:00
William Pietri 8e4a5ca560 spelling fix 2018-11-13 16:07:46 -08:00
William Pietri 462feef3cc Adding mention of Go version. 2018-11-07 17:40:56 -08:00
William Pietri 2e8341c756 Mentioning the JS port 2018-10-03 09:54:42 -07:00
William Pietri 907f21746c Merge remote-tracking branch 'origin/master' 2018-09-22 17:50:59 -07:00
William Pietri f2a683c026 Bump version number to release bug fix. 2018-09-22 17:50:20 -07:00
William Pietri 3474680ec0 Protocol doc update. 2018-09-22 17:48:26 -07:00
William Pietri 07bd96c9c7 Apply fix from eracknaphobia/sucks for mysterious auth error issue. 2018-09-22 17:45:47 -07:00
William Pietri 3a392a3fcc Merge branch 'eracknaphobia-master', fixing auth error issue. 2018-09-22 17:44:28 -07:00
William Pietri 15b40a446f Apply fix from eracknaphobia/sucks for mysterious auth error issue. 2018-09-22 17:44:10 -07:00
William Pietri 74e9c055a8 Merge pull request #47 from joe248/master
Fix warning due to using deprecated property
2018-08-30 10:10:28 -07:00
joe248 1846e2ccf4 Fix warning due to using deprecated property 2018-08-30 10:36:03 -05:00
William Pietri b26e150e71 Merge pull request #44 from OverloadUT/fix-lifespan-calculations
Fix lifespans being reported much lower than reality
2018-08-28 15:26:54 -07:00
Greg Laabs 276721e280 Fix lifespans being reported much lower than reality
Original implementation assumed that the "total" value from the API response was the denominator for lifespan, but this was incorrect. The "val" from the `life_span` message is the percentage represented as a whole number, with no dividing necessary.
2018-07-29 15:22:31 -07:00
William Pietri 73c906bc6e Merge pull request #43 from OverloadUT/cleanup-and-bool-properties
Const and logging cleanup, addition of is_cleaning and is_charging
2018-07-19 13:37:32 -07:00
Greg Laabs 930e475905 Const and logging cleanup, addition of is_cleaning and is_charging
All sucks vocabulary is now defined up-front in consts, so that library users can import those const instead of hard-coding them.

is_cleaning and is_charging properties were added to VacBot, avoiding library users to have to understand which vacuum statuses mean active cleaning.

All logging has been moved to instantiated loggers using the module's namespace, as is recommended by the Python docs.
2018-07-19 12:18:22 -07:00
William Pietri 4c1d68f924 Merge pull request #41 from OverloadUT/subscribe
Add event emitters, error handling, vacuum state and lifespan tracking
2018-07-16 07:05:15 -07:00
Greg Laabs 741295079d gitignore nosetest output files 2018-07-15 15:20:02 -07:00
Greg Laabs df44def7c5 Add tests, and fix some edge cases revealed by tests (yay!) 2018-07-15 15:19:40 -07:00
Greg Laabs 269749e0ea Add event emitters, error handling, vacuum state and lifespan tracking
Tons of cleanup alongside a lot of new functionality. BotVac now provides an overall vacuum state as a single state, and can emit events to subscribers every time the state changes, as well as any lifespan or battery changes.

The BotVac can also now be created in a `monitor` mode, meaning the BotVac object will handle fetching initial state, refetching state after the BotVac goes offline then online, and regularly checking in on component lifespans.

All statuses are also now normalized so that the BotVac's reported statuses always match the names defined by the sucks library.
2018-07-13 22:10:24 -07:00
eracknaphobia 8f3bf0ac60 Fix for Auth 1004 Error 2018-04-12 22:30:26 -04:00
William Pietri bfea9bf2fa Making it clear Python 3 is required 2017-12-31 11:22:03 -08:00
William Pietri 4e5b24c1b7 releasing 0.8.4 2017-12-28 10:50:15 -08:00
William Pietri d0e31141ba Minor doc update. 2017-12-28 09:44:51 -08:00
William Pietri 624d54c77f Merge pull request #26 from torbjornaxelsson/server-argument
XMPP server address as optional argument
2017-12-22 00:40:16 -05:00
William Pietri 06e2a3e440 Merge branch 'master' into server-argument 2017-12-22 00:37:58 -05:00
William Pietri 7ee7a2457a Merge branch 'master' into server-argument 2017-12-22 00:36:27 -05:00
William Pietri bda504df6a Merge pull request #25 from torbjornaxelsson/error-event-bug-fix
Removed error handler in EcoVacsXMPP
2017-12-22 00:33:52 -05:00
Torbjörn Axelsson e7ad30eac0 Removed error handler in EcoVacsXMPP
The _handle_error method was throwing a runtime error because it expects an XML element

The functionality in _handle_error is covered by _handle_ctl so it can be removed altogether
2017-12-21 18:51:47 -08:00