Switch off while charging when mowing
Closed this issue · 1 comments
jeff-winn commented
Describe The Bug:
While the mower is mowing, and has to recharge, the on switch in HomeKit was turned off even though the mower was going to continue mowing after the recharge completed.
To Reproduce:
Given a mower that is mowing
When the mower has to recharge
Then the switch will be off
Expected behavior:
Given a mower that is mowing
When the mower has to recharge
Then the switch should be on
Logs:
[4/29/2023, 1:36:13 PM] [Homebridge Automower Platform] Received event:
{"id":"<<REDACTED>","type":"status-event","attributes":{"battery":{"batteryPercent":29},"mower":{"mode":"MAIN_AREA","activity":"GOING_HOME","state":"IN_OPERATION","errorCode":0,"errorCodeTimestamp":0},"planner":{"nextStartTimestamp":0,"override":{"action":null},"restrictedReason":"NOT_APPLICABLE"},"metadata":{"connected":true,"statusTimestamp":1682789773498}}}
[4/29/2023, 1:36:13 PM] [Homebridge Automower Platform] Changed 'Arriving Sensor' for 'Dobby': OPEN
[4/29/2023, 1:36:13 PM] [Homebridge Automower Platform] Changed 'Schedule' for 'Dobby': OFF
Plugin Config:
{
"name": "Homebridge Automower Platform",
"lang": "en",
"appKey": "<<REDACTED>>",
"authentication_mode": "client_credentials",
"application_secret": "<<REDACTED>>",
"platform": "Homebridge Automower Platform",
"logger_type": "imitation"
}
Screenshots:
Mower:
- Year: 2020
- Model: Automower 430XH
Environment:
- Plugin Version: v1.5.0-preview.65+3ae24ce.0
- Homebridge Version: v1.6
- Operating System: Docker
jeff-winn commented
Likely need to change approach for states and activities.
Activities
- Mowing
- Parked
- Off
States
- Leaving
- Going Home
- In Operation
- Charging
- Idle
- Faulted
- Tampered
- Unknown