Skip to content

Some python scripts to make it easier to integrate leakomatic devices to home automation systems.

License

Notifications You must be signed in to change notification settings

nacree/leakomatic-home-automation

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Leakomatic home automation scripts

Some python scripts to make it easier to integrate leakomatic devices to home automation systems.

No guarantees whatsoever that they work in the future since Leakomatic don't provide any official API.

Docs

get-status.py

python3 get-status.py -h
usage: get-status.py [-h] -u USERNAME -p PASSWORD -d DEVICE [-s | --home-status | --no-home-status] [-a | --alarm-status | --no-alarm-status] [-j | --json | --no-json] [--disable-json-beatify | --no-disable-json-beatify]

options:
  -h, --help            show this help message and exit
  -u USERNAME, --username USERNAME
                        Username to cloud.leakomatic.com
  -p PASSWORD, --password PASSWORD
                        Password to cloud.leakomatic.com
  -d DEVICE, --device DEVICE
                        Device id to target. Can be seen in the path of the request that looks like "/devices/[your-ID]/change_mode.json" when changing mode.
  -s, --home-status, --no-home-status
                        Print if in away or home mode
  -a, --alarm-status, --no-alarm-status
                        Print the alarm status. "Alarm" if there currently is an alarm, "No alarm" otherwise
  -j, --json, --no-json
                        Print the raw json
  --disable-json-beatify, --no-disable-json-beatify
                        Don't beatify the json, just print it on one row

change-home-mode.py

python3 change-home-mode.py -h
usage: change-home-mode.py [-h] -m MODE -u USERNAME -p PASSWORD -d DEVICE

options:
  -h, --help            show this help message and exit
  -m MODE, --mode MODE  Put on or of home mode. 0 is home, 1 is away
  -u USERNAME, --username USERNAME
                        Username to cloud.leakomatic.com
  -p PASSWORD, --password PASSWORD
                        Password to cloud.leakomatic.com
  -d DEVICE, --device DEVICE
                        Device id to target. Can be seen in the path of the request that looks like "/devices/[your-ID]/change_mode.json" when changing mode.

Example

Get if the device is in home or away mode

$ get-status.py --username user@example.com --password not-a-real-password --device 9999 -s
Home

About

Some python scripts to make it easier to integrate leakomatic devices to home automation systems.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%