Git Product home page Git Product logo

Comments (10)

sca075 avatar sca075 commented on September 24, 2024 1

@zecoj Thanks a lot for this proposal, it is a cool idea will do it on the next release. If you don't mind, would you star this project please, this helps a lot.

from valetudo_vacuum_camera.

zecoj avatar zecoj commented on September 24, 2024

Thanks. Look forward to seeing this feature!

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@zecoj so: the implementation of this function will show the battery state when the vacuum is cleaning, moving, idle or error when docked the battery state (that is anyhow available in the card) will be not display (it makes no sense and also it is in order to avoid updates of the image while docked).
Although there will be a battery_state attribute coming our from the camera.
Hope this will meet your requirements, I mean of course it possible to use also the battery state from the vacuum but this should in any cases give an idea of what is the state of the battery in case a snapshot during error condition is taken.

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

Screenshot 2024-02-15 at 19 21 37

as preview of how it looks ;)

from valetudo_vacuum_camera.

zecoj avatar zecoj commented on September 24, 2024

That's awesome! I think there's a good case to have it display the battery when charging: charging/docked in between longer clean for larger houses. I think if you can show the battery when docked if it is less than 100%, that would probably be a good compromise.

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@zecoj v1.5.8 is now available, hope you will enjoy it at your disposal for any future requirements or ideas. I will try to improve it in the future release because actually I thought the same ;)

from valetudo_vacuum_camera.

zecoj avatar zecoj commented on September 24, 2024

Thanks for this, just tested it out and working as expected!

I still think it's good to show the battery while docked. Like I mentioned, if the vacuum is recharging whilst cleaning, it'll be good to know the battery level to know when it'll start cleaning again.

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

Thanks for this, just tested it out and working as expected!

I still think it's good to show the battery while docked. Like I mentioned, if the vacuum is recharging whilst cleaning, it'll be good to know the battery level to know when it'll start cleaning again.

I got you point and as workaround for the time be, there is the possibility to use the tile in the card to see the battery level.

type: custom:xiaomi-vacuum-map-card
map_source:
  camera: camera.valetudo_v1_silenttepidstinkbug_camera
calibration_source:
  camera: true
entity: vacuum.valetudo_silenttepidstinkbug
vacuum_platform: Hypfer/Valetudo
internal_variables:
  topic: valetudo/SilentTepidStinkbug
....

tiles:
  - tile_id: battery_level
    entity: vacuum.valetudo_silenttepidstinkbug
    label: Battery
    attribute: battery_level
    icon_source: vacuum.valetudo_silenttepidstinkbug.attributes.battery_icon
    unit: '%'
....

But as mentioned above (as per the camera need to catch when the vacuum is connected to MQTT and change the label text to docked) it will be possible to to have the Docked/Charging -> Docked (Battery: 100%) transition. I'm confident on your kind understanding, technically the camera suspend the image creation when the vacuum is docked (so the status text become a little more complex).. I would need to move the text refresh in a new thread to do not overload home assistant.. As well if I understand you want to charge the battery and then send the robot to another room for example? this can be done with the automations and the battery level in the camera attributes is updated.
As soon I'm done with it, I will get in contact with you here in GitHub.

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

@zecoj

Screenshot 2024-02-16 at 18 01 38

does it looks better? ;) next version will have it

from valetudo_vacuum_camera.

sca075 avatar sca075 commented on September 24, 2024

And I don't why but also improved the rendering..

from valetudo_vacuum_camera.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.