fix: Add helper and automation for Furbot to address mqtt.publish permissions change in 2026.10
This commit is contained in:
+34
-18
@@ -79,6 +79,11 @@ input_boolean:
|
||||
name: Guest Room
|
||||
icon: mdi:account
|
||||
|
||||
input_button:
|
||||
furbot_clean_segments:
|
||||
name: Clean Selected Segments
|
||||
icon: mdi:play
|
||||
|
||||
homeassistant:
|
||||
customize:
|
||||
input_boolean.furbot_segment_bathroom:
|
||||
@@ -146,26 +151,26 @@ template:
|
||||
script:
|
||||
|
||||
# Vacuum the bedroom (room ) only with high suction and two passes
|
||||
furbot_deep_clean_bedroom:
|
||||
alias: "Furbot: Deep Clean Bedroom"
|
||||
sequence:
|
||||
# Cache the fan setting and reset it when cleaning finishes
|
||||
- service: input_text.set_value
|
||||
target:
|
||||
entity_id: input_text.furbot_last_fan_speed
|
||||
data:
|
||||
value: "{{ states('select.valetudo_furbot_fan') }}"
|
||||
# furbot_deep_clean_bedroom:
|
||||
# alias: "Furbot: Deep Clean Bedroom"
|
||||
# sequence:
|
||||
# # Cache the fan setting and reset it when cleaning finishes
|
||||
# - service: input_text.set_value
|
||||
# target:
|
||||
# entity_id: input_text.furbot_last_fan_speed
|
||||
# data:
|
||||
# value: "{{ states('select.valetudo_furbot_fan') }}"
|
||||
|
||||
# Start Cleaning
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: valetudo/furbot/FanSpeedControlCapability/preset/set
|
||||
payload: max
|
||||
# # Start Cleaning
|
||||
# - service: mqtt.publish
|
||||
# data:
|
||||
# topic: valetudo/furbot/FanSpeedControlCapability/preset/set
|
||||
# payload: max
|
||||
|
||||
- service: mqtt.publish
|
||||
data:
|
||||
topic: valetudo/furbot/MapSegmentationCapability/clean/set
|
||||
payload: '{"segment_ids": ["5"], "iterations": 2}'
|
||||
# - service: mqtt.publish
|
||||
# data:
|
||||
# topic: valetudo/furbot/MapSegmentationCapability/clean/set
|
||||
# payload: '{"segment_ids": ["5"], "iterations": 2}'
|
||||
|
||||
# Vacuum Selected Segments
|
||||
furbot_clean_segments:
|
||||
@@ -217,6 +222,17 @@ script:
|
||||
# Vacuum Automations
|
||||
automation:
|
||||
|
||||
# Run script.furbot_clean_segments (required because of mqtt.publish
|
||||
# permission restrictions in 2026.10+ 🤦)
|
||||
- alias: "Furbot: Clean Selected Rooms"
|
||||
triggers:
|
||||
- trigger: button.pressed
|
||||
target:
|
||||
entity_id: input_button.furbot_clean_segments
|
||||
action:
|
||||
- service: script.furbot_clean_segments
|
||||
target: {}
|
||||
|
||||
# Reset the Fan Speed when cleaning is complete (if cached)
|
||||
- alias: "Furbot: Reset Fan Speed"
|
||||
trigger:
|
||||
|
||||
Reference in New Issue
Block a user