R
rantanplan2
- Dabei seit
- 06.03.2023
- Beiträge
- 2
- Likes
- 0
Hallo zusammen,
ich bin auf dieses tolle Forum gestoßen und bin mir sicher das ihr mir helfen könnt.
Ich habe 3 Saugroboter im Haus, welche seit Jahren sehr gute Arbeit leisten.
Nun habe ich mich die letzten Tage an eine Einzelraumansteuerung gemacht, welche auch für einen Saugroboter super funktioniert.
Link:
(nicht erlaubt - Doku zu HA bei Valetudo)
Kann mir jemand einen Tipp geben, wie ich das Programm erweitern kann um die anderen Stoßwerke auch noch zu implementieren.
Vielen Dank!
Vielen Dank und Grüße
rantanplan2
ich bin auf dieses tolle Forum gestoßen und bin mir sicher das ihr mir helfen könnt.
Ich habe 3 Saugroboter im Haus, welche seit Jahren sehr gute Arbeit leisten.
Nun habe ich mich die letzten Tage an eine Einzelraumansteuerung gemacht, welche auch für einen Saugroboter super funktioniert.
Link:
(nicht erlaubt - Doku zu HA bei Valetudo)
Kann mir jemand einen Tipp geben, wie ich das Programm erweitern kann um die anderen Stoßwerke auch noch zu implementieren.
Vielen Dank!
Vielen Dank und Grüße
rantanplan2
group.yaml
vacuum_rooms:
name: Vacuum Rooms
entities:
- input_boolean.vacuum_kueche
- input_boolean.vacuum_wohnzimmer
- input_boolean.vacuum_esszimmer
configuration.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
group: !include groups.yaml
homeassistant:
customize: !include customize.yaml
input_boolean:
vacuum_kueche:
name: Küche
icon: mdi:stove
vacuum_wohnzimmer:
name: Wohnzimmer
icon: mdi:sofa
vacuum_esszimmer:
name: Eßzimmer
icon: mdi:silverware-fork-knife
Customize.yaml
input_boolean.vacuum_kueche:
room_id: "17"
input_boolean.vacuum_wohnzimmer:
room_id: "16"
input_boolean.vacuum_esszimmer:
room_id: "18"
scripts.yaml
vacuum_clean_segments:
sequence:
- service: script.turn_on
target:
entity_id: script.vacuum_clean_segments_message
data:
variables:
segments: '{{expand("group.vacuum_rooms") | selectattr("state","eq","on")
| map(attribute="attributes.room_id") | list | to_json}}'
mode: single
alias: vacuum_clean_segments
icon: mdi:arrow-right
vacuum_clean_segments_message:
alias: vacuum_clean_segments_message
sequence:
- service: mqtt.publish
data:
topic: steffen/Erdgeschoss/MapSegmentationCapability/clean/set
payload: '{"segment_ids": {{segments}}}'
mode: single
VISU:
type: vertical-stack
cards:
- type: custom:auto-entities
card:
type: entities
state_color: true
title: Reinigung Erdgeschoss
filter:
include:
- group: group.vacuum_rooms
exclude: []
show_empty: true
sort:
method: friendly_name
reverse: false
numeric: false
- type: custom:button-card
tap_action:
action: call-service
service: script.vacuum_clean_segments
confirmation: true
service_data: {}
target: {}
lock:
enabled: >-
[[[return states['group.vacuum_rooms'].state !== 'on'
states['vacuum.valetudo_erdgeschoss'].state !== 'docked']]]
exemptions: []
entity: script.vacuum_clean_segments
name: Vacuum selected segments
show_state: false
show_icon: true