1
0
mirror of https://github.com/no2chem/wideq.git synced 2025-05-17 07:40:09 -07:00

80 Commits

Author SHA1 Message Date
Adrian Sampson
a16e146b64 Switch to Flit for distribution 2019-06-16 15:09:32 -04:00
Adrian Sampson
74a175fae0 Parameterize language and country (fix #13) 2019-06-16 14:42:49 -04:00
Adrian Sampson
8615be9722 Marginally more thread-safe monitoring
This way, calling `poll` before `monitor_start` finishes won't crash.
2019-02-24 16:39:09 -05:00
Adrian Sampson
0b14dd5832 Expose an exception for "not connected" errors 2019-01-24 17:20:18 -05:00
Adrian Sampson
caeb63d598 Wrap a long line 2018-10-08 12:45:40 -04:00
nordron
2ea2459f50 Merge branch 'master' of https://github.com/NorDroN/wideq 2018-09-11 23:56:14 +03:00
nordron
4ca839c2a9 Refactoring 2018-09-11 23:53:32 +03:00
krocans
93151962e9 decode_monitor_binary bytestring index fix (by NorDroN) 2018-09-04 00:24:14 +03:00
Adrian Sampson
6e27913521 Don't crash when there are no devices
Apparently, these objects are just missing the 'item' key when there are
no devices (instead of mapping to an empty list, as you'd expect).

Bug reported here:
https://community.home-assistant.io/t/in-development-lg-smartthinq-component/40157/55?u=samps
2018-08-14 20:23:04 -04: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
Adrian Sampson
708da5c9ef Improve docstrings 2018-06-17 10:41:14 -04: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
c6d597f446 Allow missing monitor return code 2018-04-28 09:59:42 -04: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
426043397d Move base64/JSON assumption to config method
The "Control" settings seem to use other encodings?
2018-04-21 14:56:41 -04:00
Adrian Sampson
597895b263 Expose AC config values I know of so far 2018-04-21 14:42:11 -04:00
Adrian Sampson
0b3730f5f2 Make a new Client base class
For generic device-related utilities. Eventually, non-AC devices should
inherit from this too.
2018-04-21 14:34:35 -04:00
Adrian Sampson
d3cee73759 Friendlier device-level config method 2018-04-21 14:31:49 -04:00
Adrian Sampson
5da0c4a281 Option lookup interface 2018-04-21 14:28:43 -04:00
Adrian Sampson
172c755f95 Transparently restart monitoring tasks that fail 2018-04-21 11:03:35 -04:00
Adrian Sampson
d7cadd09c5 New exception for failed monitor polls 2018-04-21 11:00:33 -04:00
Adrian Sampson
72b3b4c525 Update a comment 2018-04-21 10:50:28 -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
8588c109f8 Use self-reported C2F map instead of inverting F2C
This API is truly the worst.
2018-04-02 11:26:48 -04:00
Adrian Sampson
2dc014f17f Wrap devices in lists (fix #1, fix #2) 2018-03-11 09:59:17 -04:00
Adrian Sampson
f0cb5b8165 Factor out control setting 2018-02-18 11:31:02 -05:00
Adrian Sampson
d79f242c0f Set on/off 2018-02-18 11:28:57 -05:00
Adrian Sampson
c7173124cd On/off status 2018-02-18 11:26:47 -05:00
Adrian Sampson
754b453903 Getting & setting mode values 2018-02-18 11:20:43 -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
5e258c65a6 Wrap AC polling results 2018-01-28 12:02:58 -05:00
Adrian Sampson
01ec35d94b Higher-level AC device wrapper 2018-01-28 11:41:04 -05:00
Adrian Sampson
c1a51c6f5a Expose explicit monitor start/stop methods 2018-01-21 18:55:15 -05:00
Adrian Sampson
8432b87d75 Send strings to JSON 2018-01-21 13:30:44 -05:00
Adrian Sampson
aae1dea181 Serialize model info data 2018-01-21 12:51:10 -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
445ea623fc Cache a ModelInfo wrapper 2018-01-21 12:25:18 -05:00
Adrian Sampson
947ea8a647 DeviceInfo abstraction 2018-01-21 12:12:10 -05:00
Adrian Sampson
94a1ec8531 Construct a client from a token 2018-01-20 22:02:22 -05:00
Adrian Sampson
8179148342 Inline the load/dump bits
The ol' expression problem strikes again.
2018-01-20 21:51:49 -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
0dde92b241 Docstring 2018-01-20 17:16:36 -05:00