Updated Scripting Language (markdown)

gemu 2019-10-10 14:03:17 +02:00
parent eb5760b99d
commit b21103f281
1 changed files with 6 additions and 1 deletions

@ -23,6 +23,7 @@ USE_SCRIPT_JSON_EXPORT | enable `>J` section
USE_SCRIPT_WEB_DISPLAY | enable `>W` section
USE_SCRIPT_SUB_COMMAND | enables invoking named script subroutines via the Console or MQTT
USE_SCRIPT_HUE | enable `>H` section
USE_SCRIPT_STATUS | enable `>U` section
SUPPORT_MQTT_EVENT | enables support for subscribe unsubscribe
USE_TOUCH_BUTTONS | enable virtual touch button support with touch displays
USE_24C256 | enables use of 24C256 I<sup>2</sup>C EEPROM to expand script buffer (defaults to 4k)
@ -110,6 +111,9 @@ Remark: hue values have a range from 0-65535. Divide by 182 to assign HSBcolors
example:
lamp1,E,on=pwr1,hue=hue1,sat=sat1,bri=bri1,ct=ct1
>`>U`
status JSON Messages arrive here
>`>J`
The lines in this section are published via MQTT in a JSON payload on [TelePeriod](Commands#teleperiod). Requires compiling with `#define USE_SCRIPT_JSON_EXPORT `.
@ -220,7 +224,8 @@ Remarks:
If you define a variable with the same name as a special variable that special variable is discarded
**Tasmota commands**
`=> <command>` Execute \<command>
`=> <command>` Execute \<command> recursion disabled
`+> <command>` Execute \<command> recursion enabled
`-> <command>` Execute \<command> - do not send MQTT or log messages (i.e., silent execute - useful to reduce traffic)
**Variable Substitution**