Giter Site home page Giter Site logo

homebridge-automower's Introduction

Homebridge-automower

verified-by-homebridge

npm npm npm

CodeFactor Build Status Known Vulnerabilities

code style: prettier

Plugin for controlling your automower from Husqvarna through HomeBridge .

Each Automower is shown through 3 services :

  • One switch that will handle Start / PARK (until next period) function
  • One fan that will handle Start / Pause function and spin when your mower is cutting (and only cutting, not while getting back to its charging station)
  • One Motion sensor that will be triggered when your mower needs attention while cutting

The battery percentage / charging status is shown in the detail pane of each service.

npm install -g homebridge-automower

Homebridge configuration

Config as below:

"platforms": [
  {
    "platform": "Automower",
	  "email": "[email protected]",
    "password": "toto"
  }
]

Fields:

  • platform must be "HomebridgeAutomower" (required).
  • email email used for your automower account (required).
  • password password of your automower account (required).
  • refreshTimer Optional - enable refresh of autoMower state every X seconds, for automation purpose if you need to activate something else based on its state change (defaults : disable, accepted range : 30-600s).
  • startStopSwitch switch to handle start / stop until next period (optional - default true).
  • startStopUntilFurtherNoticeSwitch stateless switch to handle stop until further notice (optional - default false).
  • mowersList list of mowers to expose (optional - default all).
  • cleanCache Set it to true in case you want to remove the cached accessory (only those from this plugin). You have to restart homebridge after applying the option. Remove it after restart, otherwise it will be recreated at each startup.

Changelog

See CHANGELOG.

Inspiration

Many thanks to :

  • dinmammas for plugin inspiration
  • chrisz for automower api samples
  • every tester / contributor that test, and give feedback in any way !

Donating

Support this project and others by nicoduj via PayPal.

Support via PayPal

License

As of Dec 01 2018, Nicolas Dujardin has released this repository and its contents to the public domain.

It has been released under the UNLICENSE.

homebridge-automower's People

Contributors

greenkeeper[bot] avatar nicoduj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

homebridge-automower's Issues

Select which mowers to use?

A manual selection would be nice, as there may be mowers belonging to different homes and should be used by different HB installations.

Automower status from Siri

Asking Siri: How is the status of Automower?
Possible answers:

  • the Automower is mowing
  • the Automower is parking.
  • the Automower is charging its battery
  • the Automower needs help

Asking siri: When will Automower start mowing?

  • Automower is mowing
  • The Automower will start today at 16:00
  • The Automower will start at 09.07.20, 16:00 Uhr
  • The Automower won‘t start mowing

This function will increase the use of the Automower plugin extremely.

Startup Loop after installed automower plugin

Hi!
After installing plugin it get following error and HB does not start completely - it is in a starting loop.

57:37 PM] [HomeMatic CCU3] [Core] will cache ccu response to /homebridge/ccu.json
[4/25/2020, 9:57:37 PM] [HomebridgeAutomower] INFO - Creating Fan Service Automower 315X
[4/25/2020, 9:57:37 PM] Error: Cannot add a Service with the same UUID '00000040-0000-1000-8000-0026BB765291' and subtype 'FanServiceAutomower 315X' as another Service in this Accessory.
at PlatformAccessory.addService (/usr/local/lib/node_modules/homebridge/lib/platformAccessory.js:55:15)
at myAutoMowerPlatform.loadMowers (/homebridge/node_modules/homebridge-automower/index.js:169:28)
at AutoMowerAPI. (/homebridge/node_modules/homebridge-automower/index.js:97:14)
at AutoMowerAPI.emit (events.js:311:20)
at Request._callback (/homebridge/node_modules/homebridge-automower/autoMowerAPI.js:129:20)
at Request.self.callback (/homebridge/node_modules/homebridge-automower/node_modules/request/request.js:185:22)
at Request.emit (events.js:311:20)
at Request. (/homebridge/node_modules/homebridge-automower/node_modules/request/request.js:1154:10)
at Request.emit (events.js:311:20)
at IncomingMessage. (/homebridge/node_modules/homebridge-automower/node_modules/request/request.js:1076:12)
[4/25/2020, 9:57:37 PM] Got SIGTERM, shutting down Homebridge...
[4/25/2020, 9:57:37 PM] [HomebridgeAutomower] INFO - shutdown

After removing plugin, HB starts correctly!

Thanx for help
CameronVIE

No blocking in case of timeout

Today, I suddenly received 'No response' from 30-40 objects in my iPhone Homekit. I looked into the Homebridge log, but the only unusual error message was from automower. It was a timeout from the Huqvarna site. Please ensure that such a problem does not affect Homebridge and other plug-ins.

Another minor thing is that every time an update of automower is installed using the Homebridge-ui-x I received a warning message that there are reference to some deprecated stuff.

