hs100-api
TP-Link Smart Home API
WARNING:This project has been renamed to tplink-smarthome-api. Install using tplink-smarthome-api instead
TPLink HS100/HS105/HS110 WiFi Smart Plug API
TP-Link Smart Home API
Device
/Bulb
/Plug
Plug#getScheduleRules()
is now Plug.schedule#getRules()
Bulb#getCloudInfo()
is now Bulb.cloud#getInfo()
Device
/Bulb
/Plug
options
added as last argument to functions that send commandsoptions.timeout
and options.transport
can be set to customize the timeout and transport (tcp, udp) used for a single commanddefaultSendOptions
added to constructorClient
send
/sendCommand
ResponseError
now exported so consumer can check errors with instanceof
Plug
#addTimerRule
#editTimerRule
#deleteAllTimerRules
Client#startDiscovery
now emits discovery-invalid
when receiving an invalid response (perhaps from a non-tplink device)encrypt
and encyptWithHeader
now work properly with non-ascii charactersDevice#name
re-added as alias for Device#alias
for backwards compatibilityClient.startDiscovery
has additional parameter macAddresses
Bulb
#supportsBrightness
#supportsColor
#supportsColorTemperature
#getColorTemperatureRange
#togglePowerState
(thanks @adamsandle!)Plug
#togglePowerState
(thanks @adamsandle!)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
Device
/Bulb
/Plug
events have changed to no longer emit with this
as argumentBulb#getInfo()
added to mirror Plug#getInfo()
Bulb
events: lightstate-on
, lightstate-off
, lightstate-change
, lightstate-update