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> |
| | | |
− | color-temp="dimmer ID:SUBID" – for adding and control dimmer brigtness bar with temperature. | + | color-temp="dimmer ID:SUBID" – для добавления и управления полосой яркости диммера с температурой. |
| | | |
− | color-white="dimmer ID:SUBID" – for adding and control dimmer brigtness bar "white". | + | color-white="dimmer ID:SUBID" – для добавления и управления "белой" полосой яркости диммера. |
| | | |
− | ===Device status (2 bytes)=== | + | ===Состояние устройства (2 байта)=== |
| | | |
− | {|class="wikitable | + | {|class="wikitable" |
| |- | | |- |
− | !Byte number!!description | + | !Номер байта||Описание |
| |- | | |- |
− | |0||Device status.<br><br>Bit 0:<br>0 – off<br>1 – on<br>Bit 3:<br>0 – automation is disactivated<br>1 – automation is activated<br>Bit 7:<br>0 – no alarm<br>1 – alarm (relating to temperature) | + | |0||Статус устройства.<br><br>Байт 0:<br>0 – выкл.<br>1 – вкл.<br>Байт 3:<br>0 – автоматизация выключена<br>1 – автоматизация включена<br>Байт 7:<br>0 – нет сигнала тревоги<br>1 – сигнал тревоги (по отношению к температуре) |
| |- | | |- |
− | |1||Brightness<br>0..250 | + | |1||Яркость<br>0..250 |
| |} | | |} |
| | | |
− | ===Possible variants of setting the status=== | + | ===Возможные варианты установки статуса=== |
− | ====single-byte==== | + | ====однобайтовый==== |
| | | |
| {|class="wikitable" | | {|class="wikitable" |
− | !byte!!description
| |
| |- | | |- |
− | |0||Status (on/off)<br>0 – off<br>1 – on<br>0xFF – Change the status for the opposite one | + | !Байт!!Описание |
| + | |- |
| + | |0||Статус (вкл./выкл.)<br>0 – выкл.<br>1 – вкл.<br>0xFF – Изменить статус на противоположный |
| |} | | |} |
| | | |
− | ====3-bytes==== | + | ====трёхбайтный==== |
| | | |
| {|class="wikitable" | | {|class="wikitable" |
− | !byte!!description | + | !байт!!описание |
| |- | | |- |
− | |0||status (on/off)<br>0 – off<br>1 – on<br>0xFE – do not change the status of this byte<br>0xFF – Change the status for the opposite one | + | |0||статус (вкл./выкл.)<br>0 – выкл.<br>1 – вкл.<br>0xFE – не менять статус этого байта<br>0xFF – Изменить статус на противоположный |
| |- | | |- |
− | |1||Brightness<br>0 – off<br>1..250 – brightness<br>0xFE – do not change the status of this byte | + | |1||Яркость<br>0 – выкл.<br>1..250 – яркость<br>0xFE – не менять состояние этого байта |
| |- | | |- |
− | |2||Time required for changing the status, seconds | + | |2||Время, необходимое для изменения статуса, сек |
| |} | | |} |