Closed dckiller51 closed 3 years ago
Hello,
Can you give me feedback for Home Assistant users? Maybe I'm doing a bad integration. Should we add an MQTT Vaccum component? Because I left in automatic.
Thank you for your help.
I personally have no idea how to use Home Assistant. You may want to consult origin Valetudo instructions about MQTT and HA, they shouldn't differ much from RE in that case (at least they didn't when I followed their changes).
Personnellement, je ne sais pas comment utiliser Home Assistant. Vous voudrez peut-être consulter les instructions d'origine Valetudo sur MQTT et HA, elles ne devraient pas différer beaucoup de RE dans ce cas (du moins elles ne l'ont pas fait lorsque j'ai suivi leurs modifications).
Hello,
Here is the difference with Valetudo 0.6.1. I think it's just missing the device part.
Device integration OK
{ "name": "rockrobo", "unique_id": "rockrobo", "device": { "manufacturer": "Beijing Roborock Technology Co., Ltd.", "model": "S5", "name": "rockrobo", "identifiers": [ "rockrobo" ], "sw_version": "0.6.1" }, "schema": "state", "supported_features": [ "start", "pause", "stop", "return_home", "battery", "status", "locate", "clean_spot", "fan_speed", "send_command" ], "command_topic": "valetudo/rockrobo/command", "state_topic": "valetudo/rockrobo/state", "set_fan_speed_topic": "valetudo/rockrobo/set_fan_speed", "fan_speed_list": [ "off", "low", "medium", "high", "max" ], "send_command_topic": "valetudo/rockrobo/custom_command", "json_attributes_topic": "valetudo/rockrobo/attributes", "availability_topic": "valetudo/rockrobo/status" }
NOK
{ "name": "xiaomi_vacuum_cleaner", "unique_id": "xiaomi_vacuum_cleaner", "schema": "state", "supported_features": [ "start", "pause", "stop", "return_home", "battery", "status", "locate", "clean_spot", "fan_speed", "send_command" ], "command_topic": "valetudo/xiaomi_vacuum_cleaner/command", "state_topic": "valetudo/xiaomi_vacuum_cleaner/state", "set_fan_speed_topic": "valetudo/xiaomi_vacuum_cleaner/set_fan_speed", "fan_speed_list": [ "min", "medium", "high", "max", "mop" ], "send_command_topic": "valetudo/xiaomi_vacuum_cleaner/custom_command", "json_attributes_topic": "valetudo/xiaomi_vacuum_cleaner/attributes" }
@rand256
To complete my research how to add this to your config.
lib/miio/Model.js
vacuum: { name: this.identifier, unique_id: this.identifier, device: { manufacturer: this.model.getManufacturerName(), model: this.model.getModelName(), name: this.identifier, identifiers: [this.identifier], sw_version: this.model.getValetudoVersion() },
Thanks
Here is the difference with Valetudo 0.6.1. I think it's just missing the device part.
Well, yeah, then they did reworked that. It's also missing "availability_topic" it seems, but since I never used HA and neither read its docs, I don't know what is obligatory and what is optional there.
To complete my research how to add this to your config.
Autoconf payload is defined here.
Do you have the possibility to add it in your future update?
Yes, if that will make it work.
I've made a test build which includes "device" section added to homeassistant autoconf topic. Please try it and report whether this helps.
How to check:
Still, maybe something else is needed to be added, idk
I've made a test build which includes "device" section added to homeassistant autoconf topic. Please try it and report whether this helps.
How to check:
- Download and unpack the test app to i.e. /mnt/data/valetudo;
- Stop currently running service by running /etc/init/S11valetudo stop (on 2008+ fw);
- Run the test app by typing /mnt/data/valetudo/valetudo plus
; - ...
- Then stop the test app by pressing Ctrl+C;
- Restart the common service by running /etc/init/S11valetudo start (on 2008+ fw);
- Remove the test app.
Still, maybe something else is needed to be added, idk
Hello,
Hello, I have tested on my S50 Firmw 2020. It works fine. Below are screenshots.
On the other hand, would it be possible to attach valetudo-mapper with.
Thank you for starting your testing.
Describe the bug
Automatic integration in Home assistant does not create an additional device but an entities
How to Reproduce
Expected behavior
my problem
Screenshots
Vacuum Model: GEN2 S50 Valetudo Version: Valetudo RE V 0.9.8.2 User-Agent
Additional context