How to compile for pilight?

This is my platformio.ini file : (did not change anything else)

; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
src_dir = main
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                 ENVIRONMENT CHOICE                                   ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Uncomment the env line corresponding to your board and modules required,              ;
;you can also adapt the modules by removing the corresponding lines in the env detail  ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

;default_envs = rfbridge
;default_envs = esp32dev-all
;default_envs = esp32dev-rf
;default_envs = esp32dev-ir
;default_envs = esp32dev-ble
;default_envs = ttgo-lora32-v1
;default_envs = nodemcuv2-rf
;default_envs = nodemcuv2-ir
;default_envs = nodemcuv2-ble
default_envs = nodemcuv2-all
;default_envs = uno-rf
;default_envs = uno-fastled
;default_envs = atmega-all

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                              ENVIRONMENTS PARAMETERS                                 ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;Libraries and parameters shared accross environements                                 ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[libraries]
arduinojson = ArduinoJson@5.13.4
pubsubclient = PubSubClient@2.7
rc-switch = 1technophile/rc-switch#90adb34
newremoteswitch = 1technophile/NewRemoteSwitch#8eb980e
ble = eos1d3/ESP32_BLE#9d6c1ed
irremoteesp = IRremoteESP8266@2.6.3
irremote = IRremote
lora = sandeepmistry/arduino-LoRa#f4a1d27
esppilight = ESPiLight@0.16.0
rfm69 = RFM69@4a6f77ad47
dht = DHT sensor library@1.3.0
unifiedsensor = Adafruit Unified Sensor@1.0.2
tsl2561 = Adafruit TSL2561@1.0.3
bme280 = SparkFun BME280@2.0.4
bmp180 = BMP180@efac46bd8d
ina226 = jarzebski/Arduino-INA226#968a684
a6lib = 1technophile/A6lib
wifimanager = tzapu/WiFiManager#c3ff582
ethernet = Ethernet
esp8266_mdns = esp8266_mdns
wire = Wire
fastled = FastLED

[env]
framework = arduino
lib_deps = 
  ${libraries.pubsubclient}
  ${libraries.arduinojson}
build_flags =
  -w ; supress all warnings
  '-DjsonPublishing=true'
  '-DjsonReceiving=true'
monitor_speed = 115200

[com]
esp8266_platform = espressif8266@1.8.0 ; 2.4.2
esp32_platform = espressif32@1.9.0
atmelavr_platform = atmelavr@1.13.0

[com-esp]
lib_deps =
  ${env.lib_deps}
  ${libraries.wifimanager}
build_flags =
  ${env.build_flags}
  -DMQTT_MAX_PACKET_SIZE=1024
  '-DsimpleReceiving=true'
  '-DsimplePublishing=true'
  '-DZmqttDiscovery="HADiscovery"'
  '-DTRACE=1'

[com-arduino]
lib_deps =
  ${env.lib_deps}
  ${libraries.ethernet}
build_flags =
  ${env.build_flags}
  -DMQTT_MAX_PACKET_SIZE=1024
  '-DsimpleReceiving=true'
  '-DsimplePublishing=true'
  '-DZmqttDiscovery="HADiscovery"'
  '-DTRACE=1'

[com-arduino-low-memory]
lib_deps =
  ${env.lib_deps}
  ${libraries.ethernet}
build_flags =
  ${env.build_flags}
  -DMQTT_MAX_PACKET_SIZE=128

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;                                 ENVIRONMENTS LIST                                    ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;List of environments that can be build                                                ;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;

[env:rfbridge]
platform = ${com.esp8266_platform}
board = esp8285
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.esp8266_mdns}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewaySRFB="SRFB"'
  '-DGateway_Name="OpenMQTTGateway_SRFB"'
board_build.flash_mode = dout

[env:esp32dev-all]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.ble}
  ${libraries.irremoteesp}
  ${libraries.lora}
  ${libraries.rfm69}
  ${libraries.rc-switch}
  ${libraries.newremoteswitch}
  ${libraries.bme280}
  ${libraries.bmp180}
  ${libraries.unifiedsensor}
  ${libraries.dht}
  ${libraries.tsl2561}
  ${libraries.ina226}
  ${libraries.fastled}
