jeff-winn / homebridge-automower-platform

A platform plugin for Homebridge to connect your Husqvarna Automower and Gardena Smart robotic lawn mowers to Apple HomeKit.
MIT License
10 stars 0 forks source link

Mower faults are changing switches #362

Open jeff-winn opened 2 months ago

jeff-winn commented 2 months ago

Describe The Bug:

Whenever the mower faults while mowing the main switch seems to turn off even though the mower would be mowing and is still on. It’s hard to tell it should be mowing like this.

To Reproduce:

Easiest way would be to have the mower out mowing and lift it. The switch will then turn off.

Expected behavior:

When the mower is mowing and faults, the switch should ignore that it’s not mowing and just stay in whatever state it was in previously.

Logs:

[8/17/2024, 11:50:50 AM] [Homebridge Automower Platform] Received event:
 {"id":"REDACTED","type":"status-event","attributes":{"battery":{"batteryPercent":74},"mower":{"mode":"MAIN_AREA","activity":"NOT_APPLICABLE","state":"FATAL_ERROR","inactiveReason":"NONE","errorCode":36,"errorCodeTimestamp":1723894409000},"planner":{"nextStartTimestamp":0,"override":{"action":"NOT_ACTIVE"},"restrictedReason":"NOT_APPLICABLE"},"metadata":{"connected":true,"statusTimestamp":1723909850266}}}
[8/17/2024, 11:50:50 AM] [Homebridge Automower Platform] Changed 'Motion Sensor' for 'Dobby': GENERAL_FAULT
[8/17/2024, 11:50:50 AM] [Homebridge Automower Platform] Changed 'Motion Sensor' for 'Dobby': NO_MOTION
[8/17/2024, 11:50:50 AM] [Homebridge Automower Platform] Changed 'Schedule' for 'Dobby': OFF

Plugin Config:


{
  "name": "Homebridge Automower Platform",
  "device_type": "automower",
  "sensor_mode": "motion_only",
  "logger_type": "imitation",
  "lang": "en",
  "appKey": "REDACTED",
  "authentication_mode": "client_credentials",
  "application_secret": "REDACTED",
  "platform": "Homebridge Automower Platform"
}

Screenshots:

Mower:

Environment:

jeff-winn commented 2 months ago

The big concern with this is if the mower is trying to mow and faults, when I check HomeKit it looks like the mower has been parked, and not that it's sitting on the property somewhere in a ditch waiting for help to arrive.