David
4122d7d188
add power readings to ac_config
2020-01-22 00:28:53 -05:00
Frederik Gladhorn
cc3d60f882
Error out when language or country are invalid
...
Many people seem to stumble over this (I did, specifying en_US instead
of en-US for example). I don't know of any valid inputs other than two
letter combinations, but three letters could be valid.
2020-01-13 13:28:10 +01:00
Frederik Gladhorn
6461596219
Use f-strings for command line options
...
These are more readable than the .format strings.
2020-01-13 13:05:26 +01:00
Adrian Sampson
26fd47471b
Merge pull request #67 from gladhorn/exec_bit
...
Make example.py executable
2020-01-11 11:54:32 -05:00
Adrian Sampson
c5fb01e7cc
Print error message to stderr ( #66 )
2020-01-11 11:43:48 -05:00
Adrian Sampson
a1cd9795c6
Wrap error message to 79 characters
2020-01-11 11:43:13 -05:00
Frederik Gladhorn
a727828064
Make example.py executable
...
This makes it easier to run the file on unix systems.
2020-01-09 22:00:42 +01:00
Frederik Gladhorn
ff8d0ba9e0
Print error on invalid command
2020-01-09 21:58:56 +01:00
Adrian Sampson
07b6a1ca21
Handle NotConnectedError in example
2019-11-28 09:34:51 -05:00
Adrian Sampson
b176cd26ee
Nice error when device can't be found
...
Inspired by #17 .
2019-06-20 13:17:02 -04:00
Adrian Sampson
8929123c8d
Add country and language flags to example ( #13 )
2019-06-16 14:51:20 -04:00
Adrian Sampson
0317c81bdf
Use argparse for example
2019-06-16 14:30:11 -04:00
nordron
4ad4946719
Revert changes
2018-09-12 00:17:56 +03:00
krocans
5a5e8bf47d
DeviceInfo decodes monitor status data
2018-08-12 10:33:27 +03:00
krocans
910e55d018
Decode binary monitoring status data
2018-08-12 10:16:23 +03:00
root
0ee80dd122
Fix monitor data printed twice on missing 'value'
2018-08-11 23:32:08 +03:00
Adrian Sampson
4cde35597a
Style fixes
2018-06-17 10:37:41 -04:00
bindismal
add21143d2
Accepted proposed changes
2018-06-17 23:50:33 +10:00
bindismal
3c59047d10
Added support for zone control for ducted HVAC that support zone control
...
Added support for reading / setting fan speed
2018-06-16 21:34:33 +10:00
Adrian Sampson
0a48345409
Get speaker volume setting
...
Still can't figure out how to *set* the light state.
2018-04-21 15:14:10 -04:00
Adrian Sampson
6d3e7b3fa6
Add method for reading light state
2018-04-21 14:59:53 -04:00
Adrian Sampson
597895b263
Expose AC config values I know of so far
2018-04-21 14:42:11 -04:00
Adrian Sampson
fe77d66e96
Show how to check device type
2018-04-03 10:45:58 -04:00
Adrian Sampson
c696489de2
Fetch device type
2018-04-03 10:40:38 -04:00
Adrian Sampson
86c63a92b5
Not all devices return JSON status data
2018-04-03 10:17:04 -04:00
Adrian Sampson
dd9ff96b39
Example to turn on/off a device
2018-02-18 11:40:31 -05:00
Adrian Sampson
7f7988effa
Refactor example commands
2018-02-18 11:38:24 -05:00
Adrian Sampson
c7173124cd
On/off status
2018-02-18 11:26:47 -05:00
Adrian Sampson
f8107ebc25
An enum for OpMode
2018-02-18 11:13:50 -05:00
Adrian Sampson
315dbd73e1
Example of higher-level monitoring
2018-02-18 11:00:27 -05:00
Adrian Sampson
9bf03ddb46
Used namedtuples for value info
2018-01-21 12:47:17 -05:00
Adrian Sampson
844d1c1bdb
Look up value descriptions
2018-01-21 12:39:36 -05:00
Adrian Sampson
947ea8a647
DeviceInfo abstraction
2018-01-21 12:12:10 -05:00
Adrian Sampson
01366af56a
Inline unnecessary helpers
2018-01-21 11:39:11 -05:00
Adrian Sampson
ebc9c5b679
Make load into a class method
2018-01-20 21:47:32 -05:00
Adrian Sampson
2ce09e9642
Move Client to main module
2018-01-20 21:43:02 -05:00
Adrian Sampson
f50c8d0221
Simplify retry loop
2018-01-20 21:39:37 -05:00
Adrian Sampson
b2bc017d99
Cache device list
2018-01-20 21:35:09 -05:00
Adrian Sampson
948d51b1b6
Try wrapping stuff up in a mutable client class
2018-01-20 21:33:44 -05:00
Adrian Sampson
b3315c60c8
Refresh session in example
2018-01-20 17:02:43 -05:00
Adrian Sampson
35a78281d6
Auth.from_url helper
2018-01-20 13:56:16 -05:00
Adrian Sampson
8fc2749a9b
Obtain refresh token from OAuth
2018-01-20 13:53:19 -05:00
Adrian Sampson
29eb1804c5
Run monitor loop indefinitely
2018-01-08 14:47:27 -08:00
Adrian Sampson
336b7ec956
Fix format of control call
2018-01-08 14:46:04 -08:00
Adrian Sampson
c9afb9035c
Start controlling settings
2018-01-08 14:39:50 -08:00
Adrian Sampson
244f4756c5
Pull out temperatures
2018-01-08 14:26:14 -08:00
Adrian Sampson
b8b50e5309
Little "subcommands" in the example
2018-01-08 14:21:09 -08:00
Adrian Sampson
d2735be4ad
Unpack poll results
2018-01-08 14:16:43 -08:00
Adrian Sampson
d0a4e3e823
Try out monitoring
2018-01-08 14:03:46 -08:00
Adrian Sampson
3f6b4f1bf8
Sketch unused monitoring stuff
2018-01-08 13:51:44 -08:00