node-red-contrib-gardena-smart-mower
Nodes for controlling and monitoring Gardena smart system enabled mowers.
Tested on a 2023 smart SILENO city, 600 m².
- Create an account on the Husqvarna developer website
- Create a new application
- Application name: Your choice
- Description: Can be left empty
- Redirect URLs:
http://localhost
(Doesn't matter because we won't use it)
- Connect correct API's to your newly created application (Big orange button: 'Connect new API')
- Authentication API
- GARDENA smart system API
- Use Application key and secret in the configuration of this node as
Client ID
and Client Secret
2. Install the nodes in your palette
- Go to 'Manage palette' in the menu of node-red
- Go to the 'Install' tab
- Search for
node-red-contrib-gardena-smart-mower
- Install the nodes
3. Configure the mower & config node
- Drag a 'Gardena Mower' node on your flow
- Create a new 'Gardena configuration'
- Enter the previously acquired Client ID & Client Secret
- Click the search button to scan for 'locations'
- Select the appropriate location
- Save the 'Gardena configuration'
- Click the search button to scan for 'mowers'
- Select the appropriate mower
- Save your node
- Go!
Receiving updates from the mower
When a status update is available for the Gardena smart system mower, a new message is sent:
- msg.mower: id & name of the mower
- msg.payload: latest values of all attrbutes
- state
- stateTs
- activity
- activityTs
- lastErrorCode
- lastErrorCodeTs
- operatingHours
- batteryLevel
- batteryLevelTs
- batteryState,
- batteryStateTs
- rfLinkLevel
- rfLinkLevelTs
- rfLinkState
- msg.updatesList: list of attributes which have been updated
You can command the mower by sending a message with:
- msg.action:
- resumeSchedule
- startMowing
- parkUntilFurtherNotice
- parkUntilNextTask
- msg.duration: Optional duration in minutes (only for 'startMowing' action)
|
[ |
|
{ |
|
"id": "62b8dd48a1143cf4", |
|
"type": "tab", |
|
"label": "Gardena mower demo", |
|
"disabled": false, |
|
"info": "", |
|
"env": [] |
|
}, |
|
{ |
|
"id": "cd2f0a49cb12d7a5", |
|
"type": "debug", |
|
"z": "62b8dd48a1143cf4", |
|
"name": "debug", |
|
"active": true, |
|
"tosidebar": true, |
|
"console": false, |
|
"tostatus": false, |
|
"complete": "true", |
|
"targetType": "full", |
|
"statusVal": "", |
|
"statusType": "auto", |
|
"x": 590, |
|
"y": 140, |
|
"wires": [] |
|
}, |
|
{ |
|
"id": "b6ac6be34c139237", |
|
"type": "gardena-mower", |
|
"z": "62b8dd48a1143cf4", |
|
"name": "Mower", |
|
"config": "a06983709d66f375", |
|
"mower": "", |
|
"x": 410, |
|
"y": 140, |
|
"wires": [["cd2f0a49cb12d7a5"]], |
|
"inputLabels": ["jj"] |
|
}, |
|
{ |
|
"id": "1a8276363070243b", |
|
"type": "inject", |
|
"z": "62b8dd48a1143cf4", |
|
"name": "startMowing", |
|
"props": [ |
|
{ |
|
"p": "action", |
|
"v": "startMowing", |
|
"vt": "str" |
|
}, |
|
{ |
|
"p": "duration", |
|
"v": "60", |
|
"vt": "num" |
|
} |
|
], |
|
"repeat": "", |
|
"crontab": "", |
|
"once": false, |
|
"onceDelay": 0.1, |
|
"topic": "", |
|
"x": 170, |
|
"y": 60, |
|
"wires": [["b6ac6be34c139237"]] |
|
}, |
|
{ |
|
"id": "f2249810ef268204", |
|
"type": "inject", |
|
"z": "62b8dd48a1143cf4", |
|
"name": "resumeSchedule", |
|
"props": [ |
|
{ |
|
"p": "action", |
|
"v": "resumeSchedule", |
|
"vt": "str" |
|
} |
|
], |
|
"repeat": "", |
|
"crontab": "", |
|
"once": false, |
|
"onceDelay": 0.1, |
|
"topic": "", |
|
"x": 160, |
|
"y": 120, |
|
"wires": [["b6ac6be34c139237"]] |
|
}, |
|
{ |
|
"id": "083f045bce781b57", |
|
"type": "inject", |
|
"z": "62b8dd48a1143cf4", |
|
"name": "parkUntilNextTask", |
|
"props": [ |
|
{ |
|
"p": "action", |
|
"v": "parkUntilNextTask", |
|
"vt": "str" |
|
} |
|
], |
|
"repeat": "", |
|
"crontab": "", |
|
"once": false, |
|
"onceDelay": 0.1, |
|
"topic": "", |
|
"x": 150, |
|
"y": 180, |
|
"wires": [["b6ac6be34c139237"]] |
|
}, |
|
{ |
|
"id": "849da370313a605e", |
|
"type": "inject", |
|
"z": "62b8dd48a1143cf4", |
|
"name": "parkUntilFurtherNotice", |
|
"props": [ |
|
{ |
|
"p": "action", |
|
"v": "parkUntilFurtherNotice", |
|
"vt": "str" |
|
} |
|
], |
|
"repeat": "", |
|
"crontab": "", |
|
"once": false, |
|
"onceDelay": 0.1, |
|
"topic": "", |
|
"x": 140, |
|
"y": 240, |
|
"wires": [["b6ac6be34c139237"]] |
|
}, |
|
{ |
|
"id": "a06983709d66f375", |
|
"type": "gardena-mower-config", |
|
"name": "Gardena smart system", |
|
"location": "", |
|
"credentials": {} |
|
} |
|
] |