tuyapower

Python module to read status and energy monitoring data from Tuya based WiFi smart devices. This includes state (on/off), current (mA), voltage (V), and power (wattage).

MIT License

Downloads
853
Stars
140
Committers
6
tuyapower - v0.2.0 - New Tuya Device Support Latest Release

Published by jasonacox over 1 year ago

  • PyPI 0.2.0
  • Add support for Tuya protocols 3.2, 3.4 and 3.5 devices

Full Changelog: https://github.com/jasonacox/tuyapower/compare/v0.1.0...v0.2.0

tuyapower - v0.1.0

Published by jasonacox almost 3 years ago

v0.1.0

Full Changelog: https://github.com/jasonacox/tuyapower/compare/v0.0.25...v0.1.0

tuyapower - v0.0.25

Published by jasonacox about 4 years ago

  • Bug fix in deviceRaw() not honoring timeout settings
  • Set sw response variable to False as default
tuyapower - v0.0.24

Published by jasonacox about 4 years ago

Release Updates:

  • deviceInfo() - Added better error handling for devices without expect outlet/power data in their dps response.
  • deviceRaw() - Added new function to return raw device data response.
  • test.py & plugpower.py - Updated to add device raw data to output.
tuyapower - v0.0.23

Published by jasonacox about 4 years ago

Added support to use tinytuya, replacing pytuya:

  • Adds support for Device IDs that are 22 characters long (pytuya only supports 20)
  • Removed misleading productKey (product SKU identity, not local Key) from scan() output
  • Attempts to import tinytuya but falls back to pytuya if unavailable
tuyapower - Scan Max Retry Option

Published by jasonacox about 4 years ago

  • Added option to allow users to specify maximum retries for scan functions:
# specify 50 retries via command line
python3 -m tuyapower 50
# invoke verbose interactive scan
tuyapower.scan(50)

# return payload of devices
devices = tuyapower.deviceScan(false, 50)