Open main menu
Home
How to do
Din rail devices
Box devices
Sensors
Multiroom
Applicatin
XML
Additional info
Log in
Settings
Larnitech wiki page
Search
Changes
← Older edit
Newer edit →
Virtual
(view source)
Revision as of 09:04, 23 August 2021
113 bytes added
,
09:04, 23 August 2021
→Example of virtual device "lamp"
Line 38:
Line 38:
}
}
</syntaxhighlight>
</syntaxhighlight>
−
Example of virtual device "dimmable lamp"
:
+
+
===
Example of virtual device "dimmable lamp"
===
+
<syntaxhighlight lang="xml" line>
<item addr="142:99" length="2" name="Lamp" sub-type="dimer-lamp" type="virtual"/>
<item addr="142:99" length="2" name="Lamp" sub-type="dimer-lamp" type="virtual"/>
+
</syntaxhighlight>
+
The script processing of stroke
The script processing of stroke
+
<syntaxhighlight lang="cpp" line>
u8 state[2] = {0,0};
u8 state[2] = {0,0};
V-ID/142:99
V-ID/142:99
Line 60:
Line 65:
setStatus(142:99,state);
setStatus(142:99,state);
}
}
+
</syntaxhighlight>
Erich
Bureaucrats
,
Interface administrators
,
Administrators
, translator
1,970
edits