build_flags =
  ${com-esp.build_flags}
  '-DZgatewayRF="RF"'
  '-DZgatewayLORA="LORA"'
  '-DZgatewayRF2="RF2"'
  '-DZgatewayIR="IR"'
  '-DZgatewayBT="BT"'
  '-DZactuatorONOFF="ONOFF"'
  '-DZactuatorFASTLED="FASTLED"'
  '-DZsensorINA226="INA226"'
  '-DZsensorHCSR501="HCSR501"'
  '-DZsensorADC="ADC"'
  '-DZsensorBH1750="BH1750"'
  '-DZsensorBME280="BME280"'
  '-DZsensorTSL2561="TSL2561"'
  '-DZsensorDHT="DHT"'
  '-DZgatewayRFM69="RFM69"'
  '-DZsensorGPIOInput="GPIOInput"'
  '-DZsensorGPIOKeyCode="GPIOKeyCode"'
  '-DGateway_Name="OpenMQTTGateway_ESP32_ALL"'

[env:esp32dev-rf]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.rc-switch}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayRF="RF"'
  '-DGateway_Name="OpenMQTTGateway_ESP32_RF"'

[env:esp32dev-ir]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.irremoteesp}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayIR="IR"'
  '-DGateway_Name="OpenMQTTGateway_ESP32_IR"'

[env:esp32dev-ble]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.ble}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayBT="BT"'
  '-DGateway_Name="OpenMQTTGateway_ESP32_BLE"'

[env:ttgo-lora32-v1]
platform = ${com.esp32_platform}
board = ttgo-lora32-v1
board_build.partitions = min_spiffs.csv
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.lora}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayLORA="LORA"'
  '-DGateway_Name="OpenMQTTGateway_ESP32_LORA"'

[env:nodemcuv2-all]
platform = ${com.esp8266_platform}
board = nodemcuv2
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.esppilight}
  ${libraries.irremoteesp}
  ${libraries.rfm69}
  ${libraries.rc-switch}
  ${libraries.a6lib}
  ${libraries.newremoteswitch}
  ${libraries.bme280}
  ${libraries.bmp180}
  ${libraries.unifiedsensor}
  ${libraries.dht}
  ${libraries.tsl2561}
  ${libraries.ina226}
  ${libraries.esp8266_mdns}
  ${libraries.wire}
  ${libraries.fastled}
build_flags = 
  ${com-esp.build_flags}
;  '-DZgatewayRF="RF"'
;  '-DZgatewayRF2="RF2"'
;  '-DZgatewayIR="IR"'
;  '-DZgatewayBT="BT"'
;  '-DZgateway2G="2G"'
  '-DZgatewayPilight="Pilight"'
;  '-DZactuatorONOFF="ONOFF"'
;  '-DZactuatorFASTLED="FASTLED"'
;  '-DZsensorINA226="INA226"'
;  '-DZsensorHCSR501="HCSR501"'
;  '-DZsensorADC="ADC"'
;  '-DZsensorBH1750="BH1750"'
;  '-DZsensorBME280="BME280"'
;  '-DZsensorTSL2561="TSL2561"'
;  '-DZsensorDHT="DHT"'
;  '-DZgatewayRFM69="RFM69"'
;  '-DZsensorGPIOInput="GPIOInput"'
;  '-DZsensorGPIOKeyCode="GPIOKeyCode"'
  '-DGateway_Name="OpenMQTTGateway_ESP8266_ALL"'
board_build.flash_mode = dout

[env:nodemcuv2-ble]
platform = ${com.esp8266_platform}
board = nodemcuv2
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.wire}
  ${libraries.esp8266_mdns}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayBT="BT"'
  '-DGateway_Name="OpenMQTTGateway_ESP8266_BLE"'
board_build.flash_mode = dout

[env:nodemcuv2-ir]
platform = ${com.esp8266_platform}
board = nodemcuv2
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.irremoteesp}
  ${libraries.esp8266_mdns}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayIR="IR"'
  '-DGateway_Name="OpenMQTTGateway_ESP8266_IR"'
board_build.flash_mode = dout

[env:nodemcuv2-rf]
platform = ${com.esp8266_platform}
board = nodemcuv2
lib_deps =
  ${com-esp.lib_deps}
  ${libraries.rc-switch}
  ${libraries.newremoteswitch}
  ${libraries.esp8266_mdns}
