| Line 1: |
Line 1: |
| − | ===Example of description in XML=== | + | <languages/> |
| | + | <translate> |
| | + | ===Example of description in XML=== <!--T:1--> |
| | | | |
| | + | <!--T:2--> |
| | <syntaxhighlight lang="xml" line> | | <syntaxhighlight lang="xml" line> |
| | <item addr="100:10" name="chandelier" type="rgb-lamp" auto-period="600" system="yes"> | | <item addr="100:10" name="chandelier" type="rgb-lamp" auto-period="600" system="yes"> |
| Line 8: |
Line 11: |
| | </syntaxhighlight> | | </syntaxhighlight> |
| | | | |
| | + | <!--T:3--> |
| | <syntaxhighlight lang="xml" line> | | <syntaxhighlight lang="xml" line> |
| | <item addr="100:10" name="chandelier" type="rgb-lamp" auto-period="600" color-temp="307:4" color-white="307:5"> | | <item addr="100:10" name="chandelier" type="rgb-lamp" auto-period="600" color-temp="307:4" color-white="307:5"> |
| Line 16: |
Line 20: |
| | color-temp="dimmer ID:SUBID" – for adding and control dimmer brigtness bar with temperature. | | color-temp="dimmer ID:SUBID" – for adding and control dimmer brigtness bar with temperature. |
| | | | |
| | + | <!--T:4--> |
| | color-white="dimmer ID:SUBID" – for adding and control dimmer brigtness bar "white". | | color-white="dimmer ID:SUBID" – for adding and control dimmer brigtness bar "white". |
| | | | |
| − | ===Device status (4 bytes)=== | + | ===Device status (4 bytes)=== <!--T:5--> |
| | | | |
| | + | <!--T:6--> |
| | {|class="wikitable" | | {|class="wikitable" |
| | |- | | |- |
| Line 26: |
Line 32: |
| | |0||Device status.<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||Device status.<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||V – brightness [https://en.wikipedia.org/wiki/HSL_and_HSV VSH Color System]<br>0..250 | + | |1||V – brightness ([https://en.wikipedia.org/wiki/HSL_and_HSV VSH Color System])<br>0..250 |
| | |- | | |- |
| − | |2||S – contrast [https://en.wikipedia.org/wiki/HSL_and_HSV VSH Color System]<br>0..250 | + | |2||S – contrast ([https://en.wikipedia.org/wiki/HSL_and_HSV VSH Color System])<br>0..250 |
| | |- | | |- |
| − | |3||Н – colour hue [https://en.wikipedia.org/wiki/HSL_and_HSV VSH Color System]<br>0..250 | + | |3||Н – colour hue ([https://en.wikipedia.org/wiki/HSL_and_HSV VSH Color System])<br>0..250 |
| | |} | | |} |
| | | | |
| − | ===Possible variants of setting the status=== | + | ===Possible variants of setting the status=== <!--T:7--> |
| | | | |
| − | ====single-byte==== | + | ====single-byte==== <!--T:8--> |
| | | | |
| | + | <!--T:9--> |
| | {|class="wikitable" | | {|class="wikitable" |
| | |- | | |- |
| Line 44: |
Line 51: |
| | |} | | |} |
| | | | |
| − | ====4-bytes==== | + | ====4-bytes==== <!--T:10--> |
| | | | |
| | {|class="wikitable" | | {|class="wikitable" |
| Line 58: |
Line 65: |
| | |3||colour hue | | |3||colour hue |
| | |} | | |} |
| − | ====5-bytes==== | + | ====5-bytes==== <!--T:11--> |
| | {|class="wikitable" | | {|class="wikitable" |
| | |- | | |- |
| | !byte!!description | | !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||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 | | |1||Brightness<br>0 – off<br>1..250 – brightness<br>0xFE – do not change the status of this byte |
| Line 73: |
Line 80: |
| | |4||Time required for changing the status, x0.1 seconds (runtime=100, apply as 10 seconds) | | |4||Time required for changing the status, x0.1 seconds (runtime=100, apply as 10 seconds) |
| | |} | | |} |
| | + | </translate> |