| Line 19: |
Line 19: |
| | [[File:BTCAN_VIEW.png|300px]] | | [[File:BTCAN_VIEW.png|300px]] |
| | | | |
| − | ==Mash connection== <!--T:4--> | + | ==Broadcast connection== <!--T:4--> |
| − | [[File:BTCAN_connection_Mash.png|300px]] | + | [[File:BTCAN_connection_Mash.png|500px]] |
| | | | |
| | ==Point-to-point connection== <!--T:4--> | | ==Point-to-point connection== <!--T:4--> |
| − | [[File:BTCAN_connection_P2P.png|300px]] | + | [[File:BTCAN_connection_P2P.png|500px]] |
| | | | |
| | ==Module parameters== <!--T:7--> | | ==Module parameters== <!--T:7--> |
| Line 46: |
Line 46: |
| | !Name!!Type, range!!SUBID!!Default!!Description | | !Name!!Type, range!!SUBID!!Default!!Description |
| | |- | | |- |
| − | |in||char[16]||98||'BBBBBB'||Each char is responsible for the type of a particular channel | + | |slave||char[10]||98||-||Sn of slave BT-CAN module in hex format for P2P connection. Setting for master BT-CAN/DE-MG.Plus module only |
| − | *'B'-Button, button of bell a type;
| + | Example: |
| − | *'C'-Inverted button, inverse button of a bell type (for normally-closed);
| + | <syntaxhighlight lang="xml" line>hw="slave=0xe8245161"</syntaxhighlight> |
| − | *'D'-Backlit button, illuminated button;
| |
| − | *'E'-Inverted backlit button, inverse illuminated button;
| |
| − | *'S'-Switch, fixed switch;
| |
| − | *'K'-Contact, reed contact;
| |
| − | *'H'-Inverted contact, inverse reed contact;
| |
| − | *'G'-GND, is used as earthing;
| |
| − | *'-'-none, nothing is connected.
| |
| − | And you can also connect one temperature sensor:
| |
| − | <syntaxhighlight lang="xml" line>hw="in='T-----'"</syntaxhighlight> | |
| − | <syntaxhighlight lang="xml" line>Example: in='DEHSSG'</syntaxhighlight>
| |
| | |- | | |- |
| − | |offset||float(+/- 0…39)||SubID 30 temperature sensor||'0'||sensor values offset; | + | |pin||integer 1-999999||98||-||Pin for P2P connection, must be same for master and slave |
| − | For example, offset is -3.8 :
| + | Example: |
| − | <syntaxhighlight lang="xml" line>hw="offset='-3.8'"</syntaxhighlight> | + | <syntaxhighlight lang="xml" line>hw="pin=1111"</syntaxhighlight> |
| | + | |- |
| | + | |mi-temp1||char[12]||98||-||Sn of Xiaomi temperature/humidity sensor for broadcast connection. |
| | + | Example: |
| | + | <syntaxhighlight lang="xml" line>hw="mi-temp1='A4C218FEBA4C'"</syntaxhighlight> |
| | |} | | |} |
| | | | |
| Line 71: |
Line 65: |
| | <syntaxhighlight lang="xml" line> | | <syntaxhighlight lang="xml" line> |
| | <item addr="866:98" cfgid="150" hw="slave=0xe8145261 pin=1111" logic-ver="19" name="Temperature" sn="306598234" system="yes" type="temperature-sensor"/> | | <item addr="866:98" cfgid="150" hw="slave=0xe8145261 pin=1111" logic-ver="19" name="Temperature" sn="306598234" system="yes" type="temperature-sensor"/> |
| | + | <item addr="810:98" cfgid="150" hw="mi-temp1='A4C328FEBA3C'" logic-ver="19" name="Temperature" sn="881628906" system="yes" type="temperature-sensor"/> |
| | </syntaxhighlight> | | </syntaxhighlight> |
| | </translate> | | </translate> |