build_flags = 
  ${com-esp.build_flags}
  '-DZgatewayRF="RF"'
  '-DZgatewayRF2="RF2"'
  '-DGateway_Name="OpenMQTTGateway_ESP8266_RF"'
board_build.flash_mode = dout

[env:atmega-all]
platform = ${com.atmelavr_platform}
board = megaatmega2560
lib_deps =
  ${com-arduino.lib_deps}
  ${libraries.irremote}
  ${libraries.rfm69}
  ${libraries.rc-switch}
  ${libraries.newremoteswitch}
  ${libraries.bme280}
  ${libraries.bmp180}
  ${libraries.unifiedsensor}
  ${libraries.dht}
  ${libraries.tsl2561}
  ${libraries.a6lib}
  ${libraries.ina226}
  ${libraries.fastled}
build_flags = 
  ${com-arduino.build_flags}
  '-DZgatewayRF="RF"'
  '-DZgatewayRF="RF315"'
  '-DZgatewayRF2="RF2"'
  '-DZgatewayIR="IR"'
  ;'-DZgatewayBT="BT"'
  '-DZactuatorONOFF="ONOFF"'
  '-DZactuatorFASTLED="FASTLED"'
  '-DZsensorINA226="INA226"'
  '-DZsensorHCSR501="HCSR501"'
  '-DZsensorADC="ADC"'
  '-DZsensorBH1750="BH1750"'
  '-DZsensorBME280="BME280"'
  '-DZsensorTSL2561="TSL2561"'
  '-DZsensorDHT="DHT"'
  '-DZgatewayRFM69="RFM69"'
  '-DZsensorGPIOInput="GPIOInput"'
  ;'-DZsensorGPIOKeyCode="GPIOKeyCode"'
  '-DZmqttDiscovery="HADiscovery"'
  '-DGateway_Name="OpenMQTTGateway_ATMEGA_ALL"'

[env:uno-rf]
platform = ${com.atmelavr_platform}
board = uno
lib_deps =
  ${com-arduino.lib_deps}
  ${libraries.rc-switch}
build_flags = 
  ${com-arduino-low-memory.build_flags}
  '-DZgatewayRF="RF"'
  '-DGateway_Name="OpenMQTTGateway_UNO_RF"'

[env:uno-fastled]
platform = ${com.atmelavr_platform}
board = uno
lib_deps =
  ${com-arduino.lib_deps}
  ${libraries.fastled}
build_flags = 
  ${com-arduino-low-memory.build_flags}
  '-DGateway_Name="OpenMQTTGateway_UNO_RF"'
  '-DZactuatorFASTLED="FASTLED"'

