From ca56047ee21dc7dc178de51ff37c5f13dbd00f24 Mon Sep 17 00:00:00 2001 From: Sam <40773225+sam021313@users.noreply.github.com> Date: Fri, 13 Jan 2023 12:13:57 +0100 Subject: [PATCH] add get_power() to README --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 01d99d5..d63a446 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,8 @@ After that all states can be fetched from `light.state`, which is a `PilotParser `turn_on(PilotBuilder)` turns the light on. This takes a `PilotBuilder` object, which can be used to set all the parameters programmatically - rgb, color temperature, brightness, etc. To set the light to rhythm mode, create an empty `PilotBuilder`. +`get_power(self)` returns the current power consumption of a Smart Plug with Metering. + ## Bulb methods (UDP native): - **getSystemConfig** - gets the current system configuration - no parameters required