You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Berry.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -542,7 +542,7 @@ See examples in the [Berry-Cookbook](Berry-Cookbook#adding-commands-to-tasmota)
542
542
543
543
Tasmota Function|Parameters and details
544
544
:---|:---
545
-
tasmota.get\_power<aclass="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<aclass="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.
546
546
tasmota.set\_power<aclass="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]```
547
547
tasmota.get\_light<aclass="cmnd"id="tasmota_get_light"></a>|_deprecated_ use `light.get`
548
548
tasmota.set\_light<aclass="cmnd"id="tasmota_set_light"></a>|_deprecated_ use `light.set`
0 commit comments