-
-
Notifications
You must be signed in to change notification settings - Fork 574
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add additional sensors and settings to Roborock vacuums #1543
Closed
Closed
Changes from 38 commits
Commits
Show all changes
67 commits
Select commit
Hold shift + click to select a range
c808adf
Remove Fanspeed
starkillerOG fc8c7b4
Fix unit
starkillerOG a63270a
capital letters
starkillerOG b040a7c
disable battery by default
starkillerOG bc09260
Add sensors
starkillerOG c766026
fix typo
starkillerOG 383de8b
adjust sensors
starkillerOG 92dae6e
update icons
starkillerOG 444f8ed
Add last_clean_details
starkillerOG 2c3b4b3
Add DnD status
starkillerOG f7cbb95
use qualified_name for id
starkillerOG 43e7a3e
add multi map id
starkillerOG 33faf82
Update vacuumcontainers.py
starkillerOG c32b24a
Add mullti_map_id to clean history
starkillerOG 7488ea9
fix type
starkillerOG 32d0028
Add retrieving multi_maps_list
starkillerOG 73fa561
add dust_collection_work_times
starkillerOG 60e6d70
add load_multi_map
starkillerOG d995d26
add Multi map selector
starkillerOG a4e6dc4
fix typo
starkillerOG 5cc7664
make changing multi map work in homeassistant
starkillerOG b3ecd75
Add Mop scrub intensity and mop route
starkillerOG a164846
fix circiler import
starkillerOG 0c0a617
update icons
starkillerOG 68a4fb4
Add auto_dust_collection
starkillerOG 00dfae9
Last clean per floor
starkillerOG 4d9ca0e
fixes
starkillerOG 6c8bb0e
add entity_categories
starkillerOG e490cd4
add device_classes
starkillerOG 298a485
add state_class
starkillerOG 5fb7f9e
fix styling
starkillerOG f80a13e
docformatter
starkillerOG 39d9781
docformatter correct lenght
starkillerOG fd49e94
fix mypy
starkillerOG 142dfb0
fix flake8
starkillerOG 4485c79
fix python compatibility
starkillerOG 6f21e31
fix vacuum test
starkillerOG 8c3eae4
fix tests
starkillerOG 1b009d5
Change new fan mode Mopping to Off
starkillerOG bef9197
Merge branch 'master' into roborock_sensors
starkillerOG a86d7cc
Reduce device calls by caching the status
starkillerOG cd86f24
split out vacuum_status
starkillerOG 46c2b80
simplify return
starkillerOG f53edc3
notes
starkillerOG 28f3340
return FloorCleanDetails from last_clean_all_floor
starkillerOG 65037f9
Use MultiMapList container
starkillerOG edc42d4
dynamically create FloorCleanDetail settings
starkillerOG 6068336
fix __repr__
starkillerOG e47a9de
Embed CleanDetails for each floor in FloorCleanDetails container
starkillerOG cdc140e
Add button support
starkillerOG c051028
add start_dust_collection button
starkillerOG 6ad0e45
Add stop dust collection button
starkillerOG 14a7d6e
bind button method
starkillerOG 2f5f3b3
fix
starkillerOG ee90954
fix styling
starkillerOG 758e185
fix imports
starkillerOG 252c1b6
fix mypy issues
starkillerOG de9dac9
fix styling
starkillerOG 180dd5c
Add dock_error and dock_error_code
starkillerOG cc7d4ea
Merge branch 'master' into roborock_sensors
starkillerOG 83e7e90
Update to latest miio
starkillerOG ac58bf3
Update to latest miio
starkillerOG f2fed51
Merge branch 'master' into roborock_sensors
starkillerOG 1c69cc5
Merge branch 'master' into roborock_sensors
starkillerOG f1f3a62
Merge branch 'master' into roborock_sensors
starkillerOG 998ec16
Merge branch 'master' into roborock_sensors
starkillerOG a5a0e3c
Merge branch 'master' into roborock_sensors
starkillerOG File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See my note about below about doing the binding during the init. I suppose the best place to hook this is to happen is in the
info()
call, but I'll think on it.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can move all the binding/IO (status retrieving, choices list retrieving etc) to the
info()
call, cache it there and then return the list of sensors/buttons/settings from the cache.If sensors/buttons/settings is accesed when cache is still empty I can call
info()
there.Do you want me to move it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Or we could raise an error when sensors/buttons/settings is accesed when cache is still empty, maybe that is nicer since you then know that the sensors/buttons/settings will not do IO, and therefore do not have to be run in a executor job...