;extra_configs =
;  tests/*_env.ini

After upload and reset, this I see in termite:

OpenMQTTGateway mac:
A4:CF:12:BF:4F:E8
OpenMQTTGateway ip:
10.0.0.91
1883
Connecting to MQTT by IP adress
10.0.0.52
RF_EMITTER_PIN
3
RF_RECEIVER_PIN
0
ZgatewayPilight setup done
MQTT_MAX_PACKET_SIZE
1024
Setup OpenMQTTGateway end
client disconnected
MQTT connection…
Connected to broker
Subscription OK to the subjects

But when I press a button on any receiver, nothing is received.

I know my rfreciever is working, because if I compile for rf, this is what I get

OpenMQTTGateway mac:
A4:CF:12:BF:4F:E8
OpenMQTTGateway ip:
10.0.0.91
1883
Connecting to MQTT by IP adress
10.0.0.52
RF_EMITTER_PIN
3
RF_RECEIVER_PIN
0
RF setup ok
MQTT_MAX_PACKET_SIZE
1024
Setup OpenMQTTGateway end
client disconnected
MQTT connection…
Connected to broker
Subscription OK to the subjects
Rcv. RF
isAdupl?
Pub json into:
home/OpenMQTTGateway_ESP8266_RF/433toMQTT
{“value”:190,“protocol”:21,“length”:11,“delay”:385}
Pub data per topic
value
190
protocol
21
length
11
delay
385
Store val
Min ind:
0
store code :
190/14698
Col: val/timestamp
0:190/14698
1:0/0
2:0/0
3:0/0
4:0/0
5:0/0
6:0/0
7:0/0
8:0/0
9:0/0
10:0/0
11:0/0
Hey I got a callback
Store str
Rcv. RF
isAdupl?
no pub. dupl
Hey I got a callback
Store str
Min ind:
1
store code :
190/14720
Col: val/timestamp
0:190/14698
1:190/14720
2:0/0
3:0/0
4:0/0
5:0/0
6:0/0
7:0/0
8:0/0
9:0/0
10:0/0
11:0/0
JSON str
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
no pub. dupl
Rcv. RF
isAdupl?
Pub json into:
home/OpenMQTTGateway_ESP8266_RF/433toMQTT

unfortunatly, my flamingo oullet is not picked up, and using both rf and rf2 does not work either.

Hello,

Could you format the code and serial monitor output properly, this is difficult to read as it is.

Sorry for that, cleaned it up a little bit, hope it is better so.

Can it simply be that the compile is OK, but pilight can’t decode so nothing happens ? Although I don’t see anything happening in terminal, no receive at all.

Yes it could be that.
To check that the decoding is working properly you can try with some simple push buttons or other 433mhz emitter you may have.

Hi,

Is there any update on this problem?
I have the same issue - compiled OMG with RF working, but when compiled with Pilight - decode nothing :frowning:
I am using NodeMCUv3 + SRX882. Test devices

  1. DIGOO 433MHz New Door & Window Alarm Sensor for HOSA HAMA
  2. DG-R8S.
    Also, it receives nothing with Pilight compiled from DIGOO DG-R8S for which I compiled Pilight :frowning:

my_env.ini:

[platformio]

default_envs =
nodemcuv2-pilight-my

[env:nodemcuv2-pilight-my]
platform = ${com.esp8266_platform}
board = nodemcuv2
lib_deps =
${com-esp.lib_deps}
${libraries.esppilight}
build_flags =
${com-esp.build_flags}
‘-DZgatewayPilight=“Pilight”’
‘-DGateway_Name=“OpenMQTTGateway”’
‘-DRF_RECEIVER_PIN=5’
‘-DRF_EMITTER_PIN=4’
; ‘-DESPWifiManualSetup=true’
board_build.flash_mode = dout

1technophile help please…

Hello,

Could you indicate the version of OMG used and the output of your serial monitor?

Hi,

This time I am used master version (0.9.2):

mounting FS…
mounted file system
*WM: [3] allocating params bytes: 20
*WM: [2] Added Parameter: server
*WM: [2] Added Parameter: port
*WM: [2] Added Parameter: user
*WM: [2] Added Parameter: pass
*WM: [1] AutoConnect
*WM: [2] Connecting as wifi client…
*WM: [1] STA static IP:
*WM: [2] setSTAConfig static ip not set
*WM: [3] WIFI station disconnect
*WM: [1] Connecting to saved AP: ***
*WM: [3] Using Password: ***
*WM: [3] WiFi station enable
*WM: [3] enableSTA PERSISTENT ON
*WM: [2] 5000 ms connectTimeout set
*WM: [2] 5000 ms timeout, waiting for connect…
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
*WM: [2] .
WM: [2] Connection result: WL_CONNECTED
WM: [3] lastconxresult: WL_CONNECTED
WM: [1] AutoConnect: SUCCESS
WM: [1] STA IP Address: 192.168.15.123
connected…yeey :slight_smile:
saving config
{“mqtt_server”:“192.168.15.142”,“mqtt_port”:“1883”,“mqtt_user”:“your_username”,“mqtt_pass”:“your_password”}WM: [3] freeing allocated params!
WM: [3] unloading
OpenMQTTGateway mac:
80:7D:

OpenMQTTGateway ip:
192.168.15.123
1883
Connecting to MQTT by IP adress
192.168.15.142
RF_EMITTER_PIN
4
RF_RECEIVER_PIN
5
ZgatewayPilight setup done
MQTT_MAX_PACKET_SIZE
1024
Setup OpenMQTTGateway end
client disconnected
MQTT connection…
Connected to broker
Subscription OK to the subjects

no reaction on RF. After some time:

Uptime (s)
120
omgStatusDiscovery
Pub json into:
homeassistant/binary_sensor/807D******/config
{“stat_t”:“/OpenMQTTGateway/LWT”,“name”:“OpenMQTTGateway”,“uniq_id”:“807D******”,“dev_cla”:“connectivity”,“pl_on”:“online”,“pl_off”:“offline”,“pl_avail”:“online”,“pl_not_avail”:“offline”,“device”:{“name”:“OpenMQTTGateway”,“manufacturer”:“OMG_community”,“sw_version”:“0.9.2”,“identifiers”:[“807D******”]}}
Pub data per topic
stat_t
/OpenMQTTGateway/LWT
name
OpenMQTTGateway
uniq_id
807D******
dev_cla
connectivity
pl_on
online
pl_off
offline
pl_avail
online
pl_not_avail
offline
gatewayPilightDiscovery
CreateDiscoverySensor
gatewayPilight
Pub json into:
homeassistant/sensor/807DgatewayPilight/config
{“stat_t”:“/OpenMQTTGateway/PilighttoMQTT”,“name”:“gatewayPilight”,“uniq_id”:"807D
gatewayPilight",“val_tpl”:“{{ value_json.message }}”,“device”:{“name”:“OpenMQTTGateway”,“manufacturer”:“OMG_community”,“sw_version”:“0.9.2”,“identifiers”:[“807D******”]}}
Pub data per topic
stat_t
/OpenMQTTGateway/PilighttoMQTT
name
gatewayPilight
uniq_id
807DgatewayPilight
val_tpl
{{ value_json.message }}
{“uptime”:120,“freeMem”:25032,“rssi”:-62,“SSID”:"
",“ip”:“192.168.15.123”,“mac”:"80:7D:
***",“modules”:“PilightHADiscovery”}
Uptime (s)
240

Well… after some additional tests using water leakage sensor (https://www.aliexpress.com/item/32971552553.html), it seems accepted (when pressed button on sensor):

Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“unitcode”:371256,“battery”:“low”},“protocol”:“kerui_D026”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
kerui_D026
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“unitcode”:338659,“state”:“opened”},“protocol”:“ev1527”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
ev1527
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“systemcode”:9,“unitcode”:24,“state”:“on”},“protocol”:“pollin”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
pollin
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“systemcode”:9,“unitcode”:24,“state”:“off”},“protocol”:“mumbi”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
mumbi
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“unitcode”:371256,“state”:“closed”},“protocol”:“kerui_D026”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
kerui_D026
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“unitcode”:862947,“state”:“opened”},“protocol”:“ev1527”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
ev1527
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“systemcode”:9,“unitcode”:24,“state”:“off”},“protocol”:“mumbi”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
mumbi
length

