marotoweb / home-assistant-vacuum-viomise Goto Github PK
View Code? Open in Web Editor NEWThis project forked from krzysztofhajdamowicz/home-assistant-vacuum-styj02ym
Hacky Home assistant support for Viomi SE (V-RVCLM21A)
This project forked from krzysztofhajdamowicz/home-assistant-vacuum-styj02ym
Hacky Home assistant support for Viomi SE (V-RVCLM21A)
HA complains about no unique ID for vacuum entity:
https://www.home-assistant.io/faq#this-entity-does-not-have-a-unique-id
Could it be fixed, please? :)
Hello again.
I noticed that probably values for main and side brush are swapped.
I know that id's for mapping those sensors are taken form specification file and seems to be correct but results show swapped values.
I can swap it in sensors.yaml file and that is wthat i recently did, but it is little confusing.
Here is my sensors.yaml configuration and screenshots from Mi Home App and Home Assistant
**vacuum_cleanmainbrush_h:
friendly_name: Vacuum - Main brush hours
unit_of_measurement: 'h'
value_template: ' {{states.vacuum.viomise.attributes.main_brush_left}}'
icon_template: 'mdi:screwdriver'
vacuum_cleanmainbrush_p:
friendly_name: Vacuum - Main brush percentage
unit_of_measurement: '%'
value_template: ' {{(states.vacuum.viomise.attributes.main_brush_percentage) }}'
icon_template: 'mdi:screwdriver'
vacuum_cleansidebrush_h:
friendly_name: Vacuum - Side brush hours
unit_of_measurement: 'h'
value_template: ' {{states.vacuum.viomise.attributes.side_brush_left }}'
icon_template: 'mdi:screwdriver'
vacuum_cleansidebrush_p:
friendly_name: Vacuum - Side brush percentage
unit_of_measurement: '%'
value_template: ' {{(states.vacuum.viomise.attributes.side_brush_percentage)}} '
icon_template: 'mdi:screwdriver'**
Hello Everyone,
Newbie on home automation world who is still learning how these things works.
Recently i purchased Viomi SE Vacuum + Mop cleaner which I integrated in HA using marotoweb/viomise platform and PiotrMachowski/lovelace-xiaomi-vacuum-map-card.
Things are working good except below functions related to mopping feature -
Any help is appreciated.
Thanks!!
how do i use repeats: 2
does not work
alias: Citenie kupelna
sequence:
service: vacuum.send_command
data:
command: set_mode_withroom
params:
Hi there,
I installed the integration via HACS and added the configuration to configuration.yaml file as indicated in the instructions but I can't understand where I have to enter my Xiaomi Cloud username and password.
At today, I cannot see the entity in HA...how can I solve this?
Thank you very much in advance!
This integration is using SUPPORT_*
Features for Vacuum, which are depricated with 2024.1.
SUPPORT_BATTERY,
SUPPORT_FAN_SPEED,
SUPPORT_LOCATE,
SUPPORT_PAUSE,
SUPPORT_RETURN_HOME,
SUPPORT_SEND_COMMAND,
SUPPORT_START,
SUPPORT_STATE,
SUPPORT_STOP,
https://developers.home-assistant.io/blog/2022/04/02/support-constants-deprecation/
https://developers.home-assistant.io/blog/2023/12/28/support-feature-magic-numbers-deprecation
Hello,
It looks like the 2024.3.3 HA update broke compatibility with the controls of the viomise vacuum. I see this error in the log whenever I click on a control button on the card:
Referenced entities vacuum.viomi_se are missing or not currently available
It worked fine before.
The solution is to update the corresponding line of the manifest.json of the integration to this and then restart HA:
"requirements": ["construct==2.10.70", "python-miio>=0.5.11"],
This integration dont show sensor of main brush?
when
vacuum cleaner not available
ip token checked
someone has the same problem
recopy file vision
did not help
Halo
any chance for adding two more enhancements for this integration?
One more thing: is is possible to read light (vacuum led status) ? You can turn it off or on, but i cant see such property either in your integration or specification file.
Turn vacuum unavailable
Good evening! I have this robot for the last 1.5 years Viomi SE V-RVCLM21A,it worked very well until half a year ago through the integrations Viomi Robot Vacuum Cleaner SE (V-RVCLM21A),but now it doesn't work anymore,the integration is no longer supported?
File "/config/custom_components/viomise/vacuum.py", line 457, in update
state.append(d['value'])
KeyError: 'value'
I am receiving the following error in HA when trying to connect the Viomi S9.
Is there a solution for this?
So after installing this via HACS, configuring the IP, token, restarting HA I can only see the entity in the register as unavailable. Is there support for vacuum mop pro at all?
Whenever home assistant updates the status of the vacuum cleaner it stops the current task from running.
Hi do you know if we can obtain the token from rebranded viomi? The name is minihelpers hydra S7 and it has its own app thus I am not sure if the token can be extracted at all.
Thanks
Thanks for updating the installation instructions, installing it through HACS works like a charm! Unfortunately, my Viomi SE vacuum reports to be unavailable. My Xiaomi Mija 1S is working without any issues. I've extracted the tokens using the extractor script found here: https://github.com/PiotrMachowski/Xiaomi-cloud-tokens-extractor
$ python3 token_extractor.py
....
Server (one of: cn, de, us, ru, tw, sg, in, i2) Leave empty to check all available:
Logging in...
Logged in.
Devices found for server "cn":
---------
NAME: Vacuum-Upstairs
ID: 2613xxxxx
IP: 192.168.40.101
TOKEN: 6e39xxxxxxxxxxxxxx6e4c
MODEL: roborock.vacuum.m1s
---------
Devices found for server "de":
---------
NAME: Vacuum-Downstairs
ID: 3754xxxxx
IP: 192.168.40.102
TOKEN: 5477xxxxxxxxxxxxxx6456
MODEL: viomi.vacuum.v19
---------
After which I've added the following to configuration.yaml
and restarted HA:
vacuum:
- platform: xiaomi_miio
host: 192.168.40.101
token: 6e39xxxxxxxxxxxxxx6e4c
name: Vacuum upstairs
- platform: viomise
host: 192.168.40.102
token: 5477xxxxxxxxxxxxxx6456
name: Vacuum downstairs
Any ideas why the Viomi vacuum doesn't work?
Hi, thanks for creating this! The README says to install it with HACS. However, I'm not available to find it within the HACS' repositories. Any ideas?
Hi, first of all thank you very much for your work.
I would like to know how I can change the map in the home assistant... I've already managed to add buttons, but when I click on it nothing happens..
If you change the map in "Mi Home APP" it will update in home assistant.
I currently have my card like this:
Thank you very much
Platform error vacuum.viomise - cannot import name 'Vacuum' from 'miio' (/usr/local/lib/python3.9/site-packages/miio/__init__.py)
configuration.yml:
vacuum:
- platform: viomise
host: 192.168.52.62
token: xxxx
name: Viomi V3
Getting above Error with Home Assistant Core 2022.5.3 - is it possible that the latest core package has some breaking changes?
Hi have always this harm do you have solution for this?
thanks
Is it possible to download current map from vacuum? It would be nice to show it in HA, choose single/multiple rooms to be cleaned, show vacuuming progress in the map, just like in Xiaomi Home app ;)
Hello,
I'm unable to use my Viomi SE. I'm always getting: "Device Viomi SE unavailable or token incorrect: Unable to discover the device 192.xxx.xxx.xxx". The token looks accurate as i've used the python code to extract it and it worked successully.
Could it be related with the firmware version ? My vacuum has: 4.0.9_0017
Thanks,
Bruno
Trying to call the service to start zone cleaning
:
service: vacuum.xiaomi_clean_zone
data:
zone:
- - -1.095378490775417
- -1.5482420966157804
- 0.6180019504671357
- -0.7262265578801923
repeats: 1
This call causes error in homeassistant logs and vacuum does not start cleaning:
Logger: custom_components.viomise.vacuum
Source: custom_components/viomise/vacuum.py:308
Integration: viomise (documentation, issues)
First occurred: 15:04:23 (3 occurrences)
Last logged: 15:04:42
Unable to clean zone: {'code': -9998, 'message': 'user ack invalid'}
Is there any way to fix the problem?
Point cleaning
works fine:
service: vacuum.xiaomi_clean_point
data:
point:
- -0.39603960396039284
- -0.6440594059405989
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.