ВС
Разобрался с панелью Alarm, но остался один непонятный момент. По ссылке ниже, есть вот это:
code_template string (exclusive)
If defined, returns a code to enable or disable the alarm in the frontend; an empty string disables checking the code. Inside the template, the variables from_state and to_state identify the current and desired state. Only one of code and code_template can be specified.
Просто code мне понятно. А вот code_template это что? как и где можно его использовать? Почему разработчики дали выбор между ними?
https://www.home-assistant.io/integrations/manual#configuration-variables