Changes

111 bytes added ,  12:48, 26 January 2022
Marked this version for translation
Line 1: Line 1:  
<languages/>
 
<languages/>
 
<translate>
 
<translate>
===Example of description in XML===
+
===Example of description in XML=== <!--T:1-->
    +
<!--T:2-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item addr="333:132" name="sensor" type="virtual" sub-type="sensor" dim="%" length="2"/>
 
<item addr="333:132" name="sensor" type="virtual" sub-type="sensor" dim="%" length="2"/>
Line 8: Line 9:  
</syntaxhighlight>
 
</syntaxhighlight>
   −
===Parameters===
+
===Parameters=== <!--T:3-->
    +
<!--T:4-->
 
{|class="wikitable"
 
{|class="wikitable"
 
|-
 
|-
Line 22: Line 24:  
<nowiki>*</nowiki> – required fields
 
<nowiki>*</nowiki> – required fields
   −
===Example of virtual device "lamp"===
+
===Example of virtual device "lamp"=== <!--T:5-->
    +
<!--T:6-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item addr="142:99" length="1" name="Lamp" sub-type="lamp" type="virtual"/>
 
<item addr="142:99" length="1" name="Lamp" sub-type="lamp" type="virtual"/>
 
</syntaxhighlight>
 
</syntaxhighlight>
    +
<!--T:7-->
 
The processing of pressing in the script
 
The processing of pressing in the script
    +
<!--T:8-->
 
<syntaxhighlight lang="cpp" line>
 
<syntaxhighlight lang="cpp" line>
 
u8 state = 0;
 
u8 state = 0;
Line 41: Line 46:  
</syntaxhighlight>
 
</syntaxhighlight>
   −
===Example of virtual device "dimmable lamp"===
+
===Example of virtual device "dimmable lamp"=== <!--T:9-->
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item addr="142:99" length="2" name="Lamp" sub-type="dimer-lamp" type="virtual"/>
 
<item addr="142:99" length="2" name="Lamp" sub-type="dimer-lamp" type="virtual"/>
 
</syntaxhighlight>
 
</syntaxhighlight>
    +
<!--T:10-->
 
The script  processing of stroke
 
The script  processing of stroke
 
<syntaxhighlight lang="cpp" line>
 
<syntaxhighlight lang="cpp" line>
editor, translation-admin, translator
4,754

edits