Thanks.

Nothing appears in Home app

Hi, I installed the plugin, the Mower is visible and operational in Husqvarna app but there are no buttons in Home app nor in Homebridge accessories. Did the downgrade to 1.4.3 which was suggested during similar issue here but nothing. Do not know what I am doing wrong. My config:
{
"email": "[email protected]",
"password": "password",
"refreshTimer": 100,
"startStopSwitch": true,
"startStopUntilFurtherNoticeSwitch": true,
"mowersList": [
"Niiduk"
],
"platform": "Automower"
}

Logs

[21/04/2021, 13:40:53] [HB Supervisor] Started Homebridge v1.3.4 with PID: 11443
Initializing HAP-NodeJS v0.9.4...
[21/04/2021, 13:40:55] Loaded config.json with 2 accessories and 8 platforms.
[21/04/2021, 13:40:55] Loaded 9 cached accessories from cachedAccessories.
[21/04/2021, 13:40:55] ---
[21/04/2021, 13:40:58] Loaded plugin: [email protected]
[21/04/2021, 13:40:58] Registering platform 'homebridge-automower.Automower'
[21/04/2021, 13:40:58] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering platform 'homebridge-broadlink-rm.BroadlinkRM'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering platform 'homebridge-camera-ffmpeg.Camera-ffmpeg'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering platform 'homebridge-config-ui-x.config'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering accessory 'homebridge-dummy-garage.DummyGarage'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering platform 'homebridge-ewelink.eWeLink'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[class PlatformAccessory extends EventEmitter] {
injectedAccessory: undefined
}
[21/04/2021, 13:40:59] Registering accessory 'homebridge-gree-heatercooler.GreeHeaterCooler'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering platform 'homebridge-webos-tv.webostv'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:40:59] Loaded plugin: [email protected]
[21/04/2021, 13:40:59] Registering platform 'homebridge-yeelight-wifi.yeelight'
[21/04/2021, 13:40:59] ---
[21/04/2021, 13:41:00] Loaded plugin: @milo526/[email protected]
[21/04/2021, 13:41:00] Registering platform '@milo526/homebridge-tuya-web.TuyaWebPlatform'
[21/04/2021, 13:41:00] ---
[21/04/2021, 13:41:00] Loading 8 platforms...
[21/04/2021, 13:41:00] [Yeelight] Initializing yeelight platform...
[21/04/2021, 13:41:00] [Config] Initializing config platform...
[21/04/2021, 13:41:00] [Config] Running in Service Mode
[21/04/2021, 13:41:00] [Broadlink RM] Initializing BroadlinkRM platform...
[21/04/2021, 13:41:00] [Broadlink RM] [INFO] Automatically discovering Broadlink RM devices.
[21/04/2021, 13:41:00] [Broadlink RM] [INFO] Running Homebridge Broadlink RM Plugin version 3.6.22
[21/04/2021, 13:41:00] [Broadlink RM] Magamistuba Ruloo Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] Elutuba Otsa Aken Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] Elutuba Suur Aken Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] Elutuba Terrassi Uks Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] Jääpurikad I Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] Jõulutuled 2 Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] ETV Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] Kanal 12 Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] FOX Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] ID Discovery Accessory Ready
[21/04/2021, 13:41:00] [Broadlink RM] TV6 Accessory Ready
[21/04/2021, 13:41:00] [webostv] Initializing webostv platform...
[21/04/2021, 13:41:00] [TuyaWebPlatform] Initializing TuyaWebPlatform platform...
[21/04/2021, 13:41:00] [Camera FFmpeg] Initializing Camera-ffmpeg platform...
[21/04/2021, 13:41:00] [eWeLink] Initializing eWeLink platform...
[21/04/2021, 13:41:00] [eWeLink] Config entry [bridgeSensors] has an invalid entry which will be ignored.
[21/04/2021, 13:41:00] [Automower] Initializing Automower platform...
[21/04/2021, 13:41:00] Loading 2 accessories...
[21/04/2021, 13:41:00] [Kliimaseade] Initializing GreeHeaterCooler accessory...
[21/04/2021, 13:41:00] [Kliimaseade] Start discover device 192.168.1.221
[GreeAC]: init deviceFactory on host 192.168.1.221 [server port 8221]
[21/04/2021, 13:41:00] [Dummy Garage] Initializing DummyGarage accessory...
[21/04/2021, 13:41:00] [Yeelight] Loaded accessory ceiling1-cd88a8.
[21/04/2021, 13:41:00] [TuyaWebPlatform] Loading accessory from cache: Trepi All
[21/04/2021, 13:41:00] [TuyaWebPlatform] Loading accessory from cache: Riiuli Lambid
[21/04/2021, 13:41:00] [Yeelight] Searching for known devices...
[21/04/2021, 13:41:00] [Yeelight] Sending search request...
[21/04/2021, 13:41:00] [webostv] Init - initializing devices
[21/04/2021, 13:41:00] [webostv] [Elutuba TV] Init - got TV configuration, initializing device with name: Elutuba TV
[21/04/2021, 13:41:00] [webostv] [Magamistuba TV] Init - got TV configuration, initializing device with name: Magamistuba TV
[21/04/2021, 13:41:00] [Camera FFmpeg] [EZVIZ Pall] Configuring unbridged accessory...
[21/04/2021, 13:41:00] [Camera FFmpeg] [Pergola Kaamera] Configuring unbridged accessory...
[21/04/2021, 13:41:00] [eWeLink] [v6.2.1] initialised. Syncing with eWeLink.
[21/04/2021, 13:41:00] [Automower] DidFinishLaunching

