mirror of
https://github.com/1technophile/OpenMQTTGateway.git
synced 2026-03-23 23:46:58 +01:00
deploy:2440c143c0deploy:2440c143c0deploy:296248f64bdeploy:296248f64bdeploy:a0919bbba4deploy:6a4b38a0cbdeploy:4c633da151deploy:5a07020144deploy:25af43bdebdeploy:771b792484deploy:771b792484deploy:7db2e93c28deploy:5421f0e995deploy:5421f0e995deploy:5421f0e995deploy:5421f0e995deploy:5421f0e995deploy:fb42293631deploy:fb42293631deploy:fb42293631deploy:fb42293631deploy:fb42293631deploy:87b26c867fdeploy:2fcfc0f6d2deploy:2fcfc0f6d2deploy:2fcfc0f6d2deploy:2fcfc0f6d2deploy:54b0eaeebfdeploy:28b97183bedeploy:cf21aed90cdeploy:5a36034a2fdeploy:811bc1f608deploy:811bc1f608deploy:673a895d44deploy:673a895d44deploy:ca9ef664abdeploy:ca9ef664abdeploy: 10d7f7465ddd65a1ddcb1bc32504889d85602c4b deploy: 495e1ce6b42f0293e4cf35c41a6bdb0bd229fa07 deploy:ca9ef664abdeploy:ca9ef664abdeploy:ca9ef664abdeploy:5e01f40829deploy:5e01f40829deploy:5e01f40829deploy:5e01f40829deploy:5e01f40829deploy:7a8e8483fddeploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:3984656712deploy:dfa94588d6deploy:dfa94588d6deploy:dfa94588d6deploy:dfa94588d6deploy:e27e055bf8deploy:cbec4292de
197 lines
53 KiB
HTML
197 lines
53 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en-US">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width,initial-scale=1">
|
|
<title>RF gateways (433mhz/315mhz) | OpenMQTTGateway v1.6.0</title>
|
|
<meta name="generator" content="VuePress 1.9.8">
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
|
|
<link rel="icon" href="/img/Openmqttgateway_logo_mini.png">
|
|
<link rel="manifest" href="/manifest.json">
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
|
|
<link rel="mask-icon" href="/icons/safari-pinned-tab.svg" color="#3eaf7c">
|
|
<script type="module" src="https://unpkg.com/esp-web-tools@3.4.2/dist/web/install-button.js?module"></script>
|
|
<meta name="description" content="One gateway, many technologies: MQTT gateway for ESP8266, ESP32, Sonoff RF Bridge or Arduino with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, beacons detection, mi flora / mi jia / LYWSD02/ Mi Scale compatibility, SMS & LORA.">
|
|
<meta name="theme-color" content="#3eaf7c">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
<meta name="msapplication-TileImage" content="/favicon-144x144.png">
|
|
<meta name="msapplication-TileColor" content="#000000">
|
|
|
|
<link rel="preload" href="/assets/css/0.styles.7f8e66f6.css" as="style"><link rel="preload" href="/assets/js/app.a8101403.js" as="script"><link rel="preload" href="/assets/js/2.a6330fef.js" as="script"><link rel="preload" href="/assets/js/16.8ce0807b.js" as="script"><link rel="prefetch" href="/assets/js/10.3bf3392e.js"><link rel="prefetch" href="/assets/js/100.864bcaae.js"><link rel="prefetch" href="/assets/js/101.7e051fa6.js"><link rel="prefetch" href="/assets/js/102.fc219a72.js"><link rel="prefetch" href="/assets/js/103.7e8f2737.js"><link rel="prefetch" href="/assets/js/104.ba4237ad.js"><link rel="prefetch" href="/assets/js/105.0ec04e8a.js"><link rel="prefetch" href="/assets/js/106.fac6d9bd.js"><link rel="prefetch" href="/assets/js/107.41c49f97.js"><link rel="prefetch" href="/assets/js/108.61155cf4.js"><link rel="prefetch" href="/assets/js/109.bb845863.js"><link rel="prefetch" href="/assets/js/11.e740d1f2.js"><link rel="prefetch" href="/assets/js/110.abc5d7c2.js"><link rel="prefetch" href="/assets/js/111.b8497c11.js"><link rel="prefetch" href="/assets/js/112.c36ad65f.js"><link rel="prefetch" href="/assets/js/113.5f3141de.js"><link rel="prefetch" href="/assets/js/114.f990b138.js"><link rel="prefetch" href="/assets/js/115.8eed4579.js"><link rel="prefetch" href="/assets/js/116.72e2c9f2.js"><link rel="prefetch" href="/assets/js/117.b56c732f.js"><link rel="prefetch" href="/assets/js/118.e358b51e.js"><link rel="prefetch" href="/assets/js/119.f7dc3fd2.js"><link rel="prefetch" href="/assets/js/12.12f354b3.js"><link rel="prefetch" href="/assets/js/13.c98903f6.js"><link rel="prefetch" href="/assets/js/14.9f5422da.js"><link rel="prefetch" href="/assets/js/15.53860aa8.js"><link rel="prefetch" href="/assets/js/17.3f431501.js"><link rel="prefetch" href="/assets/js/18.abbfca7e.js"><link rel="prefetch" href="/assets/js/19.c3f8cea0.js"><link rel="prefetch" href="/assets/js/20.8772f436.js"><link rel="prefetch" href="/assets/js/21.ae3dc22f.js"><link rel="prefetch" href="/assets/js/22.82c5c00b.js"><link rel="prefetch" href="/assets/js/23.a7e36505.js"><link rel="prefetch" href="/assets/js/24.872a1e59.js"><link rel="prefetch" href="/assets/js/25.68cf5ee4.js"><link rel="prefetch" href="/assets/js/26.803f9d00.js"><link rel="prefetch" href="/assets/js/27.252738c2.js"><link rel="prefetch" href="/assets/js/28.165f5a16.js"><link rel="prefetch" href="/assets/js/29.342deda1.js"><link rel="prefetch" href="/assets/js/3.db6ea314.js"><link rel="prefetch" href="/assets/js/30.a4a95841.js"><link rel="prefetch" href="/assets/js/31.2284890e.js"><link rel="prefetch" href="/assets/js/32.e0886312.js"><link rel="prefetch" href="/assets/js/33.4b3e573d.js"><link rel="prefetch" href="/assets/js/34.4b6249db.js"><link rel="prefetch" href="/assets/js/35.35226a53.js"><link rel="prefetch" href="/assets/js/36.1c738f7b.js"><link rel="prefetch" href="/assets/js/37.a13982eb.js"><link rel="prefetch" href="/assets/js/38.7c8a34c4.js"><link rel="prefetch" href="/assets/js/39.35df8fb3.js"><link rel="prefetch" href="/assets/js/4.463f3dd1.js"><link rel="prefetch" href="/assets/js/40.91cb9696.js"><link rel="prefetch" href="/assets/js/41.99b64b2a.js"><link rel="prefetch" href="/assets/js/42.748064dd.js"><link rel="prefetch" href="/assets/js/43.59829f67.js"><link rel="prefetch" href="/assets/js/44.194d6404.js"><link rel="prefetch" href="/assets/js/45.51f9ed38.js"><link rel="prefetch" href="/assets/js/46.4e75d6a6.js"><link rel="prefetch" href="/assets/js/47.5e7f402c.js"><link rel="prefetch" href="/assets/js/48.50581f5d.js"><link rel="prefetch" href="/assets/js/49.38813a3e.js"><link rel="prefetch" href="/assets/js/5.b38ebc20.js"><link rel="prefetch" href="/assets/js/50.fca7116c.js"><link rel="prefetch" href="/assets/js/51.79d51f20.js"><link rel="prefetch" href="/assets/js/52.276b36f2.js"><link rel="prefetch" href="/assets/js/53.48628f9e.js"><link rel="prefetch" href="/assets/js/54.f4629f0b.js"><link rel="prefetch" href="/assets/js/55.8bd72726.js"><link rel="prefetch" href="/assets/js/56.4e9649dd.js"><link rel="prefetch" href="/assets/js/57.f661d227.js"><link rel="prefetch" href="/assets/js/58.3dbefc68.js"><link rel="prefetch" href="/assets/js/59.dca92ef6.js"><link rel="prefetch" href="/assets/js/6.b8e1b615.js"><link rel="prefetch" href="/assets/js/60.7ef87e1c.js"><link rel="prefetch" href="/assets/js/61.f644b0b7.js"><link rel="prefetch" href="/assets/js/62.d17ad4e1.js"><link rel="prefetch" href="/assets/js/63.a3b06db7.js"><link rel="prefetch" href="/assets/js/64.02232795.js"><link rel="prefetch" href="/assets/js/65.8b531e34.js"><link rel="prefetch" href="/assets/js/66.45c70fc5.js"><link rel="prefetch" href="/assets/js/67.09762414.js"><link rel="prefetch" href="/assets/js/68.28adeeb3.js"><link rel="prefetch" href="/assets/js/69.71fd0a70.js"><link rel="prefetch" href="/assets/js/7.40835015.js"><link rel="prefetch" href="/assets/js/70.4afde4dc.js"><link rel="prefetch" href="/assets/js/71.36d570b5.js"><link rel="prefetch" href="/assets/js/72.dae075c9.js"><link rel="prefetch" href="/assets/js/73.1f8230c8.js"><link rel="prefetch" href="/assets/js/74.b03bb874.js"><link rel="prefetch" href="/assets/js/75.33e77ff5.js"><link rel="prefetch" href="/assets/js/76.f6b3546f.js"><link rel="prefetch" href="/assets/js/77.20276536.js"><link rel="prefetch" href="/assets/js/78.4150f2bb.js"><link rel="prefetch" href="/assets/js/79.8e13dcf4.js"><link rel="prefetch" href="/assets/js/8.91111a02.js"><link rel="prefetch" href="/assets/js/80.77656735.js"><link rel="prefetch" href="/assets/js/81.794b7874.js"><link rel="prefetch" href="/assets/js/82.4b353405.js"><link rel="prefetch" href="/assets/js/83.186428bd.js"><link rel="prefetch" href="/assets/js/84.802c2abf.js"><link rel="prefetch" href="/assets/js/85.d2f38121.js"><link rel="prefetch" href="/assets/js/86.1d8f9c18.js"><link rel="prefetch" href="/assets/js/87.d4195c63.js"><link rel="prefetch" href="/assets/js/88.47bb2294.js"><link rel="prefetch" href="/assets/js/89.86910dc4.js"><link rel="prefetch" href="/assets/js/9.7d95995f.js"><link rel="prefetch" href="/assets/js/90.5ef2583f.js"><link rel="prefetch" href="/assets/js/91.8e431909.js"><link rel="prefetch" href="/assets/js/92.ae136b5c.js"><link rel="prefetch" href="/assets/js/93.27cb3dd1.js"><link rel="prefetch" href="/assets/js/94.45aa70b7.js"><link rel="prefetch" href="/assets/js/95.5c8c9473.js"><link rel="prefetch" href="/assets/js/96.dfdba9f5.js"><link rel="prefetch" href="/assets/js/97.c01f200e.js"><link rel="prefetch" href="/assets/js/98.d06ed080.js"><link rel="prefetch" href="/assets/js/99.f20c2428.js">
|
|
<link rel="stylesheet" href="/assets/css/0.styles.7f8e66f6.css">
|
|
</head>
|
|
<body>
|
|
<div id="app" data-server-rendered="true"><div class="theme-container"><header class="navbar"><div class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/" class="home-link router-link-active"><!----> <span class="site-name">OpenMQTTGateway v1.6.0</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="https://shop.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
|
|
Shop🆕
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://1technophile.blogspot.com" target="_blank" rel="noopener noreferrer" class="nav-link external">
|
|
Blog
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="/" class="nav-link">
|
|
Docs
|
|
</a></div><div class="nav-item"><a href="https://community.openmqttgateway.com" target="_self" class="nav-link external">
|
|
Community
|
|
<!----></a></div><div class="nav-item"><a href="https://compatible.openmqttgateway.com/index.php/devices" target="_self" class="nav-link external">
|
|
Devices
|
|
<!----></a></div><div class="nav-item"><a href="/upload/web-install.html" class="nav-link">
|
|
Upload
|
|
</a></div><div class="nav-item"><a href="https://app.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
|
|
Theengs
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/1technophile/OpenMQTTGateway" target="_blank" rel="noopener noreferrer" class="repo-link">
|
|
GitHub
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <aside class="sidebar"><nav class="nav-links"><div class="nav-item"><a href="https://shop.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
|
|
Shop🆕
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="https://1technophile.blogspot.com" target="_blank" rel="noopener noreferrer" class="nav-link external">
|
|
Blog
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div><div class="nav-item"><a href="/" class="nav-link">
|
|
Docs
|
|
</a></div><div class="nav-item"><a href="https://community.openmqttgateway.com" target="_self" class="nav-link external">
|
|
Community
|
|
<!----></a></div><div class="nav-item"><a href="https://compatible.openmqttgateway.com/index.php/devices" target="_self" class="nav-link external">
|
|
Devices
|
|
<!----></a></div><div class="nav-item"><a href="/upload/web-install.html" class="nav-link">
|
|
Upload
|
|
</a></div><div class="nav-item"><a href="https://app.theengs.io/" target="_blank" rel="noopener noreferrer" class="nav-link external">
|
|
Theengs
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/1technophile/OpenMQTTGateway" target="_blank" rel="noopener noreferrer" class="repo-link">
|
|
GitHub
|
|
<span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav> <ul class="sidebar-links"><li><a href="/" aria-current="page" class="sidebar-link">0 - What is it for 🏠</a></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>1 - Prerequisites🧭</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>2 - Set it up 🔨</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>3 - Upload ➡️</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>4 - Use ✈️</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/use/rf.html" aria-current="page" class="active sidebar-link">RF gateways (433mhz/315mhz)</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header"><a href="/use/rf.html#rtl-433-device-decoders" class="sidebar-link">RTL_433 device decoders</a></li><li class="sidebar-sub-header"><a href="/use/rf.html#changing-active-receiver-modules" class="sidebar-link">Changing Active Receiver Modules</a></li><li class="sidebar-sub-header"><a href="/use/rf.html#rcswitch-based-gateway" class="sidebar-link">RCSwitch based gateway</a></li><li class="sidebar-sub-header"><a href="/use/rf.html#pilight-gateway" class="sidebar-link">Pilight gateway</a></li><li class="sidebar-sub-header"><a href="/use/rf.html#rf-with-sonoff-rf-bridge" class="sidebar-link">RF with SONOFF RF BRIDGE</a></li><li class="sidebar-sub-header"><a href="/use/rf.html#rf2-gateway-kaku" class="sidebar-link">RF2 gateway KAKU</a></li></ul></li><li><a href="/use/ble.html" class="sidebar-link">BLE gateway</a></li><li><a href="/use/ir.html" class="sidebar-link">IR gateway</a></li><li><a href="/use/lora.html" class="sidebar-link">LORA gateway</a></li><li><a href="/use/gsm.html" class="sidebar-link">GSM 2G gateway</a></li><li><a href="/use/rs232.html" class="sidebar-link">RS232 gateway</a></li><li><a href="/use/rfm69.html" class="sidebar-link">RFM69 gateway</a></li><li><a href="/use/sensors.html" class="sidebar-link">Sensors</a></li><li><a href="/use/actuators.html" class="sidebar-link">Actuators</a></li><li><a href="/use/boards.html" class="sidebar-link">Boards</a></li><li><a href="/use/displays.html" class="sidebar-link">Displays</a></li><li><a href="/use/gateway.html" class="sidebar-link">System commands (ESP only)</a></li><li><a href="/use/webui.html" class="sidebar-link">WebUI</a></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>5 - Integrate 🎉</span> <span class="arrow right"></span></p> <!----></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>6 - Participate 💻</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <main class="page"> <div class="theme-default-content content__default"><h1 id="rf-gateways-433mhz-315mhz"><a href="#rf-gateways-433mhz-315mhz" class="header-anchor">#</a> RF gateways (433mhz/315mhz)</h1> <h2 id="rtl-433-device-decoders"><a href="#rtl-433-device-decoders" class="header-anchor">#</a> RTL_433 device decoders</h2> <p>This feature is only available on a ESP32 based device with a supported transceiver connected due to the resource requirements of the rtl_433 device decoders. At the present time only Pulse Position Modulation (OOK_PPM), Pulse Width Modulation (OOK_PWM) and Pulse Manchester Zero Bit (OOK_PULSE_MANCHESTER_ZEROBIT) based decoders are available.</p> <h3 id="supported-hardware-combinations"><a href="#supported-hardware-combinations" class="header-anchor">#</a> Supported hardware combinations</h3> <ul><li>ESP32 based device with a CC1101 transceiver</li> <li>Heltec WiFi LoRa 32 (V2.1) and LilyGo Lora 32 V2.1</li> <li>ESP32 DOIT DevKit V1 and Ai-Thinker R01 (SX1278)</li> <li>ESP32 + SX1278/SX1276</li></ul> <h3 id="supported-decoders"><a href="#supported-decoders" class="header-anchor">#</a> Supported Decoders</h3> <div class="language- line-numbers-mode"><pre class="language-text"><code>Registering protocol [2] "Acurite 609TXC Temperature and Humidity Sensor"
|
|
Registering protocol [3] "Acurite 592TXR Temp/Humidity, 5n1 Weather Station, 6045 Lightning, 3N1, Atlas"
|
|
Registering protocol [4] "Acurite 986 Refrigerator / Freezer Thermometer"
|
|
Registering protocol [5] "Acurite 606TX Temperature Sensor"
|
|
Registering protocol [6] "Acurite 00275rm,00276rm Temp/Humidity with optional probe"
|
|
Registering protocol [7] "Acurite 590TX Temperature with optional Humidity"
|
|
Registering protocol [8] "Acurite Grill/Meat Thermometer 01185M"
|
|
Registering protocol [9] "Akhan 100F14 remote keyless entry"
|
|
Registering protocol [10] "AlectoV1 Weather Sensor (Alecto WS3500 WS4500 Ventus W155/W044 Oregon)"
|
|
Registering protocol [11] "Ambient Weather TX-8300 Temperature/Humidity Sensor"
|
|
Registering protocol [13] "Auriol AFT 77 B2 temperature sensor"
|
|
Registering protocol [14] "Auriol AFW2A1 temperature/humidity sensor"
|
|
Registering protocol [15] "Auriol AHFL temperature/humidity sensor"
|
|
Registering protocol [16] "Auriol HG02832, HG05124A-DCF, Rubicson 48957 temperature/humidity sensor"
|
|
Registering protocol [18] "Blyss DC5-UK-WH"
|
|
Registering protocol [20] "Bresser Thermo-/Hygro-Sensor 3CH"
|
|
Registering protocol [22] "Burnhard BBQ thermometer"
|
|
Registering protocol [23] "Calibeur RF-104 Sensor"
|
|
Registering protocol [24] "Cardin S466-TX2"
|
|
Registering protocol [25] "Chuango Security Technology"
|
|
Registering protocol [26] "Companion WTR001 Temperature Sensor"
|
|
Registering protocol [29] "Ecowitt Wireless Outdoor Thermometer WH53/WH0280/WH0281A"
|
|
Registering protocol [30] "Eurochron EFTH-800 temperature and humidity sensor"
|
|
Registering protocol [34] "Esperanza EWS"
|
|
Registering protocol [36] "Fine Offset Electronics, WH2, WH5, Telldus Temperature/Humidity/Rain Sensor"
|
|
Registering protocol [37] "Fine Offset Electronics, WH0530 Temperature/Rain Sensor"
|
|
Registering protocol [38] "Fine Offset WH1050 Weather Station"
|
|
Registering protocol [39] "Fine Offset Electronics WH1080/WH3080 Weather Station"
|
|
Registering protocol [41] "FT-004-B Temperature Sensor"
|
|
Registering protocol [42] "Generic wireless motion sensor"
|
|
Registering protocol [43] "Generic Remote SC226x EV1527"
|
|
Registering protocol [44] "Generic temperature sensor 1"
|
|
Registering protocol [45] "Govee Water Leak Dectector H5054, Door Contact Sensor B5023"
|
|
Registering protocol [46] "Globaltronics QUIGG GT-TMBBQ-05"
|
|
Registering protocol [47] "Globaltronics GT-WT-02 Sensor"
|
|
Registering protocol [48] "Globaltronics GT-WT-03 Sensor"
|
|
Registering protocol [49] "Microchip HCS200 KeeLoq Hopping Encoder based remotes"
|
|
Registering protocol [50] "Honeywell ActivLink, Wireless Doorbell"
|
|
Registering protocol [51] "HT680 Remote control"
|
|
Registering protocol [52] "inFactory, nor-tec, FreeTec NC-3982-913 temperature humidity sensor"
|
|
Registering protocol [54] "Interlogix GE UTC Security Devices"
|
|
Registering protocol [56] "Kedsum Temperature & Humidity Sensor, Pearl NC-7415"
|
|
Registering protocol [57] "Kerui PIR / Contact Sensor"
|
|
Registering protocol [58] "LaCrosse TX Temperature / Humidity Sensor"
|
|
Registering protocol [59] "LaCrosse TX141-Bv2, TX141TH-Bv2, TX141-Bv3, TX141W, TX145wsdth, (TFA, ORIA) sensor"
|
|
Registering protocol [60] "LaCrosse/ELV/Conrad WS7000/WS2500 weather sensors"
|
|
Registering protocol [61] "LaCrosse WS-2310 / WS-3600 Weather Station"
|
|
Registering protocol [63] "Markisol, E-Motion, BOFU, Rollerhouse, BF-30x, BF-415 curtain remote"
|
|
Registering protocol [64] "Maverick et73"
|
|
Registering protocol [66] "Missil ML0757 weather station"
|
|
Registering protocol [68] "Nexus, FreeTec NC-7345, NX-3980, Solight TE82S, TFA 30.3209 temperature/humidity sensor"
|
|
Registering protocol [70] "Opus/Imagintronix XT300 Soil Moisture"
|
|
Registering protocol [71] "Oregon Scientific Weather Sensor"
|
|
Registering protocol [72] "Oregon Scientific SL109H Remote Thermal Hygro Sensor"
|
|
Registering protocol [74] "Philips outdoor temperature sensor (type AJ3650)"
|
|
Registering protocol [75] "Philips outdoor temperature sensor (type AJ7010)"
|
|
Registering protocol [76] "Prologue, FreeTec NC-7104, NC-7159-675 temperature sensor"
|
|
Registering protocol [77] "Quhwa"
|
|
Registering protocol [79] "Rubicson Temperature Sensor"
|
|
Registering protocol [80] "Rubicson 48659 Thermometer"
|
|
Registering protocol [81] "Conrad S3318P, FreeTec NC-5849-913 temperature humidity sensor"
|
|
Registering protocol [82] "Silvercrest Remote Control"
|
|
Registering protocol [83] "Skylink HA-434TL motion sensor"
|
|
Registering protocol [84] "Wireless Smoke and Heat Detector GS 558"
|
|
Registering protocol [85] "Solight TE44/TE66, EMOS E0107T, NX-6876-917"
|
|
Registering protocol [86] "Springfield Temperature and Soil Moisture"
|
|
Registering protocol [87] "TFA Dostmann 30.3221.02 T/H Outdoor Sensor"
|
|
Registering protocol [88] "TFA Drop Rain Gauge 30.3233.01"
|
|
Registering protocol [89] "TFA pool temperature sensor"
|
|
Registering protocol [90] "TFA-Twin-Plus-30.3049, Conrad KW9010, Ea2 BL999"
|
|
Registering protocol [91] "Thermopro TP11 Thermometer"
|
|
Registering protocol [92] "Thermopro TP08/TP12/TP20 thermometer"
|
|
Registering protocol [94] "TS-FT002 Wireless Ultrasonic Tank Liquid Level Meter With Temperature Sensor"
|
|
Registering protocol [95] "Visonic powercode"
|
|
Registering protocol [96] "Waveman Switch Transmitter"
|
|
Registering protocol [97] "WG-PB12V1 Temperature Sensor"
|
|
Registering protocol [98] "WS2032 weather station"
|
|
Registering protocol [99] "Hyundai WS SENZOR Remote Temperature Sensor"
|
|
Registering protocol [100] "WT0124 Pool Thermometer"
|
|
Registering protocol [101] "X10 RF"
|
|
Registering protocol [102] "X10 Security"
|
|
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br><span class="line-number">19</span><br><span class="line-number">20</span><br><span class="line-number">21</span><br><span class="line-number">22</span><br><span class="line-number">23</span><br><span class="line-number">24</span><br><span class="line-number">25</span><br><span class="line-number">26</span><br><span class="line-number">27</span><br><span class="line-number">28</span><br><span class="line-number">29</span><br><span class="line-number">30</span><br><span class="line-number">31</span><br><span class="line-number">32</span><br><span class="line-number">33</span><br><span class="line-number">34</span><br><span class="line-number">35</span><br><span class="line-number">36</span><br><span class="line-number">37</span><br><span class="line-number">38</span><br><span class="line-number">39</span><br><span class="line-number">40</span><br><span class="line-number">41</span><br><span class="line-number">42</span><br><span class="line-number">43</span><br><span class="line-number">44</span><br><span class="line-number">45</span><br><span class="line-number">46</span><br><span class="line-number">47</span><br><span class="line-number">48</span><br><span class="line-number">49</span><br><span class="line-number">50</span><br><span class="line-number">51</span><br><span class="line-number">52</span><br><span class="line-number">53</span><br><span class="line-number">54</span><br><span class="line-number">55</span><br><span class="line-number">56</span><br><span class="line-number">57</span><br><span class="line-number">58</span><br><span class="line-number">59</span><br><span class="line-number">60</span><br><span class="line-number">61</span><br><span class="line-number">62</span><br><span class="line-number">63</span><br><span class="line-number">64</span><br><span class="line-number">65</span><br><span class="line-number">66</span><br><span class="line-number">67</span><br><span class="line-number">68</span><br><span class="line-number">69</span><br><span class="line-number">70</span><br><span class="line-number">71</span><br><span class="line-number">72</span><br><span class="line-number">73</span><br><span class="line-number">74</span><br><span class="line-number">75</span><br><span class="line-number">76</span><br><span class="line-number">77</span><br><span class="line-number">78</span><br><span class="line-number">79</span><br><span class="line-number">80</span><br><span class="line-number">81</span><br></div></div><h3 id="change-receive-frequency"><a href="#change-receive-frequency" class="header-anchor">#</a> Change receive frequency</h3> <p>Default receive frequency of the module is 433.92 Mhz, and this can be can changed by sending a message with the frequency. Parameter is <code>mhz</code> and valid values are 300-348 Mhz, 387-464Mhz and 779-928Mhz. Actual frequency support will depend on your board</p> <p><code>home/OpenMQTTGateway/commands/MQTTtoRTL_433 {"mhz":315.026}</code></p> <h3 id="change-signal-rssi-threshold-delta"><a href="#change-signal-rssi-threshold-delta" class="header-anchor">#</a> Change Signal RSSI Threshold Delta</h3> <p>Delta applied to RSSI floor noise level to determine start and end of signal, defaults to 9db.</p> <p><code>home/OpenMQTTGateway/commands/MQTTtoRTL_433 {"rssi": 9}</code></p> <h3 id="retrieve-current-status-of-receiver"><a href="#retrieve-current-status-of-receiver" class="header-anchor">#</a> Retrieve current status of receiver</h3> <p><code>home/OpenMQTTGateway/commands/MQTTtoRTL_433 {"status":1}</code></p> <div class="language- line-numbers-mode"><pre class="language-text"><code>{"model":"status",
|
|
"protocol":"debug",
|
|
"debug":0, - rtl_433 verbose setting
|
|
"duration":11799327, - duration of current signal
|
|
"Gap length":-943575, - duration of gap between current signal
|
|
"rssi":-38, - most recent received signal strength
|
|
"train":1, - signal processing train #
|
|
"messageCount":3, - total number of signals received
|
|
"totalSignals":9, - RegOokFix signal quality count ( of 10 )
|
|
"ignoredSignals":0, - RegOokFix signal quality ignored signals
|
|
"unparsedSignals":3, - RegOokFix signal quality unparseable signals
|
|
"_enabledReceiver":1, - which receiver is enabled
|
|
"receiveMode":0, - is the receiver currently receiving a signal
|
|
"currentRssi":-89, - current rssi level
|
|
"rssiThreshold":-82, - minimum rssi level to start signal processing
|
|
"pulses":0, - how many pulses have been received in the current signal
|
|
"StackHighWaterMark":5528, - ESP32 Stack
|
|
"freeMem":112880} - ESP32 memory available
|
|
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br><span class="line-number">2</span><br><span class="line-number">3</span><br><span class="line-number">4</span><br><span class="line-number">5</span><br><span class="line-number">6</span><br><span class="line-number">7</span><br><span class="line-number">8</span><br><span class="line-number">9</span><br><span class="line-number">10</span><br><span class="line-number">11</span><br><span class="line-number">12</span><br><span class="line-number">13</span><br><span class="line-number">14</span><br><span class="line-number">15</span><br><span class="line-number">16</span><br><span class="line-number">17</span><br><span class="line-number">18</span><br></div></div><h2 id="changing-active-receiver-modules"><a href="#changing-active-receiver-modules" class="header-anchor">#</a> Changing Active Receiver Modules</h2> <h3 id="switching-active-receiver-module"><a href="#switching-active-receiver-module" class="header-anchor">#</a> Switching Active Receiver Module</h3> <p>Switching of the active transceiver (RTL_433 receiver only) module is available between the RF, RF2, RTL_433 and Pilight Gateway modules, allowing for changing of signal decoders without redeploying the openMQTTGateway package. Sending a JSON message to the command topic of the desired receiver will change the active transceiver module.</p> <p>To enable the RF Gateway module send a json message to the RF Gateway module command subject with the key being 'active', and any value. The value at this time is ignored.</p> <p>Example:
|
|
<code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTto433" -m '{"active":true}'</code></p> <p>To enable the PiLight Gateway module send a json message to the PiLight Gateway module command subject with the key being 'active', and any value. The value at this time is ignored.</p> <p>Example:
|
|
<code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"active":true}'</code></p> <p>To enable the RF2 Gateway module send a json message to the RF2 Gateway module command subject with the key being 'active', and any value. The value at this time is ignored.</p> <p>Example:
|
|
<code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoRF2" -m '{"active":true}'</code></p> <p>To enable the RTL_433 Gateway module send a json message to the RTL_433 Gateway module command subject with the key being 'active', and any value. The value at this time is ignored.</p> <p>Example:
|
|
<code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoRTL_433" -m '{"active":true}'</code></p> <h3 id="status-messages"><a href="#status-messages" class="header-anchor">#</a> Status Messages</h3> <p>The openMQTTGateway status message contains a key <code>actRec</code> which is the current active receiver module.</p> <p>1 - PiLight
|
|
2 - RF
|
|
3 - RTL_433
|
|
4 - RF2</p> <h2 id="rcswitch-based-gateway"><a href="#rcswitch-based-gateway" class="header-anchor">#</a> RCSwitch based gateway</h2> <h3 id="receiving-data-from-rf-signal"><a href="#receiving-data-from-rf-signal" class="header-anchor">#</a> Receiving data from RF signal</h3> <p>Subscribe to all the messages with mosquitto or open your MQTT client software:</p> <p><code>sudo mosquitto_sub -t +/# -v</code></p> <p>Generate your RF signals by pressing a remote button or other and you should see :</p> <p><code>home/OpenMQTTGateway/433toMQTT {"value":1315156,"protocol":1,"length":24,"delay":317}</code></p> <h3 id="disabling-transmit-function-to-safe-a-pin"><a href="#disabling-transmit-function-to-safe-a-pin" class="header-anchor">#</a> Disabling Transmit function to safe a PIN</h3> <p>To disable transmit functions to allow the use of another pin, add the following to the config_rf.h file :</p> <p><code>#define RF_DISABLE_TRANSMIT</code></p> <h3 id="send-data-by-mqtt-to-convert-it-on-rf-signal"><a href="#send-data-by-mqtt-to-convert-it-on-rf-signal" class="header-anchor">#</a> Send data by MQTT to convert it on RF signal</h3> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTto433" -m '{"value":1315156}'</code></p> <p>This command will send by RF the code 1315156 and use the default parameters (protocol 1, delay 350)</p> <p>Arduino IDE serial data received when publishing data by MQTT</p> <p><img src="/assets/img/OpenMQTTGateway_serial1.b8169d69.jpg" alt=""></p> <p>We see that the Arduino receive the value 1315156 on the MQTT subject "MQTTto433" and send the data by RF</p> <p>Arduino IDE serial data received when receiving data by 433Mhz</p> <p><img src="/assets/img/OpenMQTTGateway_serial2.9629e5a0.jpg" alt=""></p> <h3 id="send-data-by-mqtt-with-advanced-rf-parameters"><a href="#send-data-by-mqtt-with-advanced-rf-parameters" class="header-anchor">#</a> Send data by MQTT with advanced RF parameters</h3> <p>RF sending support three advanced parameters: bits length, RF protocol and RF pulselength</p> <p>-if you want to use a bits number different than 24 put inside your topic "length":24 for example</p> <p>-if you want to use a different RCswitch protocol put inside your payload the protocol number 2, "protocol":2.</p> <p>-if you want to use a pulselength 315 put inside your topic "delay":315</p> <p>Example:
|
|
<code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTto433" -m '{"value":1315156,"protocol":2,"length":24,"delay":315}'</code>
|
|
will make RCSwitch use the protocol 2 with a pulselength of 315ms and a bits number of 24 with a power of 5</p> <h3 id="repeat-the-rf-signal-openmqttgateway-receive"><a href="#repeat-the-rf-signal-openmqttgateway-receive" class="header-anchor">#</a> Repeat the RF signal OpenMQTTGateway receive</h3> <p>So as to repeat the RF signal received by the gateway once set the following parameter to true in config_RF.h</p> <p><code>#define repeatRFwMQTT true</code></p> <h3 id="repeat-the-rf-signal-several-times"><a href="#repeat-the-rf-signal-several-times" class="header-anchor">#</a> Repeat the RF signal several times</h3> <p>You can add a "repeat" key/value to the MQTTto433 JSON message to override the default number of repeats.</p> <p>Example:
|
|
<code>home/OpenMQTTGateway/commands/MQTTto433 {"value":1315156,"protocol":1,"length":24,"delay":317, "repeat":10}</code></p> <h3 id="set-transmit-and-receive-frequency-and-transmit-power-of-cc1101-transceiver"><a href="#set-transmit-and-receive-frequency-and-transmit-power-of-cc1101-transceiver" class="header-anchor">#</a> Set Transmit and Receive Frequency and Transmit Power of CC1101 Transceiver</h3> <p>Default transmit frequency of the CC1101 module is 433.92 Mhz, and this can be can changed by including the frequency in the transmit message. Parameter is <code>mhz</code> and valid values are 300-348 Mhz, 387-464Mhz and 779-928Mhz. Actual frequency support will depend on your CC1101 board.</p> <p><code>home/OpenMQTTGateway/commands/MQTTto433 {"value":1150,"protocol":6,"length":12,"delay":450,"repeat":8,"mhz":303.732}</code></p> <p>Default receive frequency of the CC1101 module is 433.92 Mhz, and this can be can changed by sending a message with the frequency. Parameter is <code>mhz</code> and valid values are 300-348 Mhz, 387-464Mhz and 779-928Mhz. Actual frequency support will depend on your CC1101 board</p> <p><code>home/OpenMQTTGateway/commands/MQTTto433 {"mhz":315.026}</code></p> <p>Messages received will include the frequency, and when transmitting on a different frequency the module return to the receive frequency afterwards. ie transmit messages on 303.732 Mhz then receive messages on 433.92 Mhz</p> <p><code>{"value":4534142,"protocol":6,"length":26,"delay":356,"mhz":315.026}</code></p> <p>You can adjust the tx-power in db for a transmission. Parameter is <code>cc1101_pa</code> and valid values in decibel are (-30 -20 -15 -10 -6 0 5 7 10 11 12) Default is max!
|
|
That can be done to reduce range and therefore disturbances with other nearby devices.
|
|
If you want to send a transmission with a power of 5 db than use the message</p> <p><code>{"value":1315156,"protocol":2,"length":24,"delay":315, "cc1101_pa":5}</code></p> <h2 id="pilight-gateway"><a href="#pilight-gateway" class="header-anchor">#</a> Pilight gateway</h2> <h3 id="receiving-data-from-rf-signal-2"><a href="#receiving-data-from-rf-signal-2" class="header-anchor">#</a> Receiving data from RF signal</h3> <p>Subscribe to all the messages with mosquitto or open your MQTT client software:</p> <p><code>sudo mosquitto_sub -t +/# -v</code></p> <p>Generate your RF signals by pressing a remote button or other and you will see :</p> <p><img src="/assets/img/OpenMQTTGateway_Pilight_Digoo-DG-R8S.8a0f9d60.png" alt=""></p> <h4 id="enabling-raw-packet-return-support"><a href="#enabling-raw-packet-return-support" class="header-anchor">#</a> Enabling RAW packet return support</h4> <p>First, you need to compile a binary with <code>Pilight_rawEnabled true</code> uncommented in config_RF.h.</p> <p>Once the device is online, you can turn on the RAW packet return support with the following MQTT command:</p> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols" -m '{"rawEnabled":true}'</code></p> <p>The returned JSON looks like this:
|
|
<code>Client (null) received PUBLISH (d0, q0, r0, m0, 'home/OpenMQTTGateway/PilighttoMQTT', ... (176 bytes)) {"format":"RAW","rawlen":106,"pulsesString":"c:0102010102020202020101010101010102020201020102020202020201010101010101010101010102010102010201020201010203;p:521,944,1924,3845@"}</code></p> <p>The pulseString format is Pilight's native. For those who are not familiar with it:
|
|
c:* are the indexes for the p:* array, which are the different pulse length. (e.g. pulse[0] = 521ms, pulse[1]=944ms..., so c[0], which is a '0' = 521ms pulse, c[1], which is a '1' =944ms pulse etc)</p> <p>After gathering all the packets you need, simply turn off the RAW packet support via MQTT:</p> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols" -m '{"rawEnabled":false}'</code></p> <h3 id="limit-protocols"><a href="#limit-protocols" class="header-anchor">#</a> Limit Protocols</h3> <p>It is possible to limit the protocols that Pilight will respond to, this can help reduce noise from unwanted devices and in some cases disable conflicting protocols.</p> <h4 id="available-protocols"><a href="#available-protocols" class="header-anchor">#</a> Available protocols</h4> <p>To list the available protocols on the Serial -</p> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols" -m '{"available":true}'</code></p> <h4 id="limit-protocols-2"><a href="#limit-protocols-2" class="header-anchor">#</a> Limit protocols</h4> <p>To limit the protocols, send a JSON array of protocols as below -</p> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols -m '{"limit": ["array", "of", "protocols"]}'</code></p> <p>eg: <code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols" -m '{"limit":["tfa", "ev1527"}'</code></p> <h4 id="reset-protocols"><a href="#reset-protocols" class="header-anchor">#</a> Reset protocols</h4> <p>To reset and listen to all protocols -
|
|
<code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols -m '{"reset": true}'</code></p> <h4 id="enabled-protocols"><a href="#enabled-protocols" class="header-anchor">#</a> Enabled protocols</h4> <p>To list the enabled protocols on the Serial -</p> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight/protocols" -m '{"enabled":true}'</code></p> <h3 id="send-data-by-mqtt-to-transmit-a-rf-signal"><a href="#send-data-by-mqtt-to-transmit-a-rf-signal" class="header-anchor">#</a> Send data by MQTT to transmit a RF signal</h3> <h4 id="using-a-known-protocol"><a href="#using-a-known-protocol" class="header-anchor">#</a> Using a known protocol</h4> <p><strong>ON</strong> <code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"message":"{\"systemcode\":12,\"unitcode\":22,\"on\":1}","protocol":"elro_400_switch"}'</code></p> <p><strong>OFF</strong> <code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"message":"{\"systemcode\":12,\"unitcode\":22,\"off\":1}","protocol":"elro_400_switch"}'</code></p> <p>These commands will transmit by RF the signals to actuate an elro_400 switch.</p> <h4 id="using-a-raw-signal"><a href="#using-a-raw-signal" class="header-anchor">#</a> Using a raw signal</h4> <p>You can transmit raw signal data by using the "raw" protocol. This uses the Pilight pulse train string format. One such example string, representing a transmission for Nexus protocol weather stations, looks like this: <code>c:03020202010102020102010101010101010202020201020102020202020101010201010202;p:500,1000,2000,4000;r:12@</code>. This string represents pulses and gaps directly.</p> <p>Each number in the list after <code>p:</code> that ends with <code>;</code> stands for <strong>p</strong>ulse and gap lengths in microseconds (µs). In this example, we have a list containing lengths of 500µs, 1000µs, 2000µs, and 4000µs.</p> <p>Each number after <code>c:</code> and ended by <code>;</code> represents a <strong>c</strong>ode that references the <code>p:</code> list by index. In this example, the first 4 numbers after <code>c:</code> are 0, 3, 0, and 2, which reference <code>p:</code>[0] = 500, <code>p:</code>[3] = 4000, <code>p:</code>[0] = 500, and <code>p:</code>[2] = 2000, respectively. In the language of digital radio transceiving, the most basic unit is usually a pulse and gap pair; in other words, 0s and 1s are represented by a pulse followed by a gap (lack of pulse) and the time lengths of these pulses and gaps. Different protocols have different pulse lengths and gap lengths representing 0, and a different one representing 1. Because of this pulse-gap nature, the codes in <code>c:</code> must be taken as pairs; the first number in a pair represents the length of the pulse, and the second number the subsequent gap. In this example, the first pair, 03, represents a pulse of 500µs followed by a gap of 4000µs. The next pair, 02, represents a pulse of 500µs followed by a gap of 2000µs.</p> <p>The number after <code>r:</code> represents how many times the message in the string is to be <strong>r</strong>epeated. The <code>r:</code> block is optional. The default number of repeats if <code>r:</code> is not specified is 10. Greater than about 100 repeats will cause a crash due to memory usage. If this example were written without specifying repeats, it would look like this: <code>{"raw":"c:03020202010102020102010101010101010202020201020102020202020101010201010202;p:500,1000,2000,4000@"}</code></p> <p>The entire string must end in a <code>@</code>. Each block must end in a <code>;</code>, but if it is the last block in the string, the <code>@</code> replaces the <code>;</code>. Since the <code>r:</code> block is optional, this last block could be either <code>p:</code> or <code>r:</code>.</p> <p>The JSON for the MQTT message to <code>home/OpenMQTTGateway/commands/MQTTtoPilight</code> should specify the pulse train string as the value for the "raw" key: <code>{"raw":"c:03020202010102020102010101010101010202020201020102020202020101010201010202;p:500,1000,2000,4000;r:12@"}</code>.</p> <p>e.g. <code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoPilight" -m '{"raw":"c:03020202010102020102010101010101010202020201020102020202020101010201010202;p:500,1000,2000,4000;r:12@"}'</code></p> <h2 id="rf-with-sonoff-rf-bridge"><a href="#rf-with-sonoff-rf-bridge" class="header-anchor">#</a> RF with SONOFF RF BRIDGE</h2> <h3 id="receiving-data-from-rf-signal-3"><a href="#receiving-data-from-rf-signal-3" class="header-anchor">#</a> Receiving data from RF signal</h3> <p>Subscribe to all the messages with mosquitto or open your MQTT client software:</p> <p><code>sudo mosquitto_sub -t +/# -v</code></p> <p>Generate your RF signals by pressing a remote button or other and you will see:</p> <div class="language- line-numbers-mode"><pre class="language-text"><code>home/OpenMQTTGateway/SRFBtoMQTT {"raw":"2B660186042E00E7E5","value":"59365","delay":"1111","val_Thigh":"390","val_Tlow":"1070"}
|
|
</code></pre> <div class="line-numbers-wrapper"><span class="line-number">1</span><br></div></div><p>The first parameter is the raw value extracted from the RF module of the Sonoff bridge. The data are in hexadecimal and correspond to the details below:
|
|
https://www.itead.cc/wiki/images/5/5e/RF_Universal_Transeceive_Module_Serial_Protocol_v1.0.pdf
|
|
OpenMQTTGateway process the raw value to extract the other decimal values that can be reused to reproduce a signal (raw value can also be reused).</p> <p>NOTE: currently the device doesn't receive correct values from Switches remote control</p> <h3 id="send-data-by-mqtt-to-convert-it-on-rf-signal-2"><a href="#send-data-by-mqtt-to-convert-it-on-rf-signal-2" class="header-anchor">#</a> Send data by MQTT to convert it on RF signal</h3> <p><code>mosquitto_pub -t "home/OpenMQTTGateway/commands/MQTTtoSRFB" -m '{"value":1315156}'</code></p> <p>This command will send by RF the code 1315156 and use the default parameters:
|
|
Repeat = 1
|
|
Low time= 320
|
|
High time= 900
|
|
SYNC = 9500</p> <h3 id="send-data-by-mqtt-with-advanced-rf-parameters-2"><a href="#send-data-by-mqtt-with-advanced-rf-parameters-2" class="header-anchor">#</a> Send data by MQTT with advanced RF parameters</h3> <p>RF bridge sending support four advanced parameters; Repeat, Low time, High time & Sync
|
|
if you want to repeat your signal sending put into your json payload "repeat":2, 2 means 2 repetitions of signal</p> <p>if you want to use a low time of 315 put inside your json payload "Tlow":315</p> <p>if you want to use a high time of 845 put inside your json payload "Thigh":845</p> <p>if you want to use a sync time of 9123 put inside your json payload "Tsyn":9123</p> <p>Example:
|
|
<code>mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB/Tlow_315/Thigh_845/Tsyn_9123 -m '{"value":"33151562","delay":"9123","val_Thigh":"845","val_Tlow":"315"}'</code>
|
|
will make RF Bridge send a signal with the use of listed parameters 315, 845, 9123...</p> <p><code>mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoSRFB/Raw -m '{"raw":"267A013603B6140551"}'</code>
|
|
will make RF Bridge send a signal with the use of advanced parameters defined in the raw string</p> <h2 id="rf2-gateway-kaku"><a href="#rf2-gateway-kaku" class="header-anchor">#</a> RF2 gateway KAKU</h2> <p>RF2 gateway enables to send command to RF devices with the KAKU protocol. DIO chacon devices are an example.
|
|
It uses the same pinout as the RF gateway and both gateways can be used on the same setup.</p> <p>Receiving RF codes with the KAKU protocol is not compatible with ZgatewayRF , so as to get the code of your remotes you should comment ZgatewayRF in User_config.h.
|
|
Transmitting can be done with both ZgatewayRF and ZgatewayRF2</p> <h3 id="receiving-data-from-kaku-signal"><a href="#receiving-data-from-kaku-signal" class="header-anchor">#</a> Receiving data from KAKU signal</h3> <p>Subscribe to all the messages with mosquitto or open your MQTT client software:</p> <p><code>sudo mosquitto_sub -t +/# -v</code></p> <p>Generate your RF signals by pressing a remote button or other and you will see :</p> <p><code>home/OpenMQTTGateway/RF2toMQTT {"unit":0,"groupBit":0,"period":273,"address":8233228,"switchType":0}</code></p> <h3 id="send-data-by-mqtt-to-convert-it-on-kaku-signal"><a href="#send-data-by-mqtt-to-convert-it-on-kaku-signal" class="header-anchor">#</a> Send data by MQTT to convert it on KAKU signal</h3> <p>Once you get the infos publish the parameters with MQTT like that for off:</p> <p><code>mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoRF2 -m "{"unit":0,"groupBit":0,"period":273,"address":8233228,"switchType":0}"</code></p> <p>for on:</p> <p><code>mosquitto_pub -t home/OpenMQTTGateway/commands/MQTTtoRF2 -m "{"unit":0,"groupBit":0,"period":273,"address":8233228,"switchType":1}"</code></p></div> <footer class="page-edit"><div class="edit-link"><a href="https://github.com/1technophile/OpenMQTTGateway/edit/development/docs/use/rf.md" target="_blank" rel="noopener noreferrer">Edit this page</a> <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></div> <div class="last-updated"><span class="prefix">Last Updated:</span> <span class="time">6/10/2023, 8:01:17 PM</span></div></footer> <div class="page-nav"><p class="inner"><span class="prev">
|
|
←
|
|
<a href="/upload/troubleshoot.html" class="prev">
|
|
Troubleshooting
|
|
</a></span> <span class="next"><a href="/use/ble.html">
|
|
BLE gateway
|
|
</a>
|
|
→
|
|
</span></p></div> </main></div><div class="global-ui"></div></div>
|
|
<script src="/assets/js/app.a8101403.js" defer></script><script src="/assets/js/2.a6330fef.js" defer></script><script src="/assets/js/16.8ce0807b.js" defer></script>
|
|
</body>
|
|
</html>
|