Library to connect to Garena Smart
Project description
wt.pygardena
Python library to communicate with Gardana Smart It gives an object oriented interface towards the Gardena Smart API (API usage is not officially supported by Gardena). This library is written to be used to support gardena devices in home assistant, but there is no coupling with home assistant. Inspired by: https://github.com/rcastberg/gardena_smart
usage
hub = GardenaSmartAccount("username", "password")
for location in hub.get_locations():
for mower in location.get_mowers():
print (mower.get_info())
for sensor in location.get_sensors():
print (sensor.get_info())
for watering_computer in location.get_watering_computers():
print (watering_computer.get_info())
devices
All devices are represented by object, all object do have a method to expose all details as a named list.
object.get_info()
All devices have these details: category, battery_level, radio_quality, radio_connection_status All details are available via getters so:
#[detail] needs to be replaced by the detail name.
object.get_[detail].()
mower
Actions:
mower.start() #starts mowing for a full day (can be specified)
mower.park_until_timer() #stop mowing and wait for next schedule
mower.park() #stop mower, don't continue schedule
Available info: manual_operation, status, error, battery_charging, last_error_code, source_for_next_start, timestamp_next_start, cutting_time, charging_cycles, collisions, running_time
sensor
Actions: none Available info: ambient_temperature, ambient_frost_warning, soil_temperature, soil_humidity, light
watering computer
Actions:
watering_computer.start() #starts watering for a 30 (can be specified)
watering_computer.stop() #stop watering and wait for next schedule
Available info: ambient_temperature, ambient_frost_warning, valve_open, manual_override, button_manual_override_time, last_manual_override_time, scheduled_watering_next_start, scheduled_watering_end, adaptive_scheduling_last_decision
tested with:
- Mower: smart SILENO Set (Article No. : 19060-60)
- Watering computer: GARDENA smart Water Control (Article No. : 19031-20)
- Sensor: GARDENA smart Sensor (Article No. : 19030-20)
not planned yet
Since I do not own the devices, but feel free to sponsor me ;-)
- Smart pressure pump
- smart power adapter
- smart battery
- smart irrigation control (is on my wishlist)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.