Page 1 of 1

Moisture Sensor from BeFlE

Posted: 19 Mar 2023, 16:36
by bloop16
Dear Community,

I have bought an Moisture Sensor called SoMoSe from BeFlE and am trying to get it working.
Sadly a couldn't find a device to get the Sensor working.
Does anyone know how to get the sensor working?
Is there a way to get an i2c device running without the separate device?
I`m not a developer and my knowledge is not good enough to understand what the developer ment.

https://github.com/BeFlE/SoMoSe

Thank´s for your help

Re: Moisture Sensor from BeFlE

Posted: 19 Mar 2023, 17:21
by Ath
ESPEasy currently supports this moisture sensor.

The plugin for this sensor is available in all Collection builds and the Climate build.
There is no support (yet) in the plugin for the model you have selected (have a link where to buy that?), but it's possible to add that. Your sensor doesn't support the "Light" measurement, that is available in the miceuz sensor I linked, so that would read 0 in all cases.

Re: Moisture Sensor from BeFlE

Posted: 19 Mar 2023, 17:33
by bloop16

Re: Moisture Sensor from BeFlE

Posted: 19 Mar 2023, 17:43
by Ath
I'll try to add support for this sensor.

Re: Moisture Sensor from BeFlE

Posted: 19 Mar 2023, 17:57
by bloop16
Thank`s a lot! :D

Re: Moisture Sensor from BeFlE

