[142] Fine Offset Electronics/ECOWITT WH51 Soil Moisture Sensor

355 views
Skip to first unread message

H S

unread,
Oct 11, 2021, 4:14:05 PM10/11/21
to rtl_433
I am successfully receiving signal from one of these units, however I notice that there doesn't seem to be a "unit/ID/channel" in the MQTT topics to distinguish multiple units.

So if I purchase more than one unit, are there any provisions in the code to handle multiple WH51's ? or am I stuck with purchasing the Ecowitt GW100 gateway? 
I assume that if the gateway can distinguish more that one unit, the WH51 must send some ID along with the rest of the signal.

From the Ecowitt website:
  • Support Monitoring Multi Locations: The GW1000 Gateway(sold separately) supports MAX 8 WH51 Soil Moisture Sensors. Each new sensor will be recognized as a new channel according to the Power-on sequence
Any advice appreciated,
Thx

Benjamin Larsson

unread,
Oct 11, 2021, 5:07:42 PM10/11/21
to rtl...@googlegroups.com
On 11/10/2021 22:14, H S wrote:
> I am successfully receiving signal from one of these units, however I
> notice that there doesn't seem to be a "unit/ID/channel" in the MQTT
> topics to distinguish multiple units.
>
> So if I purchase more than one unit, are there any provisions in the
> code to handle multiple WH51's ? or am I stuck with purchasing the
> Ecowitt GW100 gateway?
> I assume that if the gateway can distinguish more that one unit, the
> WH51 must send some ID along with the rest of the signal.
>
> From the Ecowitt website:
>
> * Support Monitoring Multi Locations: The GW1000 Gateway(sold
> separately) supports MAX 8 WH51 Soil Moisture Sensors. Each new
> sensor will be recognized as a new channel according to the Power-on
> sequence
>
> Any advice appreciated,
> Thx

There is an id listed in the output:

https://github.com/merbanan/rtl_433/blob/master/src/devices/fineoffset.c#L666

So it's something with the mqtt output.

MvH
Benjamin Larsson

H S

unread,
Oct 11, 2021, 6:44:33 PM10/11/21
to rtl_433
Ok. I do see the ID topic now

SDR/Fineoffset-WH51/id

But associated features are not a subset of the ID topic 

SDR/Fineoffset-WH51/moisture

so I need to figure out a way to associate the ID and the rest of the data

So it looks like 

SDR/Fineoffset-WH51/id/moisture

Will investigate further.

Thx

Greg Troxel

unread,
Oct 11, 2021, 9:22:56 PM10/11/21
to H S, rtl_433

H S <ylavi...@gmail.com> writes:

> Ok. I do see the ID topic now
>
> SDR/Fineoffset-WH51/id
>
> But associated features are not a subset of the ID topic
>
> SDR/Fineoffset-WH51/moisture
>
> so I need to figure out a way to associate the ID and the rest of the data

Don't assume that the bridge to mqtt code is correct. It may be that
adjusting the code to rationalize the use of id is in order.

I've been using this, but I only have one sensor. I looked at my home
assistant config, and I'm using json output from rtl-433 and publishing
json to a topic. I admit to being of the opinion that it's best to send
json dict from a message to a topic, once, and realize others might not
agree.

signature.asc

H S

unread,
Oct 11, 2021, 9:48:48 PM10/11/21
to rtl_433
Thx Greg,

got it working now; just forgot to add [id] somewhere in my MQTT output:

-f 433900000 -d 0 -G 4 -F http -F mqtt://192.168.0.xxx:xxxx,retain=0,devices=SDR[/type][/model][/subtype][/channel][/id]

Cheers,





H S

unread,
Oct 11, 2021, 10:21:04 PM10/11/21
to rtl_433
In fact, I think I'll use
[/type][/model]-[id][/subtype][/channel]
Which aligns better with my existing naming structure
Reply all
Reply to author
Forward
0 new messages