Buttons not showing

After I installed your package in homebridge I didnt get any new button to control my automower

Reason why startStopUntilFurtherNoticeSwitch is stateless?

I was wondering why startStopUntilFurtherNoticeSwitch is only stateless it is possible to read the value PARKED_IN_CS right? For me it would be useful to have the state in homekit too. I could make a PR if you like, just wondering if there is a reason why this is done. Thanks a lot for your efforts!

concurrent API login possible

with an error in authenticate :

ERROR - authenticate - No 201 return 400/{"statusCode":400,"body":{"errors":[{"code":"simultaneous.logins","status":400,"title":"Bad request"

Lifted error not indicated

One of the mowers stopped with "Lifted" error. No indication on the Ready/Help motion indicator and no alert/notification.

How does it work?

Hi,
Thanks for the plugin. Not sure I fully understand how it works. I have automower 305 and it uses Bluetooth to control the device. How to make the device controllable through network? Thank you in advance!

Refreh timer issue

I think I have a problem with the refresh timer. Due to the constant logins, it looks like Husqvarna always logs me out in the original app or IFTT. If this is related, only the manufacturer can adjust this, of course.
2.
In the Homebridge UI Config for the plugin, I can't set the Auto Refresh to deactivated. Only a numerical value can be set.

Gardena support

Hi, I was wondering whether it would be possible to add support for Gardena Mowers in your plugin? I know that the Husqvarna and Gardena mowers are closely aligned, and I therefore thought the possibility could be there?

Regards,
Joachim

NOTE ON UPDATING 1.3.0 / 1.3.1 / 1.3.2

YOU WILL NEED TO CLEAN YOUR CACHE
Due to some changes in naming on platform / accessories and service identifiers, if you get errors at startup you will have to unsusre that cached accessories are removed of previous versions.

Using the -R option is a good way to do so, accessible in configUI-X :

Capture d’écran 2020-04-26 à 18 59 40

Automower 415X

Hello
I have one automower 415x , i Try plugin automower for my home bridge , i used my Email and password from my application automower Connect , but i have nothing in my homebridge.

thanks

Plug-in suddenly missing

Hi

I have experienced that sometimes Homebridge simply stops and my iPhone gets no response on all accessories. The error message in the log is saying the homebridge-automower plug-in is not installed. It happened yesterday, and I do not know what triggers this.

When I go into Homebridge Config UI X, I can see that the plug-in is indeed missing. So I simply install the plug-in using Config UI X, and everything works fine again. I do not know why this happens (maybe new release of plug-in?) and therefore I also do not know if this is a problem in automower or Homebridge Config UI X.

However, I never experience this with the other 5 homebridge plug-ins I am using.

Thanks.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on Greenkeeper branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because it uses your CI build statuses to figure out when to notify you about breaking changes.

Since we didn’t receive a CI status on the greenkeeper/initial branch, it’s possible that you don’t have CI set up yet. We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

If you have already set up a CI for this repository, you might need to check how it’s configured. Make sure it is set to run on all new branches. If you don’t want it to run on absolutely every branch, you can whitelist branches starting with greenkeeper/.

Once you have installed and configured CI on this repository correctly, you’ll need to re-trigger Greenkeeper’s initial pull request. To do this, please click the 'fix repo' button on account.greenkeeper.io.

Homebridge crashing

Hi
Thanks for this binding. I am getting some wired problems that Homebridge is crashing after adding your plug-in. I am not 100 % though, because Homebridge is restarting and it has also a now and then problem this evening with a login to a cloud service.
However, it has now happen 2 times in row and both times the problem disappeared when I removed automower plug-in.
Therefore, this question: have you tested your plug-in with the new beta version 0.4.54 which has HAP-nodeJS 0.5.x? - see link
Thanks.

Edit: it seems to be working correct with the latest homebridge beta version. The problem occured if I installed and configured solely through homebridge-config-ui-x. There is no problem if I do a manual install of the plug-in and manual adding to config.json.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.