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 cleaning start, end and duration attributes #10
Comments
Adding attributes:
|
Should work pretty easily with |
Hey @Phype . I'm calling |
Hmm, i'll look into it. |
I've added a workaround, but you have to handle to incomplete data yourself. I guess this will never happen to newly created cleaningsessions from now on, so a simple fix to handle these incomplete objects would be to just ignore them, especially if you only want to display the data for the latest item anyway. |
BTW, do you want access to the This lists the total area cleaned in m² since the last reset. I can just copy it to the cleaning session object, the only question is if this really makes sense. I'd think this is more a property of the robot, and it's quite unintuitive having to get this property from the last cleaning session instead of sth. like 'CloudRobot.getTotalCleanedArea()' or something. [
{
"id": "obfuscated",
"sessionId": 1337,
"timeStamp": "2021-11-20T14:14:39",
"cleanedArea": 18.87,
"totalLifetimeCleanedArea": 10318.514
}
] |
Thanks for the heads up! Yes, for now I'm only including the latest cleaning session. When/if demands exists I might add more. If you include the property
I don't really know when you'd use the second to be honest. I'll definitely only be displaying one total. 😅 |
I could think at least one use-case for both options:
Regardless, as just a dummy integration user, I'd be happy to see either of those. ;) |
Finally! 🎉 Better late than never. Just released version 1.4.0 that contains this data. |
Umm, @Ekman little help? I updated the PureI integration via HACS, integration is showing release now as 1.4.0 but I can't see any new entities for my vacuum. Do I need to re-integrate the device? |
Weird @GitPetri ! Please add this to your logger:
default: warn
logs:
custom_components.purei9: debug
purei9: debug
homeassistant.components.purei9: debug |
Hmm, probably this: 2023-03-04 13:32:45.460 WARNING (SyncWorker_5) [custom_components.purei9.vacuum] DEPRECATED: Setup the integration using integration UI instead of configuration.yml. |
I'm glad to hear that! Just let me know if you have any more questions. 🙂 |
Add attributes to the vacuum, such as last cleaning. There are some base attributes that are defined in Home Assistant core. Start with them and work from there. Search
_ATTR
in entity and vacuum.Originally suggested in #4.
The text was updated successfully, but these errors were encountered: