Last active
August 25, 2025 17:36
-
-
Save adrianslabu/0d289212ddc34ebf850cfd22d001a363 to your computer and use it in GitHub Desktop.
Youtube - How to Integrate Valetudo with Home Assistant
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # READ THIS FIRST # | |
| File names match the video timestamps, so you can easily find the code for a specific moment in the video. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # File names match the video timestamps, so you can easily find the code for a specific moment in the video. | |
| input_select: | |
| first_floor: # entity | |
| name: First Floor | |
| options: | |
| - All | |
| - Bedroom | |
| - Guestroom | |
| - Office | |
| - Hallway | |
| initial: All # default selected option | |
| icon: mdi:floor-plan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # File names match the video timestamps, so you can easily find the code for a specific moment in the video. | |
| sequence: | |
| - if: | |
| - condition: template | |
| value_template: "{{ states('input_select.first_floor') == \"All\" }}" | |
| then: | |
| - delay: | |
| hours: 0 | |
| minutes: 0 | |
| seconds: 0 | |
| milliseconds: 1 | |
| else: | |
| - data: | |
| topic: valetudo/robot_1f/MapSegmentationCapability/clean/set | |
| payload: >- | |
| {"segment_ids": ["{{ segment_id }}"], "iterations": 1, | |
| "customOrder": true} | |
| action: mqtt.publish | |
| alias: Clean First Floor | |
| variables: | |
| room_map: | |
| Bedroom: 1 | |
| Guestroom: 2 | |
| Hallway: 3 | |
| Office: 4 | |
| selected_room: "{{ states('input_select.first_floor') }}" | |
| segment_id: "{{ room_map[selected_room] }}" | |
| description: "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # File names match the video timestamps, so you can easily find the code for a specific moment in the video. | |
| type: vertical-stack | |
| cards: | |
| - vacuum: valetudo_robot_1f | |
| title: Vacuum First Floor | |
| type: custom:valetudo-map-card | |
| map_scale: 1.7 | |
| rotate: 90 | |
| virtual_wall_color: red | |
| no_go_area_color: red | |
| show_path: true | |
| custom_buttons: [] | |
| - type: entities | |
| entities: | |
| - entity: select.valetudo_robot_1f_fan | |
| name: Vacuum Power | |
| icon: mdi:fan | |
| - entity: input_select.first_floor | |
| name: Room Select | |
| icon: mdi:floor-plan | |
| - entity: script.clean_first_floor | |
| name: Clean the selected room | |
| icon: mdi:play |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # File names match the video timestamps, so you can easily find the code for a specific moment in the video. | |
| input_text: | |
| last_cleaning_date: | |
| name: 'Last Cleaning Date' | |
| max: 10 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| type: custom:bubble-card | |
| card_type: button | |
| button_type: state | |
| entity: vacuum.valetudo_robot_1f | |
| name: Vacuum First Floor | |
| scrolling_effect: true | |
| show_icon: true | |
| force_icon: false | |
| show_name: true | |
| show_state: true | |
| show_last_changed: false | |
| show_last_updated: false | |
| show_attribute: false | |
| sub_button: | |
| - entity: select.valetudo_robot_1f_fan | |
| name: Power | |
| show_name: false | |
| show_arrow: true | |
| show_state: true | |
| - entity: input_select.first_floor | |
| show_state: true | |
| name: Room | |
| - icon: mdi:play | |
| show_name: false | |
| show_state: false | |
| show_attribute: false | |
| tap_action: | |
| action: perform-action | |
| target: {} | |
| perform_action: script.clean_first_floor | |
| styles: |- | |
| .bubble-button-card-container { | |
| background: rgba(65,65,65,0.3) !important; | |
| border: solid 1px rgb(50,50,50); | |
| box-shadow: 0px 0px 10px -9px black | |
| } | |
| .bubble-sub-button{ | |
| background-color: var(--bubble-button-active-background) !important; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment