Search found 20 matches

by dirkdiggler147
Fri Nov 20, 2020 9:58 am
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

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 t...
by dirkdiggler147
Fri Nov 06, 2020 6:35 pm
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

@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
by dirkdiggler147
Thu Nov 05, 2020 3:51 pm
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

Ok all working, sorry about all the ramblings and spam but it seemed to help work through the problem. I changed the sensor on the ESP to this: sensor: - platform: adc pin: GPIO33 name: "Soil Sensor #1" unit_of_measurement: "%" update_interval: 1s attenuation: 11db filters: [] on_value: then: - mqtt...
by dirkdiggler147
Thu Nov 05, 2020 2:12 pm
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

Needed to add

Code: Select all

attenuation: 11db
to the sensor, voltage changes now when it goes in water. Whoop Whoop :D
by dirkdiggler147
Thu Nov 05, 2020 12:31 pm
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

I think I have found something that I will be able to use to fire the MQTT.Publish: filters: - lambda: |- if (x > 0.7) { #Call MQTT.Publish here passing 0; } else if (x < 0.26) { #Call MQTT.Publish here passing 100; } else { #Call MQTT.Publish here passing (0.7-x) / (0.7-0.26) * 100.0; } The above c...
by dirkdiggler147
Thu Nov 05, 2020 12:32 am
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

I think I got the ESP to read the value from the soil sensor, does this look right? sensor: - platform: adc pin: GPIO32 name: "Soil Sensor #1" update_interval: 30s filters: [] I added that using ESPHome and I can see the entity in HA and it has a value. I think I now might need to use mqtt.publish t...
by dirkdiggler147
Wed Nov 04, 2020 5:55 pm
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

@LEDG I have everything connected and ESPhome and MQTT installed on HA.

I have previously played around with the ESP32 so I can now update over air.

Couple of questions though, how do I add the Pub/Sub client to the ESP32 and once that is running how do I analogueread()

Thanks!
by dirkdiggler147
Tue Oct 20, 2020 9:28 pm
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

Re: SEN0193 + ESP32

Thanks @LEDG parts arriving tomorrow, will give it a go!
by dirkdiggler147
Mon Oct 19, 2020 11:42 am
Forum: Home Assistant Gardening
Topic: SEN0193 + ESP32
Replies: 13
Views: 2198

SEN0193 + ESP32

I am trying to setup a soil sensor (SEN0193) and have the information relayed to HA with the idea being that if the soil if not moist enough to fire an event to activate a pump. I had imagined the setup something like: SEN0193>Arduino>ESP32>HA I was planning on using LEDG method of MQTT for the comm...
by dirkdiggler147
Fri Sep 11, 2020 11:33 am
Forum: General Control & Automation
Topic: EC fan control
Replies: 1
Views: 1341

EC fan control

I would like to be able to control a EC fan based on outputs of a temp and humidity sensor. I really don't know much about electrics but would love to give this a go :) The fan that I currently have uses a 0-10V signal if that makes any difference? I had a quick search but there does not seem to be ...