Difference between revisions of "Door-sensor"
Jump to navigation
Jump to search
(Created page with "===Example of description in XML=== <syntaxhighlight lang="xml" line> <item type="door-sensor" addr="181:3" name="Input"/> </syntaxhighlight> ===Additional parameters=== {|cl...") |
(Marked this version for translation) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
− | ===Example of description in XML=== | + | <languages/> |
+ | <translate> | ||
+ | ===Example of description in XML=== <!--T:1--> | ||
<syntaxhighlight lang="xml" line> | <syntaxhighlight lang="xml" line> | ||
<item type="door-sensor" addr="181:3" name="Input"/> | <item type="door-sensor" addr="181:3" name="Input"/> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
− | ===Additional parameters=== | + | ===Additional parameters=== <!--T:2--> |
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 16: | Line 18: | ||
|} | |} | ||
− | ===Device status (1 bytes)=== | + | ===Device status (1 bytes)=== <!--T:3--> |
{|class="wikitable" | {|class="wikitable" | ||
|- | |- | ||
Line 23: | Line 25: | ||
|0||0 – closed<br>1 – opened | |0||0 – closed<br>1 – opened | ||
|} | |} | ||
+ | </translate> |
Latest revision as of 15:27, 25 January 2022
Example of description in XML
1<item type="door-sensor" addr="181:3" name="Input"/>
Additional parameters
Name | type and variety | description | default value |
---|---|---|---|
text | string;string | alternative messages setting for displaying the values in the interface | open;close |
sub-type | enum | fire smoke co2 lock alarm contact motion gas leak glass |
- |
msg | String | For other sub-types in app, a message that is defined in this attribute will be received. For example: msg="ALARM". The message "ALARM" will be received in the app | For sub-type: fire, smoke and CO2, a default message is sent. |
Device status (1 bytes)
Byte number | description |
---|---|
0 | 0 – closed 1 – opened |