#Issues with esp32 publishing values of sensors to homeassistant via mqtt.

1 messages · Page 1 of 1 (latest)

solemn condor
#

Quick question regarding mqtt:
Im using an esp32 with a homeassistant mqtt library, resulting in the following data discovered via mqtt explorer:

#

My problem is, its showing oy Sensor1-5 instead of creating entities for all values in SoilSensors.

#

Sensors 1-8 are identical in their setup.

spice silo
#

None of that shows your discovery info that HA is using to create the sensors/entities

#

actually, I see the issue

#

you aren't putting them in the right topic

#

see how ESP_Irrigantion has sensor below it?

#

you're missing that between SoilSensors and the unique_id

#

@solemn condor ^

#

and you don't have a config under Sensor6

#

which is required for discovery

#

that sends the discovery info to HA so that HA knows how to create the sensors

#

TLDR: It's only disovering things that have proper discovery, which is ESP_Irrigation sensors 1 though 5.

solemn condor
#

Okay, thanks!

solemn condor
#

Looks like it might be a lib issue....

spice silo
#

How are you creating the discovery on those other devices?

#

(that work)

solemn condor
#

Same as on the other 3....

spice silo
#

Yeah but through what method??

#

Describe the process please