Lawn mower robot control

My good old Husqvarna 305 is now 11 years old and still running. But it’s not smart, it doesn’t have an App or API to control it. You can “only” select two time blocks and the days on which it should mow.
I used to select the days on/off from time to time to adapt it to the growth of the lawn because I don’t want it to mow every day without needing to.

But the Robo stays in its charging station when the charging station has no power. When power is restored, it checks whether it should run according to the schedule and starts running if necessary. This is the opportunity for automation.

The Robo is connected to the power circuit in the garden shed, so I had a switchable element installed in the sub-distribution board in the garden shed and used it to make the Robo controllable. I have set the Robo to mow Mon Tue Wed Thu Fri & Sat in the two time blocks 8:00-12:00 & 14:00-19:00. It is important that the Robo only runs in daylight so that no animals (hedgehogs) are injured by it.

Now the automation is still missing. A DropDown with the selection of the days on which the Robo should run and an automation in Home Assistant, and the Robo is already smart.

The helper is quickly created and also integrated into the dashboard. I can use the helper to set the days of the week on which the robot lawn mower should mow.

The power supply for the lawn mower in the sub-distribution board is then switched on/off via an automation system.

To ensure that the Robo is always fully charged, I switch the power supply on every day between 0:00 & 01:00, during which time the Robo is not allowed to run according to its schedule.

alias: Rasenmäher
description: ""
trigger:
  - platform: time
    at: "00:00:00"
    id: "00"
  - platform: time
    at: "02:00:00"
    id: "02"
  - platform: time
    at: "08:00:00"
    id: "08"
  - platform: time
    at: "19:00:00"
    id: "19"
condition: []
action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - "00"
        sequence:
          - type: turn_on
            device_id: e635171c31869d53fe42a3e06c32c3ea
            entity_id: 5c5740323fd792ef786a30fed73d9890
            domain: switch
      - conditions:
          - condition: trigger
            id:
              - "02"
              - "19"
        sequence:
          - type: turn_off
            device_id: e635171c31869d53fe42a3e06c32c3ea
            entity_id: 5c5740323fd792ef786a30fed73d9890
            domain: switch
  - if:
      - condition: trigger
        id:
          - "08"
    then:
      - choose:
          - conditions:
              - condition: state
                entity_id: input_select.rasenmaher
                state: Mo
              - condition: time
                weekday:
                  - mon
            sequence:
              - type: turn_on
                device_id: e635171c31869d53fe42a3e06c32c3ea
                entity_id: 5c5740323fd792ef786a30fed73d9890
                domain: switch
      - choose:
          - conditions:
              - condition: state
                entity_id: input_select.rasenmaher
                state: Mo Do
              - condition: time
                weekday:
                  - mon
                  - thu
            sequence:
              - type: turn_on
                device_id: e635171c31869d53fe42a3e06c32c3ea
                entity_id: 5c5740323fd792ef786a30fed73d9890
                domain: switch
      - choose:
          - conditions:
              - condition: state
                entity_id: input_select.rasenmaher
                state: Mo Mi Fr
              - condition: time
                weekday:
                  - mon
                  - wed
                  - fri
            sequence:
              - type: turn_on
                device_id: e635171c31869d53fe42a3e06c32c3ea
                entity_id: 5c5740323fd792ef786a30fed73d9890
                domain: switch
      - choose:
          - conditions:
              - condition: state
                entity_id: input_select.rasenmaher
                state: Mo Di Mi Fr
              - condition: time
                weekday:
                  - mon
                  - tue
                  - wed
                  - fri
            sequence:
              - type: turn_on
                device_id: e635171c31869d53fe42a3e06c32c3ea
                entity_id: 5c5740323fd792ef786a30fed73d9890
                domain: switch
      - choose:
          - conditions:
              - condition: state
                entity_id: input_select.rasenmaher
                state: Mo Di Mi Do Fr
              - condition: time
                weekday:
                  - mon
                  - tue
                  - wed
                  - thu
                  - fri
            sequence:
              - type: turn_on
                device_id: e635171c31869d53fe42a3e06c32c3ea
                entity_id: 5c5740323fd792ef786a30fed73d9890
                domain: switch
      - choose:
          - conditions:
              - condition: state
                entity_id: input_select.rasenmaher
                state: Mo Di Mi Do Fr Sa
              - condition: time
                weekday:
                  - mon
                  - tue
                  - wed
                  - thu
                  - fri
                  - sat
            sequence:
              - type: turn_on
                device_id: e635171c31869d53fe42a3e06c32c3ea
                entity_id: 5c5740323fd792ef786a30fed73d9890
                domain: switch
mode: single

Leave a Comment

Data protection
I, Guido Jeuken (Place of residence: Germany), would like to process personal data with external services. This is not necessary for using the website, but allows me to interact even more closely with them. If desired, please make a choice:
Data protection
I, Guido Jeuken (Place of residence: Germany), would like to process personal data with external services. This is not necessary for using the website, but allows me to interact even more closely with them. If desired, please make a choice: