Github Devices Community Docs Blog

Digoo DG-R8H Temperature Sensor

Hello guys, I’m trying to get the Digoo DG-R8H sensor to work with OpenMQTT Gateway.
Right now I’ve flashed a ESP8266 with PiLight only, but can’t get any response from it, or like a troubleshooting guide to check the pilight funcionality.

There is any command I can send to check if Pilight is correctly installed and running on my board? On Arduino serial it displays that connected to my wifi with succes, but nothing more.



Unfortunately dg r8h is not yet supported, I’ve just received one and will try to integrate it into pilight.

1 Like

Thanks for the reply!
I was searching more info about this sensor on Google, and found a GitHub project from a guy who decoded the info from these Digoo sensors:

I’ll could try to help to integrate someway the code on the MQTTGateway solution, but I’m not skilled on software development, but I can help doing some tests with it.

Let me know if I can help somehow.

Thanks for the help, it will help for the integration into Pilight (and by the way OMG)

I have gotten the Digo DG-R8H working on OMG.
I have made a plug-in (that still needs patching up) based on:

Here is what I cobbled together for my Domoticz setup:

OpenMQTTGateway - ESP8266 or Arduino program for home automation

Act as a wifi or ethernet gateway between your 433mhz/infrared IR signal and a MQTT broker
Send and receiving command by MQTT

This gateway enables to:

  • receive MQTT data from a topic and send RF 433Mhz signal corresponding to the received MQTT data

  • publish MQTT data to a different topic related to received 433Mhz signal

    Copyright: ©Florian ROBERT

    This file is part of OpenMQTTGateway.

    OpenMQTTGateway is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    OpenMQTTGateway is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
    along with this program. If not, see

    this module uses the homeGW library for processing Digoo DG-R8H sensors

#ifdef ZgatewayRF3

#include <homeGW.h>
#include <digoo.h>

HomeGW gw(1); //the number of plugins to be registered
digoo station;
String msg ="";
String old_msg ="";

uint64_t prev_p = 0;
uint64_t p = 0;


void setupRF3(){
// pull-down RF pin (less noise)
Serial.println(“Ready to go”);
digitalWrite(RF_RECEIVER_PIN, LOW);
digitalWrite(RF_RECEIVER_PIN, LOW);

void RF3toMQTT(){
String idx ="";
if(station.available()) {
if((p = station.getPacket())) {
if(p != prev_p) {
if (station.getId§ == 8) { // modify the IDs to match your Gigoo
idx = “122”;

    if (idx !="") {
      msg = "{\"idx\":";
      msg += idx;
      msg += ",\"nvalue\":0,\"svalue\":\"";
      msg += station.getTemperature(p);
      msg += ";";
      msg += station.getHumidity(p);
      msg += ";2\"}";
       Serial.print("Digoo: ");
       pub("domoticz/in",msg);  // shortcut to report to domotoicz. 
   prev_p = p;


1 Like