lovelace-xiaomi-vacuum-card icon indicating copy to clipboard operation
lovelace-xiaomi-vacuum-card copied to clipboard

Attributes on Valetudo 2021.03.0

Open micdis opened this issue 3 years ago • 7 comments

Hi! since I updated my Valetudos to 2021.03.0 I don't see the attributes anymore. They come over MQTT (sensor.main_brush), but in the Lovelace Card I only see N/A

Am I doing something wrong?

entity: vacuum.rockrobo
type: 'custom:xiaomi-vacuum-card'
vendor: valetudo
name: false
attributes:
  main_brush:
    key: sensor.main_brush

micdis avatar Mar 31 '21 10:03 micdis

Same issue here. Before Valetudo was posting brushes status as attributes to vacuum.* entity, now it posts that data as separate entities and i cannot get them to show in the card

Dinth avatar Apr 20 '21 13:04 Dinth

Hello, You can put the valutedo re. no problem with. https://github.com/rand256/valetudo

dckiller51 avatar Apr 20 '21 21:04 dckiller51

Hello,

i have the same error :(

how can i resolve without change to valetudo RE ?

Cnopix.

cnopix avatar Jun 09 '21 20:06 cnopix

This seems to be changed in Valetudo 2021.04.0 with the rework of MQTT to better support Homie integration.

Is there any chance to add support to read state from custom sensor and not only attributes?

matejzero avatar Jul 18 '21 18:07 matejzero

Support for default sensor data has been added to version 4.4.0, but only tested for xiaomi vacuums. Let me know if it works for you or not.

benct avatar Nov 07 '21 02:11 benct

@benct For me it doesn't work :'(

i need to change something ?

cnopix avatar Nov 08 '21 19:11 cnopix

Hi, it works, you just need to rename the keys in the following way.

type: custom:xiaomi-vacuum-card
entity: vacuum.cinesino
vendor: valetudo
attributes:
  main_brush:
    key: main_brush
    unit: ' m'
  side_brush:
    key: right_brush
    unit: ' m'
  filter:
    key: main_filter
    unit: ' m'
  sensor:
    key: sensor_cleaning
    unit: ' m'

My sensors are named "sensor.cinesino_main_brush", "sensor.cinesino_right_brush" and so on.

gervaso avatar Nov 20 '21 16:11 gervaso