## Get area&time in Home Assistant from Valetudo

Goal Get Home Assistant sensors from Valetudo to measure time and area last cleaning Requirements Valetudo integrated into Home assistant Api Swagger available (For congatudo, just add a valid port for webui in the addon configuration) Valetudo should have a fixed IP Steps In configuration.yaml add the code below to get sensors build from the valetudo api every 5 seconds rest:- scan_interval:5resource:"http://<valetudo_or_ha_ip>:<valetudo_port>/api/v2/robot/state/attributes"sensor:- name:"Vacuum last clean area"value_template:"{{ value_json[4]['value'] }}"state_class:"measurement"json_attributes_path:"$[4]"json_attributes:- __class- metadata- type- value- name:"Vacuum last clean duration"value_template:"{{ value_json[3]['value'] }}"device_class:"timestamp"state_class:"total"json_attributes_path:"$[3]"json_attributes:- __class- metadata- type- valueNow, you have sensors for both time and area measures but just in default units, so in order to get them in human readable units, you are able to build virtual templated sensors. [Read More]

## Clean Me

Goal Get your vacuum close to your bin once the tank is full Requirements Valetudo integrated into Home assistant Tank percentage sensor available (i.e. with this tuto) A defined spot in valetudo Steps Once the tank percentage sensor is available, this automation is easy just taking care about the actions you may need. We are going to trigger this action every time the vacuum is in the dock for more than 1h, but it will trigger just in case of the tank percentage sensor above of 100. [Read More]

## Time and Tank Virtual Sensors

Goal Valetudo is so great, but its home assistant integration miss out some good sensors like the time, area and tank fill percentage. With this guide, you are going to learn how to create virtual sensor to get the cleaning time and tank percentage based on this time. Requirements Valetudo integrated into Home assistant Steps Create one input date time helper. In this example the helper will be called RobotStartCleaningTime, being an date and time helper, so the id of this helper will be: input_datetime. [Read More]