diff --git a/README.md b/README.md index 049370e..2a8a756 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,9 @@ Unofficial node-RED node for connecting to TP-Link Tapo devices. Currently limit This node module provides the ability to get the device infomation of tapo smart plugs. - Get the device information from `"output: msg.payload.tapoDeviceInfo"`. + Models that can monitor energy acquire energy information. + + Get the device information from `"output: msg.payload.tapoDeviceInfo, msg.payload?.tapoEnergyUsage(P110 only)"`. - tplink_tapo_connect_api(`deprecated`) @@ -201,35 +203,38 @@ false: smart plug power off { result: true, tapoDeviceInfo: { - device_id: "*************" - fw_ver: "1.2.10 Build 20200609 Rel. 33394" - hw_ver: "1.0.0" - type: "SMART.TAPOPLUG" - model: "P105" - mac: "XX-XX-XX-XX-XX-XX" - hw_id: "*************" - fw_id: "*************" - oem_id: "*************" - specs: "JP" - device_on: false - on_time: 0 - overheated: false - nickname: "3d printer power supply" - location: "XXXXXXXXXXXXXXXX" - avatar: "plug" - time_usage_today: 0 - time_usage_past7: 0 - time_usage_past30: 0 - longitude: 0 - latitude: 0 - has_set_location_info: true - ip: "192.168.0.XXX" - ssid: "SSID" - signal_level: 0 - rssi: 0 - region: "Asia/Tokyo" - time_diff: 0 - lang: "ja_JP" + device_id: "*************" + fw_ver: "1.2.10 Build 20200609 Rel. 33394" + hw_ver: "1.0.0" + type: "SMART.TAPOPLUG" + model: "P105" + mac: "XX-XX-XX-XX-XX-XX" + hw_id: "*************" + fw_id: "*************" + oem_id: "*************" + specs: "JP" + device_on: false + on_time: 0 + overheated: false + nickname: "3d printer power supply" + location: "XXXXXXXXXXXXXXXX" + avatar: "plug" + time_usage_today: 0 + time_usage_past7: 0 + time_usage_past30: 0 + longitude: 0 + latitude: 0 + has_set_location_info: true + ip: "192.168.0.XXX" + ssid: "SSID" + signal_level: 0 + rssi: 0 + region: "Asia/Tokyo" + time_diff: 0 + lang: "ja_JP" + }, + tapoEnergyUsage: { + ???? } } ``` diff --git a/package.json b/package.json index 143239e..59c34d4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "node-red-contrib-tplink-tapo-connect-api", - "version": "0.3.1", + "version": "0.3.2", "description": "Unofficial node-RED node for connecting to TP-Link Tapo devices. Currently limited to the P100 & P105 smart plugs and L510E smart bulbs.", "author": "sanlike", "license": "Apache", @@ -9,6 +9,7 @@ "tplink", "p100", "p105", + "p110", "L510E" ], "main": "none",