Hello,
I’m fairly new to HA and I don’t have much experience in programming. I have the token for my xiaomi vacuum and this is what I have in my configuration.yaml
vacuum:
- platform: xiaomi_miio
host: 192.168.1.27
token: secret token
Now In my group.yaml I have the following code for my vacuum tab and the vacuum switch which works. Now im trying to show a tile with the vacuum information such as battery_level, cleaning time, all the available information I can display on the vacuum. Also bin full if it’s possible. I have the following code (exactly as pasted) but I keep getting an error. Please if I could get a hand on this? Thank you so much.
Vacuum:
name: Nigel
icon: mdi:broom
view: yes
entities:
- group.nigel_vacuumnigel_vacuum:
name: Nigel
control: hidden
view: yes
entities:
- vacuum.xiaomi_vacuum_cleaner
-platform: template
sensors:
vacuum_battery_level:
value_template: “{{ states.vacuum.xiaomi_vacuum_cleaner.attributes.battery_level }}”
entity_id: xiaomi_vacuum_cleaner
friendly_name: Battery Level