#Hey just wondering if anyone could throw
1 messages · Page 1 of 1 (latest)
Wild guess: the discovery message from the undiscovered device is wrong at some point
It looks identical in MQTT explorer, short a different name/mac
If the unique identifyer is identical, it will not create another device
It isn't from what I can tell
esphome is appending the end of the MAC address onto it, and it uses a different name
name: loungeroomtemps
comment: Lounge room Temperature sensor
wifi:
networks:
- ssid: removed
password: removed
bssid: removed
channel: 6
fast_connect: true
esp32:
board: seeed_xiao_esp32c3
ota:
- platform: esphome
spi:
clk_pin: GPIO8
mosi_pin: GPIO10
miso_pin: GPIO9
mqtt:
broker: gone
username: mqttb
password: gone
birth_message:
topic: myavailability/topic
payload: online
will_message:
topic: myavailability/topic
payload: online
deep_sleep:
run_duration: 1000ms
sleep_duration: 300s
logger:
level: DEBUG
sensor:
- platform: bme280_spi
temperature:
name: "Temperature"
id: loungeroomtemps_temperature
oversampling: 16x
on_value:
- mqtt.publish:
topic: "loungeroomtemps/temperature"
payload: !lambda |-
return to_string(id(loungeroomtemps_temperature).state);
pressure:
name: "Pressure"
id: loungeroomtempssss_pressure
oversampling: 16x
on_value:
- mqtt.publish:
topic: "loungeroomtemps/pressure"
payload: !lambda |-
return to_string(id(loungeroomtemps_pressure).state);
humidity:
name: "Humidity"
id: loungeroomtemps_humidity
oversampling: 16x
on_value:
- mqtt.publish:
topic: "loungeroomtemps/humidity"
payload: !lambda |-
return to_string(id(loungeroomtemps_humidity).state);
cs_pin: GPIO20```
That config is broken
esphome:
name: livingroomtemp
comment: Living room Temperature sensor
area: Living Room
wifi:
networks:
- ssid: removed
password: removed
bssid: removed
channel: 6
fast_connect: true
esp32:
board: seeed_xiao_esp32c3
ota:
- platform: esphome
spi:
clk_pin: GPIO8
mosi_pin: GPIO10
miso_pin: GPIO9
mqtt:
broker: removed
username: mqttb
password: removed
birth_message:
topic: myavailability/topic
payload: online
will_message:
topic: myavailability/topic
payload: online
deep_sleep:
run_duration: 500ms
sleep_duration: 300s
logger:
level: DEBUG
sensor:
- platform: bme280_spi
temperature:
name: "Temperature"
id: livingroomtemp_temperature
oversampling: 16x
on_value:
- mqtt.publish:
topic: "livingroomtemp/temperature"
payload: !lambda |-
return to_string(id(livingroomtemp_temperature).state);
pressure:
name: "Pressure"
id: livingroomtemp_pressure
oversampling: 16x
on_value:
- mqtt.publish:
topic: "livingroomtemp/pressure"
payload: !lambda |-
return to_string(id(livingroomtemp_pressure).state);
humidity:
name: "Humidity"
id: livingroomtemp_humidity
oversampling: 16x
on_value:
- mqtt.publish:
topic: "livingroomtemp/humidity"
payload: !lambda |-
return to_string(id(livingroomtemp_humidity).state);
cs_pin: GPIO20```
That works
Damn I can't add images
I was going to attach the MQTT explorer images
{
"dev_cla": "temperature",
"unit_of_meas": "°C",
"stat_cla": "measurement",
"name": "Temperature",
"stat_t": "livingroomtemp/sensor/temperature/state",
"avty_t": "myavailability/topic",
"pl_not_avail": "online",
"uniq_id": "ESPsensortemperature",
"dev": {
"ids": "d4f98d0462b0",
"name": "livingroomtemp",
"sw": "esphome v2024.6.1 Jul 14 2024, 14:32:11",
"mdl": "seeed_xiao_esp32c3",
"mf": "espressif",
"sa": "Living Room"
}
}```
"dev_cla": "temperature",
"unit_of_meas": "°C",
"stat_cla": "measurement",
"name": "Temperature",
"stat_t": "loungeroomtemps/sensor/temperature/state",
"avty_t": "myavailability/topic",
"pl_not_avail": "online",
"uniq_id": "ESPsensortemperature",
"dev": {
"ids": "d4f98d045314",
"name": "loungeroomtemps",
"sw": "esphome v2024.6.1 Jul 14 2024, 20:02:15",
"mdl": "seeed_xiao_esp32c3",
"mf": "espressif",
"sa": ""
}
}```
They both publish basically identically short the name and ID
It says nothing about the HA discovery message.
By default the discovery topic is homeassistant
Those are under the homeassistant topic
But there is no discovery subtopic
I've got 9 other devices that showed up by themselves with similar-ish configs
Do I need to add something to the config to tell it to publish to that
The ESPHome Discord might be able to help fixing your ESP config