* set APP_ID and APP_SECRET from main class
* add APP_ID and APP_SECRET as class constructor parameters
* updated test case
* updated test case
* added new test case
* docs updated
* Release v3.1.0 - "setWSDevicePowerState" (#96)
* new mixing to control devices using websocket
* switch status on single channel devices
* working on deviceControl mixin
* better error handling
* working on fix for shared devices
* refactor/cleanup
* added helper function
* added docs for new method
* return device new status
* added test cases
* properly close websocket connection and clean used properties
* added test cases
* error detection enhancements
* added test cases
* error detection enhancements
* added new test file to jest setup
* method renamed
* fix for closing websocket connection
* new getWSDevicePowerState method
* added test cases
* re-arrange tests
* added new test cases
* extract helpers methods
* added test case
* close WebSocket connection on auth error
* updated docs
* updated dependencies
* fix for "forbidden" error
* updated dependencies
* Added arpTableSolver (#18)
* Added arpTableSolver
* fix package import
* linting class
* changed arp library
* refactor arp class
* using arpping fork
* refactor arpTableSolver class
* Added Zero Conf functionality (LAN mode) (#46)
* added crypto-js
* zeroconf helper functions
* zeroconf update payload
* new method to save devices cache file
* class renamed
* refactor Zeroconf class
* return cached device if exists
* moved method to get local ip address
* fix mac addresses without leading zeroes
* refactor Zeroconf class
* using new zeroconf functionality
* zeroconf working with single and multichannel devices
* save device mixin enhancement
* working on zeroconf test cases
* catch errors on filesystem methods
* zeroconf: added extra test cases
* better error handling
* zeroconf: 100% code coverage
* removed deprecated login method
* updates on credentials file
* version bump
* Docs for v2.0 (#52)
* added v1 docs
* added zeroconf docs
* updated readme
* docs updated
* removed zeroconf article warning
* updated vscode config
Co-authored-by: Luis Llamas <luisllamas@hotmail.com>
* new method to check for device firmware updates
* moved mixin
* generate firmware update payload
* new method to check for devices firmware updates
* removed unused function
* moved firmware tests to own file
* added firmware test cases
* return device id on response
* updated credentials list
* version bump
* refactor temperature/humidity methods
* updating temperature/humidity tests
* version bump
* updated jest config
* fix: when logged user is not device owner, can’t change power state
* fix: when logged user is not device owner, can’t get power usage
* reverted extra code changes
* updated tests
* specific error when requested channel is bigger than total
* fix for multi-channel devices
* updated test expectations
* fixes with uiid api changes
* fix wrong error message
* added new test cases
* return expected error on wrong channel number
* added more devices
* version bump
* refactor websocket / power usage
* cooldown between api requests during testing
* refactor power state methods
* remove unused code
* cooldown between api requests during testing
* version bump
* helper method to login into ewelink if no auth credentials found
* return websocket reponse as JSON
* created function to get raw consumption data
* created function to parse raw consumption data and return daily usage
* renamed property
* created function to get current month power usage
* created function to get raw power usage
* added new test cases
* catch websocket connection errors
* power usage enhancements
* added new test case
* removed unused code
* updated credentials file
* version bump
* updated dependencies
* tests reorganized
* added multi-channel device
* added get and set power state
* added some fixes
* add “this” to call class methods
* create params object before build payload
* typo fixed on “switches” param
* added new test cases
* improved error message
* added more test cases
* added authentication error
* added fix channel number too high
* added region change if wrong
* linting + small fixes
* linting + renamed method
* linting