Can be done by flashing a Wemos D1 mini with ESP-Link. Connect the Wemos with the automower on the apprioate pins. (keep an eye on the 3,3V tolerance of the rs-232 port of the automower.
(I asume we talk about the G2 version of automower, a 220AC or 230ACX for example. (later models have an interface from huqvarna with can be used.)
for this case, the automower can be controlled by sending the (serial) command code, to the automover.
this is achieved by sending the codes through a socket + port connection for the Wemos.
my goal is, to send my automower to its base, when it is raining, and continue after it is dry and stays dry for 2 hours. (mowing can be done when it is raining, but makes the mower very dirty ).
the commands to send can by done in appdaemon python or by a simple shell command.
I’ve not integrated it all yet, but I can send these simple commands to the WemosD1, which appear on the serial port:
create a file: shell_commands.yaml
include this in configuration.yaml (shell_command: !include shell_commands.yaml)
and put this in shell_command.yaml:
(the code that are send, are not the correct one, just as an example, see below for the right codes)
my wemos has a fixed IP adres which is 192.168.2.239 and the port adres for ESP_LINK is 23
I’m using a WemosD1 pro, because it has an option to use an external antenna for a better signal, but the standard wemosD1 will do the trick also.
automower_home: echo -e "\xA1\xA2" | nc 192.168.2.239 23
automower_continue: echo -e "\xB1\xB2" | nc 192.168.2.239 23
(I have to test if this is enough, because the automower is sending the commands received back, dont know I’ve got to check these, then a simple python program is needed for send/receiving)
these commands can be used in HA automation to do the trick.
for example
- id: '1681396553747'
alias: Automower go home
description: ''
trigger:
- platform: state
entity_id:
- input_boolean.automower_home_continue
from: 'off'
to: 'on'
condition: []
action:
- service: shell_command.automower_home
data: {}
mode: single
here’s an old link for detailed info about the protocol etc:
http://www.roboternetz.de/community/threads/1330-AutoMower-von-Elektrolux-und-Husqvarna/page8?p=89398#post89398
the codes for sending the automower to its base are : “0F805F000D” (hex)
and to set the mower in automode again: “0F805F000E” (hex)