All Projects → denysdovhan → Vacuum Card

denysdovhan / Vacuum Card

Licence: mit
Vacuum cleaner card for Home Assistant Lovelace UI

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Vacuum Card

ha-config-ataraxis
My Home Assistant Configs. If you like what you see, please ⭐️my repo. It would encourage me a lot 🤘
Stars: ✭ 146 (-50.51%)
Mutual labels:  hass, home-assistant, homeassistant
Home Assistant Config
🏠 My Home Assistant configuration, a bit different that others :) Be sure to 🌟 this repository for updates!
Stars: ✭ 1,050 (+255.93%)
Mutual labels:  home-assistant, homeassistant, hass
Homeassistant
Home Assistant Configuration Files and Documentation
Stars: ✭ 395 (+33.9%)
Mutual labels:  home-assistant, homeassistant, hass
Addon Homebridge
 Homebridge - Community Hass.io Add-on for Home Assistant
Stars: ✭ 96 (-67.46%)
Mutual labels:  home-assistant, homeassistant, hass
ad-alexatalkingclock
Alexa (or other Smart Speakers) tell you the time without asking every hour. Please ⭐️if you like my app :)
Stars: ✭ 30 (-89.83%)
Mutual labels:  hass, home-assistant, homeassistant
purifier-card
Air Purifier card for Home Assistant Lovelace UI
Stars: ✭ 155 (-47.46%)
Mutual labels:  hass, home-assistant, homeassistant
Homeassistant Config
Configuration for @brianjking & @KinnaT's Home Assistant Installation
Stars: ✭ 80 (-72.88%)
Mutual labels:  home-assistant, homeassistant, hass
pymusiccast
Group MusicCast Speakers with Home Assistant
Stars: ✭ 34 (-88.47%)
Mutual labels:  hass, home-assistant, homeassistant
addon-shinobi
Shinobi Pro - Community Hass.io Add-on for Home Assistant
Stars: ✭ 22 (-92.54%)
Mutual labels:  hass, home-assistant, homeassistant
addon-appdaemon
AppDaemon4 - Home Assistant Community Add-ons
Stars: ✭ 66 (-77.63%)
Mutual labels:  home-assistant, homeassistant
wyzesense2mqtt
Configurable WyzeSense to MQTT Gateway intended for use with Home Assistant or other platforms that use MQTT discovery mechanisms.
Stars: ✭ 55 (-81.36%)
Mutual labels:  home-assistant, homeassistant
Home assistant
My personal Home Assistant setup - Running on a HassOS VM.
Stars: ✭ 270 (-8.47%)
Mutual labels:  home-assistant, homeassistant
Tuya-v2-Supported-Devices
A collection of all of the known working Tuya v2 Devices
Stars: ✭ 30 (-89.83%)
Mutual labels:  home-assistant, homeassistant
addon-example
Example - Home Assistant Community Add-ons
Stars: ✭ 73 (-75.25%)
Mutual labels:  home-assistant, homeassistant
home
Monorepo for all home automation related development, including integrated firmware, PCBs, configuration, and bridges
Stars: ✭ 104 (-64.75%)
Mutual labels:  home-assistant, homeassistant
openrgb ha
OpenRGB integration for Home Assistant
Stars: ✭ 40 (-86.44%)
Mutual labels:  home-assistant, homeassistant
home-assistant-frigidaire
Custom component for the Frigidaire integration
Stars: ✭ 11 (-96.27%)
Mutual labels:  home-assistant, homeassistant
esphome-weather-station
ESPHome version of Elektor weather station v2
Stars: ✭ 140 (-52.54%)
Mutual labels:  home-assistant, homeassistant
amshan-homeassistant
Home Assistant integrasjon for strømmålere (AMS/HAN/P1). Integrasjonen støter både streaming (serieport/TCP-IP) og MQTT (Tibber Pulse, energyintelligence.se etc)
Stars: ✭ 39 (-86.78%)
Mutual labels:  home-assistant, homeassistant
HomeAssistant
My Home Assistant Configuration
Stars: ✭ 71 (-75.93%)
Mutual labels:  home-assistant, homeassistant

Vacuum Card

npm version hacs Patreon Buy Me A Coffee Twitter

Vacuum cleaner card for Home Assistant Lovelace UI

By default, Home Assistant does not provide any card for controlling vacuum cleaners. This card displays the state and allows to control your robot.

Preview of vacuum-card

Installing

💡 Tip: If you like this project and want to get some stickers and postcards, consider becoming a patron:

Become a patron

or just buy me a cup of ☕️ or 🥤:

Buy Me A Coffee

HACS

This card is available in HACS (Home Assistant Community Store).

Just search for Vacuum Card in plugins tab.

Manual

  1. Download vacuum-card.js file from the latest-release.
  2. Put vacuum-card.js file into your config/www folder.
  3. Add reference to vacuum-card.js in Lovelace. There's two way to do that:
    1. Using UI: ConfigurationLovelace DashboardsResources Tab → Click Plus button → Set Url as /local/vacuum-card.js → Set Resource type as JavaScript Module. Note: If you do not see the Resources Tab, you will need to enable Advanced Mode in your User Profile
    2. Using YAML: Add following code to lovelace section.
      resources:
        - url: /local/vacuum-card.js
          type: module
      
  4. Add custom:vacuum-card to Lovelace UI as any other card (using either editor or YAML configuration).

Using the card

This card can be configured using Lovelace UI editor.

  1. In Lovelace UI, click 3 dots in top left corner.
  2. Click Configure UI.
  3. Click Plus button to add a new card.
  4. Find Custom: Vacuum Card in the list.
  5. Choose entity.
  6. Now you should see the preview of the card!

Sorry, no support for actions and stats in visual config yet.

Typical example of using this card in YAML config would look like this:

type: 'custom:vacuum-card'
entity: vacuum.vacuum_cleaner
stats:
  default:
    - attribute: filter_left
      unit: hours
      subtitle: Filter
    - attribute: side_brush_left
      unit: hours
      subtitle: Side brush
    - attribute: main_brush_left
      unit: hours
      subtitle: Main brush
    - attribute: sensor_dirty_left
      unit: hours
      subtitle: Sensors
  cleaning:
    - attribute: cleaned_area
      unit: m2
      subtitle: Cleaning area
    - attribute: cleaning_time
      unit: minutes
      subtitle: Cleaning time
actions:
  - name: Clean living room
    service: script.clean_living_room
    icon: 'mdi:sofa'
  - name: Clean bedroom
    service: script.clean_bedroom
    icon: 'mdi:bed-empty'
  - name: Clean kitchen
    service: script.clean_kitchen
    icon: 'mdi:silverware-fork-knife'

Here is what every option means:

Name Type Default Description
type string Required custom:vacuum-card
entity string Required An entity_id within the vacuum domain.
map string Optional An entity_id within the camera domain, for streaming live vacuum map.
map_refresh integer 5 Update interval for map camera in seconds
image string default Path to image of your vacuum cleaner. Better to have png or svg.
show_name boolean true Show friendly name of the vacuum.
show_status boolean true Show status of the vacuum.
show_toolbar boolean true Show toolbar with actions.
compact_view boolean false Compact view without image.
stats object Optional Custom per state stats for your vacuum cleaner
actions object Optional Custom actions for your vacuum cleaner.

stats object

You can use any attribute of vacuum or even any entity by entity_id to display by stats section:

Name Type Default Description
entity_id string Optional An entity_id with state, i.e. sensor.vacuum.
attribute string Optional Attribute name of the stat, i.e. filter_left.
unit string Optional Unit of measure, i.e. hours.
subtitle string Optional Friendly name of the stat, i.e. Filter.

actions object

You can defined custom scripts for custom actions i.e cleaning specific room and add them to this card with actions option.

Name Type Default Description
name string Optional Friendly name of the action, i.e. Clean bedroom.
service string Optional A service to call, i.e. script.clean_bedroom.
icon string Optional Any icon for action button.
service_data object service_data for service call

Animations

I've added some animations for this card to make it alive. Animations are applied only for image property. Here's how they look like:

Cleaning Docking
Cleaning anumation Returning anumation

Supported languages

This card supports translations. Please, help to add more translations and improve existing ones. Here's a list of supported languages:

  • English
  • Українська (Ukrainian)
  • Deutsch (German)
  • Français (French)
  • Italiano (Italian)
  • Nederlands (Dutch)
  • Polski (Polish)
  • Русский (Russian)
  • Español (Spanish)
  • Čeština (Czech)
  • Magyar (Hungarian)
  • עִבְרִית (Hebrew)
  • Português (Portuguese)
  • Svenska (Swedish)
  • Norsk bokmål (Norwegian)
  • Dansk (Danish)
  • 한국어 (Korean)
  • Suomi (Finnish)
  • Català (Catalan)
  • Your language?

Supported models

This card relies on basic vacuum services, like pause, start, stop, return_to_base, etc. It should work with any robot vacuum, however I can physically test it only with my own robot vacuum.

If this card works with your vacuum cleaner, please open a PR and your model to the list.

  • Roborock S6 MaxV
  • Roborock S6
  • Roborock S6 Pure
  • Roborock S5
  • Roborock S5 Max
  • Roborock S50
  • Roborock S4
  • Roborock S4 Max
  • Roborock E25
  • Roborock E4
  • Mijia Robot Vacuum Cleaner 1C (STYTJ01ZHM)
  • Xiaomi Mi Robot (STYJ02YM)
  • Xiaomi Mi Robot 1S
  • Xiaomi Mi Roborock V1 (SDJQR02RR)
  • Xiaomi Mijia 1C
  • Roomba 675
  • Roomba 960
  • Roomba 981
  • Roomba i7+
  • Dyson 360 Eye
  • Neato D7
  • Neato D6
  • Shark IQ
  • Ecovacs Deebot 950
  • EcoVacs Deebot OZMO T8 AIVI
  • Eufy Robovac 30c
  • Mi Robot Vacuum-Mop P
  • Your vacuum?

Development

Want to contribute to the project?

First of all, thanks! Check contributing guideline for more information.

Inspiration

This project is heavily inspired by:

  • MacBury Smart House — basically, this project is a refinement of MacBury's custom card.
  • Benji vacuum card — this is where I noticed this vacuum card design for the first time.

Huge thanks for their ideas and efforts 👍

License

MIT © Denys Dovhan

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].