Skip to content

Latest commit

 

History

History
104 lines (78 loc) · 3.43 KB

CHANGELOG.md

File metadata and controls

104 lines (78 loc) · 3.43 KB

0.22.0 / 2017-01-05

Added ➕

  • Device#macNormalized
  • Basic automated testing of CLI

0.21.0 / 2017-01-02

Changes ⚡

  • Changed TCP response handling to timeout when device responds but does not close connection

Fixed 🐛

  • CLI: Fixed reboot, reset, setLocation commands that expect integer arguments

0.20.1 / 2017-10-24

Fixed 🐛

  • Reject instead of incorrectly throwing error for network errors

0.20.0 / 2017-10-19

Changes ⚡

  • new name, hs100-api is now tplink-smarthome-api

0.19.0 / 2017-10-18

Breaking Changes 💥

  • Device/Bulb/Plug
    • Many methods were moved to mirror the TPLink API.
      • Example: Plug#getScheduleRules() is now Plug.schedule#getRules()
      • Example: Bulb#getCloudInfo() is now Bulb.cloud#getInfo()
      • See API documenation for details.

Added ➕

  • Device/Bulb/Plug
    • Dozens of new methods, see documentation for details.
    • options added as last argument to functions that send commands
      • options.timeout and options.transport can be set to customize the timeout and transport (tcp, udp) used for a single command
    • defaultSendOptions added to constructor
  • Client
    • send/sendCommand
      • Receiving large TCP responses split across multiple segments are now supported
      • Support UDP in addition to TCP
        • UDP can be unreliable, also large replies may not be sent back from the device
  • ResponseError now exported so consumer can check errors with instanceof

0.18.0 / 2017-10-11

Added ➕

  • Plug
    • #addTimerRule
    • #editTimerRule
    • #deleteAllTimerRules
  • Client#startDiscovery now emits discovery-invalid when receiving an invalid response (perhaps from a non-tplink device)

Fixed 🐛

  • encrypt and encyptWithHeader now work properly with non-ascii characters

0.17.0 / 2017-10-10

Fixed 🐛

0.16.0 / 2017-10-09

Added ➕

  • Device#name re-added as alias for Device#alias for backwards compatibility
  • Client.startDiscovery has additional parameter macAddresses
    • if specified only devices matching MAC will be found
  • Bulb
    • #supportsBrightness
    • #supportsColor
    • #supportsColorTemperature
    • #getColorTemperatureRange
    • #18#togglePowerState (thanks @adamsandle!)
  • Plug

0.15.0 / 2017-10-07

Breaking Changes 💥

  • Client#getGeneralDevice is now Client#getCommonDevice
  • Device#name is now Device#alias
  • Device#type is now Device#deviceType
  • Device#getConsumption() is now Device#getEmeterRealtime()
  • supportsConsumption is now supportsEmeter
  • consumption-update is now emeter-realtime-update
  • Existing Device/Bulb/Plug events have changed to no longer emit with this as argument

Added ➕

  • Support for older Node 4.8
  • Bulb#getInfo() added to mirror Plug#getInfo()
  • New Bulb events: lightstate-on, lightstate-off, lightstate-change, lightstate-update

Changes ⚡

  • Updated examples