-
tried https://tasmota.github.io/docs/Berry-Cookbook/#adding-commands-to-tasmota via copy&paste from the web page but it reports a syntax error. Am I missing something? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
You are adding a Tasmota command to be called from the Tasmota console, not from Berry console |
Beta Was this translation helpful? Give feedback.
-
@barbudor @sfromis learning a bit more I found a way to simplify the tutorial, thereby avoiding potential confusion. How about changing the tutorial to only use Berry console? |
Beta Was this translation helpful? Give feedback.
While a couple of the Berry cookbook examples does use
tasmota.cmd
for the purpose of executing existing Tasmota commands as part of automating something, that is a very different usage from defining your own command, and then suggesting how it technically can (even if not the intended way) be executed from inside of Berry. The purpose of defining something as a command, instead of a function or a Berrymodule
, would generally be to be able to invoke it from outside of Berry. Like from the console, MQTT, etc.