diff --git a/dashboards/views/01_home.yaml b/dashboards/views/01_home.yaml index a8901b3..bfe2fb4 100644 --- a/dashboards/views/01_home.yaml +++ b/dashboards/views/01_home.yaml @@ -389,27 +389,27 @@ cards: icon: mdi:floor-plan tap_action: action: call-service - service: button.press + service: script.turn_on target: - entity_id: button.roborock_s8_pro_ultra_kokken_bryggers + entity_id: script.roborock_manuelt_kokken - type: button name: Syd icon: mdi:floor-plan tap_action: action: call-service - service: button.press + service: script.turn_on target: - entity_id: button.roborock_s8_pro_ultra_syd + entity_id: script.roborock_manuelt_syd - type: button name: Mop icon: mdi:floor-plan tap_action: action: call-service - service: button.press + service: script.turn_on target: - entity_id: button.roborock_s8_pro_ultra_vac_followed_by_mop + entity_id: script.roborock_manuelt_mop - type: custom:button-card entity: vacuum.roborock_s8_pro_ultra @@ -417,9 +417,9 @@ cards: icon: mdi:robot-vacuum tap_action: action: call-service - service: vacuum.start + service: script.turn_on target: - entity_id: vacuum.roborock_s8_pro_ultra + entity_id: script.roborock_manuelt_start state: - value: cleaning name: Dock @@ -503,9 +503,9 @@ cards: icon: mdi:robot-mower tap_action: action: call-service - service: lawn_mower.start_mowing + service: script.turn_on target: - entity_id: lawn_mower.husqvarna_automower + entity_id: script.ploeneklipper_manuelt_start state: - value: mowing name: Stop diff --git a/include/automations/ploeneklipper.yaml b/include/automations/ploeneklipper.yaml index 903b6e4..4e9fb7a 100644 --- a/include/automations/ploeneklipper.yaml +++ b/include/automations/ploeneklipper.yaml @@ -111,6 +111,9 @@ - condition: state entity_id: lawn_mower.husqvarna_automower state: 'mowing' + - condition: state + entity_id: input_boolean.ploeneklipper_manuelt_startet + state: 'off' action: - service: lawn_mower.dock target: @@ -119,3 +122,14 @@ data: title: "Plæneklipper" message: "Klipperen er sendt hjem - {{ trigger.to_state.attributes.friendly_name }} kom hjem." + +- alias: 'Plæneklipper - reset manuelt startet flag' + description: 'Nulstil manuelt-startet flag når klipperen dokker' + trigger: + - platform: state + entity_id: lawn_mower.husqvarna_automower + to: 'docked' + action: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.ploeneklipper_manuelt_startet diff --git a/include/automations/roborock.yaml b/include/automations/roborock.yaml index ff5b266..92e34fb 100644 --- a/include/automations/roborock.yaml +++ b/include/automations/roborock.yaml @@ -153,6 +153,9 @@ - condition: state entity_id: vacuum.roborock_s8_pro_ultra state: "cleaning" + - condition: state + entity_id: input_boolean.roborock_manuelt_startet + state: "off" action: - service: vacuum.return_to_base @@ -165,6 +168,21 @@ message: "Rengøring stoppet fordi nogen er kommet hjem." +# 🔄 Reset manuelt-startet flag når Roborock dokker +- id: roborock_reset_manuelt_flag + alias: Roborock - Reset manuelt startet flag + + trigger: + - platform: state + entity_id: vacuum.roborock_s8_pro_ultra + to: "docked" + + action: + - service: input_boolean.turn_off + target: + entity_id: input_boolean.roborock_manuelt_startet + + # 🧹 Syd på arbejdsdage - id: roborock_syd_workday_vacuum alias: Roborock støvsug syd på arbejdsdage diff --git a/include/input/boolean/robots.yaml b/include/input/boolean/robots.yaml new file mode 100644 index 0000000..90fabb0 --- /dev/null +++ b/include/input/boolean/robots.yaml @@ -0,0 +1,7 @@ +roborock_manuelt_startet: + name: Roborock manuelt startet + icon: mdi:robot-vacuum + +ploeneklipper_manuelt_startet: + name: Plæneklipper manuelt startet + icon: mdi:robot-mower diff --git a/include/scripts/robots.yaml b/include/scripts/robots.yaml new file mode 100644 index 0000000..c3d3d60 --- /dev/null +++ b/include/scripts/robots.yaml @@ -0,0 +1,49 @@ +roborock_manuelt_kokken: + alias: "Roborock: Start køkken/bryggers manuelt" + sequence: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.roborock_manuelt_startet + - service: button.press + target: + entity_id: button.roborock_s8_pro_ultra_kokken_bryggers + +roborock_manuelt_syd: + alias: "Roborock: Start syd manuelt" + sequence: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.roborock_manuelt_startet + - service: button.press + target: + entity_id: button.roborock_s8_pro_ultra_syd + +roborock_manuelt_mop: + alias: "Roborock: Start mop manuelt" + sequence: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.roborock_manuelt_startet + - service: button.press + target: + entity_id: button.roborock_s8_pro_ultra_vac_followed_by_mop + +roborock_manuelt_start: + alias: "Roborock: Start alt manuelt" + sequence: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.roborock_manuelt_startet + - service: vacuum.start + target: + entity_id: vacuum.roborock_s8_pro_ultra + +ploeneklipper_manuelt_start: + alias: "Plæneklipper: Start manuelt" + sequence: + - service: input_boolean.turn_on + target: + entity_id: input_boolean.ploeneklipper_manuelt_startet + - service: lawn_mower.start_mowing + target: + entity_id: lawn_mower.husqvarna_automower