Pages for logged out editors узнать больше
For example, if the value of the MQTT topic is equal to 1 , then print the value ВКЛ , otherwise — ОТКЛ :
1
ВКЛ
ОТКЛ
(val == 1) ? 'ON' : 'OFF'