SEN0193 + ESP32

Home Assistant automation projects, questions, etc. go here.
dirkdiggler147
LED-Curious
LED-Curious
Reactions:
Posts: 20
Joined: Fri Jun 12, 2020 9:52 pm

@LEDG I could be mistaken but I don't think I needed the MQTT stuff at all. I just had a lambda function in the filters section and the values showed up in the sensor from HA, I didn't need to publish anything to MQTT
dirkdiggler147
LED-Curious
LED-Curious
Reactions:
Posts: 20
Joined: Fri Jun 12, 2020 9:52 pm

@LEDG

Yeah I think I got a bit confused and thought ESP32 needed MQTT to talk with HA.

I also missed the bit about using arduino IDE to put the pub/sub code on the ESP to enable the MQTT comms.

So I guess all that is needed now is when to use each method. Maybe using filters and ESPHome for simple tasks and MQTT for more complicated things (e.g. applying logic before sending msgs)?
User avatar
LEDG
Site Admin
Reactions:
Posts: 1599
Joined: Sun Jun 04, 2017 8:15 pm

@dirkdiggler147

Yeah that’s pretty much the rule I apply to it. I go ESPhome whenever possible for the simple stuff and just write the code in Arduino if I need to manipulate things or if it’s more complex.

Now that I have a little bit of experience writing Arduino code, I’m really enjoying it.
Want to Support the Site?

Use this Amazon referral link and any purchase you make within 24 hrs will earn LEDgardener a commission at no cost to you!
Baylos
LED-Curious
LED-Curious
Reactions:
Posts: 22
Joined: Sat Nov 07, 2020 11:49 am

Hi,

I like sensors where the electronics are encapsulated. I remember to this here
https://pino-tech.eu/product/soilwatch-10/

It is expensive, but looks reliable.


Greetings
Post Reply