Skip to content

Commit

Permalink
Further sensor API support (#4)
Browse files Browse the repository at this point in the history
* Sample further sensor API support

* Fix typo (battery, not batterylevel)

* Remove unused import

* Implement more sensors

* Remove conversions and units of measure

* Add switch button constants

* Implement switch button constants

* Fetch properties from raw instance variable

Also, only use 'get' if a property may not exist in the API result.

* Fix buttonevents for ZLL switch

* Fix/add CLIP sensor types

Also, reorganize ZGP Switch into a single class (as there is only one ZGP Switch, it doesn't currently make sense to have a Generic ZGP class and then a ZGP Switch class as we can't really be sure what the base ZGP properties would be).

* Add sensor types to example.py

Provides examples of the properties exposed for each sensor type.

* Add missing property decorator
  • Loading branch information
marthoc authored and balloob committed Jun 15, 2018
1 parent 957d48d commit d0343fd
Show file tree
Hide file tree
Showing 3 changed files with 509 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,5 @@ pip-selfcheck.json
pyvenv.cfg
dist
aiohue.egg-info
.DS_Store
.idea
Loading

0 comments on commit d0343fd

Please sign in to comment.