repeats
2
status
2

When I put sensor into water, I see this:

Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“systemcode”:9,“unitcode”:24,“state”:“off”},“protocol”:“silvercrest”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
silvercrest
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“systemcode”:9,“unitcode”:24,“state”:“on”},“protocol”:“mumbi”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
mumbi
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“systemcode”:137,“unitcode”:24,“state”:“off”},“protocol”:“elro_800_switch”,“length”:“”,“repeats”:2,“status”:2}
Pub data per topic
protocol
elro_800_switch
length

repeats
2
status
2
Creating RF PiLight buffer
Pub json into:
/OpenMQTTGateway/PilighttoMQTT
{“message”:{“id”:15,“unit”:6,“state”:“down”},“protocol”:“arctech_screen_old”,“length”:“15”,“repeats”:2,“status”:2}
Pub data per topic
protocol
arctech_screen_old
length
15
repeats
2
status
2

When remove sensor from water, I receive nothing.
So, It seems works (somehow).

I finally made openmqttgateway work with pilight. When the rf receiver is connected to D3 (pin 0 in config_Rf.h) openmqttgateway receives 2 or 3 transmissions, and then stops working. After connecting to D6 (pin 12) it continues working.

You mean it works constantly If you connect it to D6 all the time ?

If connected to d3, after receiving two or three messages I don’t receive anything anymore. After connecting to d6, openmqttgateway is running already a whole day, and I continue to receive messages fine. Now everything is working as it should.

1 Like