jeff-winn / homebridge-automower-platform

A platform plugin for Homebridge to connect your Husqvarna Automower and Gardena Smart robotic lawn mowers to Apple HomeKit.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Gardena mowers need streaming support

jeff-winn opened this issue · comments

Is your feature request related to a problem? Please describe:

As a user I want to know when changes occur to the mower (ideally) within a few seconds of the change occurring. However because there are polling restrictions on the Gardena website a web socket will need to be used.

Describe the solution you'd like:

I would like something that lets me get near real time feeds of changes to the mower that updates the switches and sensors.

Describe alternatives you've considered:

Additional context:

Mower:

  • Year: N/A
  • Model: Gardena Smart Sileno 500

Acceptance Criteria

  • Will need to be able to create multiple service instances (one for each location) and notify the platform of changes in each independently.
  • The existing Automower stream client should be refactored to extract much of the logic into a base class.
  • The existing event stream service abstract class should be utilized to provide basic functionality.
  • The client can provide the access token to open a stream connection to Husqvarna.
  • The client has message, error, open, and close callbacks in place (similar to the Automower client) to notify changes in client state.

Associated with #245