Hello everyone,
I want a switch in HomeKit and Lovelace that turns on my vacuum cleaner for two specific rooms.
For this purpose I have entered the following in my configuration.yaml:
homekit:
auto_start: true
filter:
include_entities: # Nur die Geräte in Homekit anzeigen, die hier aufgelistete sind
- vacuum.xiaomi_vacuum_cleaner
- ???.clean_kitchen_livingroom
switch:
- platform: template
switches:
clean_kitchen_livingroom:
turn_on:
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
service: xiaomi_miio.vacuum_clean_segment
segment:
- 16 # Wohnzimmer
- 17 # Küchen
turn_off:
service: vacuum.return_to_base
data:
entity_id: vacuum.xiaomi_vacuum_cleaner
How is it done right?
Many thanks to those who help.
Greeting Tristan