Page 1 of 2

ESP issues

Posted: Fri Aug 13, 2021 9:39 pm
by vdelgatto
Hello, i just got everything wired up everything is almost up and running, im having problems figuring out the esp config for the control box, i got it online but when i add the code from the repo i get errors on the majority of the lines, im new to this but just need a little help. i got the other esp fort the tent up and running and reading out properly on my ha dashboard. any help is appreciated thank you!

EDIT
downloaded libraries onewire, dallastemperature, wifi, pubsubclient, wire and adafruit sensor library and adafruitsensor bme280 library.... i reload a new instance of IDE and everything is orange (i assume that means it found the newly installed libraries??) except for the two adafriuit sensor #include lines. i went ahead and sent it over to the esp i figured i could test other functions but still nothing.

ive entered my ssid, password and i entered my HA server IP in the mqtt_server line is that correct?

i entered my mqtt username and password in the client.connect line below "attemting mqtt connection... what do i need to enter in the ID field?

what else needs to be changed on my end for it to work properly

Re: ESP issues

Posted: Sun Aug 15, 2021 2:28 pm
by LEDG
You may need to install some libraries in the Arduino software.

Re: ESP issues

Posted: Sun Aug 15, 2021 3:40 pm
by vdelgatto
LEDG wrote:
Sun Aug 15, 2021 2:28 pm
You may need to install some libraries in the Arduino software.
so ive installed the libraries, ive uploaded the code using the arduino software. how do i tie it into HA now?

Re: ESP issues

Posted: Sun Aug 15, 2021 3:47 pm
by vdelgatto
LEDG wrote:
Sun Aug 15, 2021 2:28 pm
You may need to install some libraries in the Arduino software.
i believe ive set up mosquito broker properly, im a little lost honestly. id even be willing to compensate you for your time, maybe set up a teamview session if you have a chance to briefly look through what i have going on

Re: ESP issues

Posted: Mon Aug 16, 2021 8:07 pm
by vdelgatto
LEDG wrote:
Sun Aug 15, 2021 2:28 pm
You may need to install some libraries in the Arduino software.
EDIT
downloaded libraries onewire, dallastemperature, wifi, pubsubclient, wire and adafruit sensor library and adafruitsensor bme280 library.... i reload a new instance of IDE and everything is orange (i assume that means it found the newly installed libraries??) except for the two adafriuit sensor #include lines. i went ahead and sent it over to the esp i figured i could test other functions but still nothing.

ive entered my ssid, password and i entered my HA server IP in the mqtt_server line is that correct?

i entered my mqtt username and password in the client.connect line below "attemting mqtt connection... what do i need to enter in the ID field?

what else needs to be changed on my end for it to work properly

Re: ESP issues

Posted: Tue Aug 17, 2021 1:42 pm
by LEDG
vdelgatto wrote:
Mon Aug 16, 2021 8:07 pm
LEDG wrote:
Sun Aug 15, 2021 2:28 pm
You may need to install some libraries in the Arduino software.
EDIT
downloaded libraries onewire, dallastemperature, wifi, pubsubclient, wire and adafruit sensor library and adafruitsensor bme280 library.... i reload a new instance of IDE and everything is orange (i assume that means it found the newly installed libraries??) except for the two adafriuit sensor #include lines. i went ahead and sent it over to the esp i figured i could test other functions but still nothing.

ive entered my ssid, password and i entered my HA server IP in the mqtt_server line is that correct?

i entered my mqtt username and password in the client.connect line below "attemting mqtt connection... what do i need to enter in the ID field?

what else needs to be changed on my end for it to work properly
The ID is something unique you assign to that ESP32. For example, mine is just "ControlBoxESP32". Are you able to connect to your MQTT broker using your username/password with a program like MQTT Box?

Re: ESP issues

Posted: Tue Aug 17, 2021 2:50 pm
by vdelgatto
LEDG wrote:
Tue Aug 17, 2021 1:42 pm
vdelgatto wrote:
Mon Aug 16, 2021 8:07 pm
LEDG wrote:
Sun Aug 15, 2021 2:28 pm
You may need to install some libraries in the Arduino software.
EDIT
downloaded libraries onewire, dallastemperature, wifi, pubsubclient, wire and adafruit sensor library and adafruitsensor bme280 library.... i reload a new instance of IDE and everything is orange (i assume that means it found the newly installed libraries??) except for the two adafriuit sensor #include lines. i went ahead and sent it over to the esp i figured i could test other functions but still nothing.

ive entered my ssid, password and i entered my HA server IP in the mqtt_server line is that correct?

i entered my mqtt username and password in the client.connect line below "attemting mqtt connection... what do i need to enter in the ID field?

what else needs to be changed on my end for it to work properly
The ID is something unique you assign to that ESP32. For example, mine is just "ControlBoxESP32". Are you able to connect to your MQTT broker using your username/password with a program like MQTT Box?
gotcha i actually just got it figured out. i accidentally had added a space after my ssid SMH lol, im able to see the temp reading from the control box, i can trigger the relays on and off inside the box but when i go to turn on the dosing pumps the slider button in HA turns back to the off position after about a second and nothing happens with the dosing pumps

Re: ESP issues

Posted: Sun Aug 22, 2021 3:14 pm
by Anono
Have u guys looked at esphome in ha make esp so easy I was fighting with higrow in ha and esphome made is a simple affair

Re: ESP issues

Posted: Sun Aug 22, 2021 10:56 pm
by LEDG
ESPHome is pretty great. OP and I managed to get his control issues all worked out.

Re: ESP issues

Posted: Wed Aug 25, 2021 3:32 pm
by cnselpaso
Hi VDELGATTO,

I am new to this group also and I also built the Automation System you did.
I am impressed with the layout of your components in box and the way you setup the Peristaltic Pumps is great.
Was able to get ESP32 communicating with the Mega after some troubleshooting.
Did you use the HX711 for weight measurement for water tank? If so were you able to calibrate it?

Thanks,

CNSELPASO