Hydreon RG-15 rain sensor

Thanks for the answer! I have a sensitivity of 0.02mm but it sends this false positive value! And sometimes even more! Even so, when the sun is intense and there are no clouds, it reports this false positive

Hello @daniloortodontia yes I forgot the sensitivity levels are 0.2mm and 0.02mm. I suggest you investigate switching to 0.2mm and reposition the device.

In addition, if you are receiving a single “false positive” i.e. 0.02mm then I have noticed that the RG-15 does not create a rain event. I have also noticed that 0.02mm is so sensitive that if you are planning on automations set by the rain sensor intensity then I have created a template to filter out “noise/ dampness etc”

        
- sensor:
    - name: "Rain State"
      state: >
        {% if states('sensor.tub_pit_rain_intensity') | float > 0.1 %}
          Raining
        {%- else -%}
          Dry
        {%- endif %}

Thanks for the answer!
The RG-15 creates the rain-avoidance sensor! And also the false positive comes even in dry weather! no humidity! Already set it to 0.2mm, the false positive still comes!

I noticed here that when I disabled the “device_class: precipitation_intensity” code in the rain intensity sensor it no longer gave a false positive

I was tricked! LOL! Still having false positives on rain intensity!

need some advice on how to connect the sensor correctly. I read through so many pages now and am shure that the ESP32 → RG-15 is correct … but still can not connect to the sensor. so here is my table:

Pin1 → GND
Pin2 → 5V
Pin4 → RX
Pin5 → TX

Running ESPHome 2023.12.9
with config:

 # Example RG-15 entry

uart:
  rx_pin: GPIO16
  tx_pin: GPIO17
  baud_rate: 9600

sensor:
  - platform: hydreon_rgxx
    model: "RG_15"
    update_interval: 60s
    acc:
      name: "rain"
    event_acc:
      name: "rain event"
    total_acc:
      name: "rain total"
    r_int:
      name: "rain intensity"   

powering up the ESP32 the RG-15 LED flash 3 times green.

looking into the log I get either:

[18:44:33][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 3 times
[18:44:34][D][api:102]: Accepted 192.168.0.118
[18:44:34][D][api.connection:1121]: Home Assistant 2024.2.1 (192.168.0.118): Connected successfully
[18:44:38][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 4 times
[18:44:43][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 5 times
[18:44:43][E][hydreon_rgxx.sensor:142]: hydreon_rgxx can't boot, giving up
[18:44:43][D][sensor:094]: 'rain': Sending state nan mm with 2 decimals of accuracy
[18:44:43][D][sensor:094]: 'rain intensity': Sending state nan mm/h with 2 decimals of accuracy
[18:44:43][D][sensor:094]: 'rain event': Sending state nan mm with 2 decimals of accuracy
[18:44:43][D][sensor:094]: 'rain total': Sending state nan mm with 2 decimals of accuracy
[18:44:43][E][component:113]: Component hydreon_rgxx.sensor was marked as failed.

or:

[18:52:35][C][uart.arduino_esp32:138]:   TX Pin: GPIO17
[18:52:35][C][uart.arduino_esp32:139]:   RX Pin: GPIO16
[18:52:35][C][uart.arduino_esp32:141]:   RX Buffer Size: 256
[18:52:35][C][uart.arduino_esp32:143]:   Baud Rate: 9600 baud
[18:52:35][C][uart.arduino_esp32:144]:   Data Bits: 8
[18:52:35][C][uart.arduino_esp32:145]:   Parity: NONE
[18:52:35][C][uart.arduino_esp32:146]:   Stop bits: 1
[18:52:35][C][hydreon_rgxx.sensor:016]: hydreon_rgxx:
[18:52:35][E][hydreon_rgxx.sensor:018]: Connection with hydreon_rgxx failed!
[18:52:35][C][hydreon_rgxx.sensor:020]:   Update Interval: 60.0s
[18:52:35][C][hydreon_rgxx.sensor:027]:   "Acc " 'rain'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Device Class: 'precipitation'
[18:52:35][C][hydreon_rgxx.sensor:027]:     State Class: 'measurement'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Unit of Measurement: 'mm'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Accuracy Decimals: 2
[18:52:35][C][hydreon_rgxx.sensor:027]:   "RInt " 'rain intensity'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Device Class: 'precipitation_intensity'
[18:52:35][C][hydreon_rgxx.sensor:027]:     State Class: 'measurement'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Unit of Measurement: 'mm/h'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Accuracy Decimals: 2
[18:52:35][C][hydreon_rgxx.sensor:027]:   "EventAcc " 'rain event'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Device Class: 'precipitation'
[18:52:35][C][hydreon_rgxx.sensor:027]:     State Class: 'measurement'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Unit of Measurement: 'mm'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Accuracy Decimals: 2
[18:52:35][C][hydreon_rgxx.sensor:027]:   "TotalAcc " 'rain total'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Device Class: 'precipitation'
[18:52:35][C][hydreon_rgxx.sensor:027]:     State Class: 'total_increasing'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Unit of Measurement: 'mm'
[18:52:35][C][hydreon_rgxx.sensor:027]:     Accuracy Decimals: 2
[18:52:35][C][hydreon_rgxx.sensor:030]: disable_led: FALSE

any hint on what is wrong? and where do i find the firmware of the RG-15?

Hello I have the RG-15 with ESP32. Installed 6 months ago and worked flawlessly … lets see if I remember.

The RG-15 firmware is on the RG-15. It is not configurable other than the dip switches.

Your GPIO assignments are exactly the same as me and I have Pin2 powered from a GOOD power supply. GND and 5v are shared with the ESP32.

How about swapping rx and tx around. It is not clear which way around it is from the manual, and RX on one end is TX on the other!

1 Like

found one missmatch as i conneced the Pin4 / 5 to TXD/RXD marked pins on the ESP32 instead to GIPO16/17:
I used as well an external power supply for the RG-15 sensor.

output looks like this:

[21:58:40][I][hydreon_rgxx.sensor:277]: Got unknown line: \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xffrlm\xf7\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff\xff\xdf\xff\xff\xdb\xff\xff\xff\xff\xff\xff\xff\xdb\xff\xff\xff\xff\xff\xff
[21:58:40][D][api:102]: Accepted 192.168.0.118
[21:58:41][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 2 times
[21:58:41][I][hydreon_rgxx.sensor:277]: Got unknown line: \xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff\xff\xff\xfe\xff\xff\xff\xfd\xdb\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xeb\xebK\xfa\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff\xdb\xff\xff\xff\xff\xff\xfb\xff\xff\xff\xfb\xff
[21:58:46][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 3 times
[21:58:48][I][hydreon_rgxx.sensor:277]: Got unknown line: \xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\x97\xb0\xff\xff\xff\xff\xff\xff\xff\xff\xfferlﱽ\xdd\xf9\xeb)\xe1.\xeb\xeb\xffow
[21:58:51][D][hydreon_rgxx.sensor:169]: Received empty line
[21:58:51][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 4 times
[21:58:53][I][hydreon_rgxx.sensor:277]: Got unknown line: )\xe1\xeb\xeb)g
[21:58:56][W][hydreon_rgxx.sensor:137]: hydreon_rgxx failed to boot 5 times
[21:58:56][E][hydreon_rgxx.sensor:142]: hydreon_rgxx can't boot, giving up

I believe you need same GND for both devices. Otherwise the reference point (GND) is mismatched

1 Like

And swap tx and rx. At least error message has changed!

Thanks to your hints I got it running.

same GND for ESP and RG-15
TX and RX connected correct

thnaks a lot.

1 Like