262 Commits

Author SHA1 Message Date
Brian Martin 3e1efae8ef Merge pull request #4 from bmartin5692/D901
Merge 901 into master
2019-03-18 23:02:54 -04:00
Brian Martin 5fda81e183 Add verify_ssl to cli login
Add verify_ssl option to cli login
2019-03-18 22:55:23 -04:00
Brian Martin 6da9a96441 Update README API example
Update README API example to show import properly per #65.
2019-03-18 22:45:34 -04:00
Brian Martin 79f9d679bf Update protocol.md with mopping setting
Add SetWaterPermeability setting to protocol.md - #64
2019-03-18 22:42:16 -04:00
Brian Martin 70ecd776c8 Removing test made on assumptions
Removing a test based on the assumption that iot products may not work as iotmq.  This broke because D600 was added to the list of iotmq devices, but we can't assume the other devices from the productiotmap may not be added to the iotmq list in the future and this will just keep breaking.  It really doesn't provide much value from a test perspective.
2019-03-13 20:35:15 -04:00
Brian Martin 3942e22205 Add D600 to iotmqdevices
Add D600 (dl8fht) to iotmqdevices - CR: Fredric Palmgren
2019-03-13 20:24:30 -04:00
Brian Martin e4848cb4d8 Fix failing test
It wasn't because of a space.... The tests were failing depending on the run because the xml string may have the id in a different order from run to run.

Changed test to convert string to xml for testing id exists or matches customid.
2019-02-28 09:20:29 -05:00
Brian Martin 91e3f3d577 fix failing tests?
Is 3.5 failing because of a space?
2019-02-28 08:49:05 -05:00
Brian Martin 3dbaccd2e8 Update test_ecovacs_xmpp.py
Remove failing python 3.5 test for now
2019-02-27 23:29:21 -05:00
Brian Martin f0aef139af Merge pull request #3 from bmartin5692/Ozmo930
Ozmo930 working
2019-02-27 23:03:36 -05:00
Brian Martin c37ebdd794 Ozmo930 working
- Changed ClientXMPP to login/bind with resource
- Changed clean to always add the action
- Wrap command calls a new getReqID to add an ID to the ctl if needed
  - This was required for the ozmo commands, and shouldn't affect other boths

- Updated tests
2019-02-25 09:50:20 -05:00
Brian Martin 0fa5fe4aae Update protocol.md
Update protocol.md to reflect changes to CLI area command.
2019-02-20 20:51:34 -05:00
Brian Martin b7341b0735 Update SpotArea
Update SpotArea and CLI command to more closely reflect the app
Library:
SpotArea namedarea -> area
SpotArea customarea -> map_position

CLI Commands:
spotclean -> area
Ex: sucks area 0,1
  - will clean areas 0 and 1 / A and B

area options:
--map-postion|-p
  - will clean a specified map coordinate
Ex: sucks area -p "-602,1812,800,723"
  - will clean the specified custom map coordinates
2019-02-20 10:45:24 -05:00
Brian Martin bfca7e9e82 Merge pull request #2 from ecpunk/patch-1
Update setup.py
2019-02-19 07:31:16 -05:00
Jon 7fac965ff1 Update setup.py
Added paho-mqtt dependency.
2019-02-19 02:12:43 -05:00
Brian Martin 6c31e0752d add comments and cleanup 2019-02-18 22:22:38 -05:00
Brian Martin f1257b80d0 format updates 2019-02-18 21:45:09 -05:00
Brian Martin 6b23d8553e Add SpotArea details 2019-02-18 21:37:49 -05:00
Brian Martin ab303710a7 Update protocol.md 2019-02-18 21:26:49 -05:00
Brian Martin 597129dda0 Combine MQTT and IOT into IOTMQ
Combined MQTT and IOT into IOTMQ
Updated tests - now with 99% coverage for __init__
2019-02-18 17:44:41 -05:00
Brian Martin 9919baad27 more tests 2019-02-16 02:54:39 -05:00
Brian Martin 409b04b713 add tests 2019-02-16 02:19:13 -05:00
Brian Martin 94a7844f78 Fix spot area clean
Fix spot area clean
2019-02-15 22:27:47 -05:00
Brian Martin b0bf467aa4 stop printing positiion updates
stop printing positiion updates
2019-02-08 02:12:54 -05:00
Brian Martin 5d6df85ed6 Fix custom commands
Fix for custom commands with multiple inner tags
Updated tests
2019-02-08 01:43:00 -05:00
Brian Martin 57979c32bd Make ssl verification optional
Make ssl verification optional
Can be set via config manually, or used from library
2019-02-03 15:18:55 -05:00
Brian Martin 2cfa5ec26b Add ignore ssl to requests
Added verify False to requests. Needed for work on Bumper
2019-01-31 09:46:04 -05:00
Brian Martin 1812a212e1 Add mqtt tests
Add mqtt tests
2019-01-20 22:25:59 -05:00
Brian Martin f3bcfb4ddc Add more iot tests
Add more iot tests
2019-01-20 16:30:53 -05:00
Brian Martin 10993e678a Fix tables in protocol
Fix tables in protocol
2019-01-18 01:37:40 -05:00
Brian Martin 605b1b5523 Add to protocol.md
Add to protocol.md
2019-01-18 01:31:48 -05:00
Brian Martin 5a590d6b0e Merge pull request #1 from bmartin5692/MQTT
Mqtt
2019-01-17 23:17:16 -05:00
Brian Martin 6ff7173ddc Update __init__.py 2019-01-17 23:15:35 -05:00
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