Posted: 01 Apr 2023, 13:30
by Ath
bloop16 wrote: 19 Mar 2023, 17:57 Thank`s a lot! :D
I have created PR #4582 that adds support for the BelFlE Soil moisture sensor. Can you please test using this Actions build (once it's finished, you will need one of the Collection builds, or a MAX build when working with an ESP32 with 16MB Flash), and report your findings here?

NB: I ordered such sensor myself, so have already done some quick tests here.

Edit: Updated to newer Actions build

Re: Moisture Sensor from BeFlE

Posted: 01 Apr 2023, 22:49
by bloop16
WoW, really quick!
Seams to work, i'll gonna test in soil for the next week!
And check how it is working with a second sensor.
Thanks a lot!

Re: Moisture Sensor from BeFlE

Posted: 06 Apr 2023, 21:19
by bloop16
Everything fine, seams to work great!
Shall i test anything else?

Re: Moisture Sensor from BeFlE

Posted: 07 Apr 2023, 19:27
by Ath
Thanks for reporting your results.
I've updated to latest available mega update, but that shouldn't change the working of this plugin, though you are welcome to re-test using the latest build from this Actions run

Re: Moisture Sensor from BeFlE

Posted: 10 Apr 2023, 14:28
by Ath
bloop16 wrote: 06 Apr 2023, 21:19 Everything fine, seams to work great!
Shall i test anything else?
The PR has been merged, and included in the latest release. Documentation is also updated.

Re: Moisture Sensor from BeFlE

Posted: 29 Sep 2023, 15:47
by sptotal
Which release binary I have to flash to get the BeFlE moisture sensor on a Wemos D1 mini?

If I flash the current one ESP_Easy_mega_20230822_normal_ESP8266_4M1M.bin I can not see any device Environment - Soil moisture sensor.

Re: Moisture Sensor from BeFlE

Posted: 29 Sep 2023, 15:50
by TD-er
As mentioned in the link posted by Ton: https://espeasy.readthedocs.io/en/lates ... #p047-page
It should be in all "Collection" builds and also the "Climate" build.

Re: Moisture Sensor from BeFlE

Posted: 29 Sep 2023, 16:12
by sptotal
So the build ESP_Easy_mega_20230822_collection_C_ESP8266_4M1M.bin would be the right one?

It's a little bit difficult if you are new to EspEasy...

Re: Moisture Sensor from BeFlE

Posted: 29 Sep 2023, 16:25
by TD-er
Yep, any "collection" would be OK.
Just have a look at any other plugin you may also need to see if "collection_C" would be the best choice for you.
See: https://espeasy.readthedocs.io/en/lates ... al-plugins

Re: Moisture Sensor from BeFlE

Posted: 30 Sep 2023, 12:09
by sptotal
I how flashed the Collection_C Firmware and configured BeFIE Sensor AS device. SDA: GPIO-4 (D2) and SCL: GPIO-5 (D1) but I get no readings. Voltage of the sensor ist connected correctly to 5V of the Wemos D1 mini.
20230930_120837.jpg
20230930_120837.jpg (2.96 MiB) Viewed 4094 times
What ist going wrong? How can I debug it?

Re: Moisture Sensor from BeFlE

Posted: 30 Sep 2023, 12:46
by TD-er
Can you see it as an I2C device in the I2C scan? (tools page)

Re: Moisture Sensor from BeFlE

Posted: 30 Sep 2023, 14:20
by sptotal
Thank you. I2C scan Said "No devices". I reattached the cable and now it's measuring without resoldering. Values are a bit off, i.e. temperature about +6°C. Moisture weg is around 140 which should be 100 as maximum.

Is it possible to calibrate the Sensor via ESP Easy? I have a few "Trübner SMT50" soil moisture sensors which are really good (precise out of the box) but expensive, too.

Re: Moisture Sensor from BeFlE

Posted: 30 Sep 2023, 14:55
by Ath
sptotal wrote: 30 Sep 2023, 12:09 Voltage of the sensor ist connected correctly to 5V of the Wemos D1 mini.
I'd suggest to connect the sensor to 3.3V, as the GPIO pins of the ESP are not really specified for 5V, though there are some ppl using that all the time, it's still not advised.
sptotal wrote: 30 Sep 2023, 14:20 Values are a bit off, i.e. temperature about +6°C. Moisture weg is around 140 which should be 100 as maximum.

Is it possible to calibrate the Sensor via ESP Easy? I have a few "Trübner SMT50" soil moisture sensors which are really good (precise out of the box) but expensive, too.
The only calibration available in this plugin is the Formula field, next to the Values names. For Temperature it's usually enough to subtract the desired offset, but I don't know how linear the Moisture reading is, so maybe you can get calibration values from another, more accurate, device when measuring close to this sensor? You should then be able to derive a formula from that data.

Re: Moisture Sensor from BeFlE

Posted: 01 Oct 2023, 10:56
by sptotal
3.3V instead of 5V seems to be the solution. Now I have really consistent readings which seems to be true if nothing changes.

Thank you for the fast good support ;)

Re: Moisture Sensor from BeFlE

Posted: 01 Oct 2023, 13:06
by Ath
Great!

Thanks for the feedback :)

Re: Moisture Sensor from BeFlE

Posted: 01 Oct 2023, 21:07
by sptotal
Is it possible to use multiple BeFIE moisture sensors with one Wemos D1 mini? Each Sensor gets it's own I2C adress and all of them connected to the same GPIO pins.

Or is only one sensor of one type supported by the firmware?

Re: Moisture Sensor from BeFlE

Posted: 01 Oct 2023, 21:11
by Ath
Multiple sensors can be configured and work at the same time but I'm not (really) sure if they keep their manually set I2C address, as there doesn't seem to be a 'save' operation available.
That would make restarting the unit after power-loss rather cumbersome.

Re: Moisture Sensor from BeFlE

Posted: 01 Oct 2023, 21:34
by TD-er
Or you could try using an I2C multiplexer.
Then the multiplexer output determines what sensor is addressed.

Re: Moisture Sensor from BeFlE

Posted: 02 Oct 2023, 13:52
by sptotal
I just tried: If you change the I2C address by ESP Easy then this will be a permanent setting for the BeFIE. Running two sensors on one Wemos D1 mini on different addresses the address change will be permanent and survive a reboot (or cut off voltage).

GREAT :D

Re: Moisture Sensor from BeFlE

Posted: 03 Oct 2023, 15:07
by Ath
That's great :)
I'll try to keep that knowledge in memory, but that may be hard :?

The I2C address can be chosen freely between 0x01 and 0x7F for this sensor, but when connecting many (> 5) of them you should remove the 10k pull-up resistors from all but 1 board, to avoid overloading the I2C bus with too low pull-up resistance. When connecting other I2C devices you should avoid the address(es) used there. And your I2C scan (Tools page) may look weird, reporting completely different devices than actually connected :lol:
And of course you are limited to the number of tasks (Devices) on your ESP (max. 12 tasks on ESP8266, max. 32 tasks on ESP32).

Re: Moisture Sensor from BeFlE

Posted: 03 Oct 2023, 20:12
by TD-er
Ath wrote: 03 Oct 2023, 15:07 That's great :)
I'll try to keep that knowledge in memory, but that may be hard :?
[...]
If only we had some way to document specific info about plugins...

Re: Moisture Sensor from BeFlE

Posted: 03 Oct 2023, 21:14
by Ath
TD-er wrote: 03 Oct 2023, 20:12 If only we had some way to document specific info about plugins...
Fixed that... #4837