Difference between revisions of "Dimmer-lamp/ru"

From Larnitech wiki page
Jump to navigation Jump to search
(Created page with "Лампа с диммированием")
 
(Created page with "===Пример описания в XML=== <syntaxhighlight lang="xml" line> <item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" system="yes"> <linke...")
Line 1: Line 1:
 
<languages/>
 
<languages/>
===Example of description in XML===
+
===Пример описания в XML===
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" system="yes">
 
<item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" system="yes">
     <linked addr="101:1"/>  // is bound to the button with the address 101:1
+
     <linked addr="101:1"/>  // привязан к кнопке с адресом 101:1
     <automation ……/>  // set the automation for this element
+
     <automation ……/>  // установить автоматизацию для этого элемента
 
</item>
 
</item>
 
</syntaxhighlight>
 
</syntaxhighlight>
 
<syntaxhighlight lang="xml" line>
 
<syntaxhighlight lang="xml" line>
 
<item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" color-temp="307:4" color-white="307:5">
 
<item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" color-temp="307:4" color-white="307:5">
     <linked addr="101:1"/>  // is bound to the button with the address 101:1
+
     <linked addr="101:1"/>  // привязан к кнопке с адресом 101:1
     <automation ……/>  // set the automation for this element
+
     <automation ……/>  // установить автоматизацию для этого элемента
 
</item>
 
</item>
 
</syntaxhighlight>
 
</syntaxhighlight>

Revision as of 12:41, 25 January 2022

Other languages:
English • ‎русский

Пример описания в XML

1<item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" system="yes">
2    <linked addr="101:1"/>  // привязан к кнопке с адресом 101:1
3    <automation ……/>  // установить автоматизацию для этого элемента
4</item>
1<item addr="100:10" name="chandelier" type="dimer-lamp" auto-period="600" color-temp="307:4" color-white="307:5">
2    <linked addr="101:1"/>  // привязан к кнопке с адресом 101:1
3    <automation ……/>  // установить автоматизацию для этого элемента
4</item>

color-temp="dimmer ID:SUBID" – for adding and control dimmer brigtness bar with temperature.

color-white="dimmer ID:SUBID" – for adding and control dimmer brigtness bar "white".

Device status (2 bytes)

Byte number description
0 Device status.

Bit 0:
0 – off
1 – on
Bit 3:
0 – automation is disactivated
1 – automation is activated
Bit 7:
0 – no alarm
1 – alarm (relating to temperature)
1 Brightness
0..250

Possible variants of setting the status

single-byte

byte description
0 Status (on/off)
0 – off
1 – on
0xFF – Change the status for the opposite one

3-bytes

byte description
0 status (on/off)
0 – off
1 – on
0xFE – do not change the status of this byte
0xFF – Change the status for the opposite one
1 Brightness
0 – off
1..250 – brightness
0xFE – do not change the status of this byte
2 Time required for changing the status, seconds