This adapter connects IoBroker with your Husqvarna Automower with Connect-Modul Mowing times, battery level and various other data are read out from the mower. The adapter can control the mower (start, stop, park). Tested with 450X and 315X.
For communication with Husqvarna web server, the adapter use scripts from [rannmann] (https://github.com/rannmann/node-husqvarna-automower).
Over the action state "husq-automower.x.mower.action" you can do following actions: = 1 - start mower = 2 - stop mower = 3 - park mower = 9 - query Status (if schdeuler stopped, mower.scheduleTime == 0) = 77 - Rainbutton, toggle mower.stoppedDueRain: true - park mower it's raining, false - after configered standby time, the mower automatic start button work parallel with optional sensor for rain detection = 91 - stop status scheduler (mower.scheduleTime == 0) = 92 - start status scheduler
At least Node 8.X.X must be installed, Node 0.10 and 0.12 are no longer supported by this adapter.
- to connect to the mower, type in email and password from your Husqvarna account in the config.
- max. distance from base, if exceeded (value > 0), adapter write message to mower.sendMessage
- (Greyhound) fix some setState with ack=true
- (Greyhound) fix mower error handling on unknown codes
- (Greyhound) some improvements in adapter handling
- (Greyhound) mower.lastStartTime moved to statistics: mower.statistics.mowingStartTime, old value is adopted and lastStartTime is deleted, if necessary adjust in view (s)
- (Greyhound) Subscription to rain sensor (subscribeForeignStates) does not seem to work everywhere, so the status is also read out directly in updateStatus and checked for changes
- (Greyhound) Rain value comparison changed, enter the value directly in the configuration, with number: with 0 or 1 ==, otherwise> =, the type of the value is read from the DP of the sensor
- (Greyhound) Configuration value for waiting time after rain is interpreted as follows:> = 0 - started mower after the specified time, <0 or no value - no automatic start
- (Greyhound) Counter for the number of WebRequests, successful, errors per day and cumulative month (WebRequestCountXXXXX), after 4 errors a warning is written in the log and the query interval is possibly set to Inactive, after more than 10 errors the adapter status is set to errors.
- (Greyhound) The text for the current and last error code is saved in currentErrorMsg and lastErrorMsg (in language generated from API)
- (Greyhound) sendMessage, the last field of the recipient has been omitted, is now controlled for me depending on the priority
- (Greyhound) Fixed bug when recognizing the start time of mowing (StartMowingTime)
- (Greyhound) various changes to make the code more robust
- (Greyhound) improved error handling with updateStatus, GPS data
- (Greyhound) Detection when starting whether the battery is charged and resetting the ChargingStartTime
- (Greyhound) load rain sensor state on start
- (Greyhound) fix status detecion (no CHARGING state with beginning 12.06.2018 ?)
- (Greyhound) new datapoint mower.rawResponse_mowers
- (Greyhound) fix variablen naming for adapter.config (no '_')
- (Greyhound) changed rain actions, currently only park mower if rain detected, no automatic start if dry
- (Greyhound) complete configuration fields in io-package.json
- (Greyhound) add message, if mower base disconnected or mower lifted
- (Greyhound) new limit for batterycharge for mower.sendMessage
- (Greyhound) correct small errors in translation configuration
- (Greyhound) fix problem with configuration off new instance
- (Greyhound) add testing with appveyor
- (Greyhound) mower nickname in mower.sendMessage
- (Greyhound) translations complete
- (Greyhound) change header files in index.html for admin v2
- (Greyhound) remove dir widgets and www
- (Greyhound) clean io-package.json, datapoints created on start from adaptercode
- (Greyhound) add to Travis CI
- (Greyhound) new configuration site
- (Greyhound) correction in accumulate statistic values
- (Greyhound) additional statistic values
- (Greyhound) bugfixes in rain handler
- (Greyhound) correct automower datetime with timezone offset
- (Greyhound) other small corrections
- (Greyhound) fix a problem in adapter.on('objectChange', ...
- (Greyhound) div. renamings and bugfixes
- (Greyhound) initial release
- (Greyhound) miscellaneous js-script versions
The MIT License (MIT)
Copyright (c) 2021 truegreyhound [email protected]
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.