Difference between revisions of "Lamp element/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="lamp" auto-period="600" system="yes" image="air-fan">...")
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="lamp" auto-period="600" system="yes" image="air-fan">
 
<item addr="100:10" name=" chandelier" type="lamp" auto-period="600" system="yes" image="air-fan">
     <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>
<item addr="100:11" name=" chandelier" type="lamp" sub-type="air-fan" auto-period="600" system="yes" image="air-fan"/> //to create air-fan item
+
<item addr="100:11" name=" chandelier" type="lamp" sub-type="air-fan" auto-period="600" system="yes" image="air-fan"/> //создать элемент вентиляции
 
</syntaxhighlight>
 
</syntaxhighlight>
  

Revision as of 15:03, 24 January 2022

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

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

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

Additional parameters

Name type and variety description
sub-type enum damper
air-fan
socket
lock
dehumidifier
closing-switch -automatic device
valve-3 – 3 way valve
pump

Device status (1 byte)

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, current etc.)

Possible variants of setting the status

Byte description
0 0 – off
1 – on
0xFF – Change the status for the opposite one