Skip to content

Commit 23f31b6

Browse files
authored
Update Berry.md
tasmota.get_power supports index for one channel, in addition to providing a list of bool for all channels.
1 parent 22c6244 commit 23f31b6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Berry.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ See examples in the [Berry-Cookbook](Berry-Cookbook#adding-commands-to-tasmota)
542542

543543
Tasmota Function|Parameters and details
544544
:---|:---
545-
tasmota.get\_power<a class="cmnd" id="tasmota_get_power"></a>|`() -> list[bool]`<br>Returns the state On/Off of each Relay and Light as a list of bool.
545+
tasmota.get\_power<a class="cmnd" id="tasmota_get_power"></a>|`([index:int]) -> bool or list[bool]`<br>Returns Relay or Light On/Off state for one channel, or as a list of bool for all.
546546
tasmota.set\_power<a class="cmnd" id="tasmota_set_power"></a>|`(index:int, onoff:bool) -> bool`<br>Sets the on/off state of a Relay/Light. Returns the previous status of the Relay/Light of `nil` if index is invalid.<br>Example:<br>```> tasmota.get_power()```<br>```[true]```
547547
tasmota.get\_light<a class="cmnd" id="tasmota_get_light"></a>|_deprecated_ use `light.get`
548548
tasmota.set\_light<a class="cmnd" id="tasmota_set_light"></a>|_deprecated_ use `light.set`

0 commit comments

Comments
 (0)