1technophile / OpenMQTTGateway

MQTT gateway for ESP8266 or ESP32 with bidirectional 433mhz/315mhz/868mhz, Infrared communications, BLE, Bluetooth, beacons detection, mi flora, mi jia, LYWSD02, LYWSD03MMC, Mi Scale, TPMS, BBQ thermometer compatibility & LoRa.
https://docs.openmqttgateway.com
GNU General Public License v3.0
3.55k stars 784 forks source link

TFA / Oregon Scientific Temp/Hum (or whole weather units) Sensor Support #297

Closed cryptooth closed 5 years ago

cryptooth commented 5 years ago

Is it possible to add/decode TFA or Oregon Scientific Tem/hum Sensor support?

1technophile commented 5 years ago

did you try ZgatewayPilight on the master branch?

cryptooth commented 5 years ago

I just activate and upload ZgatewayPiLight. PiLight activated (in serial monitor)

When I push some RF button or open door contact, I get the some codes. Like this:

{"id":"B7","unit":63,"state":"off"}
qos : 0, retain : false, cmd : publish, dup : false, topic : home/OpenMQTTGateway/PilighttoMQTT/rev2_switch/B7, messageId : , length : 86, Raw payload : 1233410510034583466553444341171101051163458545144341151169711610134583411110210234125

But I can't get any Oregon or TFA sensor information via RF.

Any advice?

Thanky.

1technophile commented 5 years ago

Yes could you go into pilight documentation so as to check if your sensors are compatible and see how the behave with pilight ?

cryptooth commented 5 years ago

My TFA sensor is in pilight compatibility list. (TS34C / 30.3150) But can't get any code. Still trying...

1technophile commented 5 years ago

I have just updated the development branch with the last version of espilight, they have added a new tfa protocol. Could you test if it works for you?

cryptooth commented 5 years ago

I think my HM10 module corrupted. I just order new ESP32 module from Aliexpress. I will inform you after arrived.

1technophile commented 5 years ago

I think you don't need the HM10 to do the test, just a simple RF receiver will be enough.

cryptooth commented 5 years ago

I'm confused, sorry. I'm also dealing with xiaomi mijia BT sensors at the same time.

I just tried again. I have not yet received any data from TFA sensors. I've updated pilight libraries on Arduino.

I'll change the RF module and try again.

Here is serial monitor output:

OpenMQTTGateway ip: 
192.168.86.199
1883
Connecting to MQTT by IP adress
192.168.86.50
RF_EMITTER_PIN 
3
RF_RECEIVER_PIN 
1
ZgatewayPilight setup done 
MQTT_MAX_PACKET_SIZE
128
JSON_MSG_BUFFER
512
Setup OpenMQTTGateway end
MQTT connection...
Connected to broker
Subscription OK to the subjects
Uptime (s)
120
Remaining memory
31968
RSSI
-56
SSID
BELEK AIRPORT
Activated modules
PilightPilight
1technophile commented 5 years ago

Maybe it is not compatible. Here is a tested compatible weather station with ZgatewayPilight

1technophile commented 5 years ago

I'm closing this issue, may I suggest you to add a request of integration in pilight library