Notifications
Clear all

Using arguments in custom commands?  

  RSS
fz
 fz
(@fz-2)
New Member
Using arguments in custom commands?

Hi, I'm playing around with the custom commands trying to create a command to change the fan speed.

I've created a command with an argument, but I'm unable to figure out how to use the argument in the template.

I imagined it would be something like {SPEED} or {{SPEED}}, but that gives an error when saving (security reasons?)

A note somewhere on the page on how to use them would be helpful.

 

Best Answer by Tojik:

Hi, this has worked for me. But It was not straightforward. The note on how to do this would seriously help.

Posted : 04/10/2022 4:30 pm
Tojik
(@tojik)
Member Moderator
RE: Using arguments in custom commands?

Hi, this has worked for me. But It was not straightforward. The note on how to do this would seriously help.

Posted : 04/10/2022 5:08 pm
fz liked
fz
 fz
(@fz-2)
New Member
Topic starter answered:
RE: Using arguments in custom commands?

Thanks, that works great! It seems the error was because I used Speed when creating the argument, but used SPEED in the template. The argument being shown in uppercase instead of the original case confused me, and the error message wasn't very helpful either 😀 

Posted : 04/10/2022 5:52 pm
Tojik
(@tojik)
Member Moderator
RE: Using arguments in custom commands?

Yes, we're currently focusing on other stuff. The custom commands mostly work and are meant more as a debugging tool for us, that's why thei'r "hidden". A tad more info wouldn't hurt tho. Thanks for the feedback.

Posted : 04/10/2022 5:58 pm
Share: