Changes
Jump to navigation
Jump to search
1,729 bytes added
, 08:37, 19 August 2021
===Example of description in XML===
<syntaxhighlight lang="xml" line>
<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
<automation ……/> // set the automation for this element
</item>
</syntaxhighlight>
<syntaxhighlight lang="xml" line>
<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
<automation ……/> // set the automation for this element
</item>
</syntaxhighlight>
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)===
{|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)
|-
|1||Brightness<br>0..250
|}
===Possible variants of setting the status===
====1. single-byte====
{|class="wikitable"
!byte!!description
|-
|0||Status (on/off)<br>0 – off<br>1 – on<br>0xFF – Change the status for the opposite one
|}
===2. 3-bytes===
{|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
|-
|1||Brightness<br>0 – off<br>1..250 – brightness<br>0xFE – do not change the status of this byte
|-
|2||Time required for changing the status, seconds
|}