#I have no idea why i m only reciving the
1 messages · Page 1 of 1 (latest)
What i see in the serial monitor
{
"name": "Bresser 1 Temperature",
"stat_t": "homeassistant/sensor/bresser_sensor_1/state",
"unit_of_meas": "°C",
"device_class": "temperature",
"val_tpl": "{{ value_json.temperature|default(0) }}",
"device": {
"manufacturer": "Me",
"model": "model",
"name": "bresser",
"sw_version": "1.0"
}
}
What i see in mqtt
{
"name": "Bresser 1 Humidity",
"stat_t": "homeassistant/sensor/bresser_sensor_1/state",
"unit_of_meas": "%",
"device_class": "humidity",
"val_tpl": "{{ value_json.humidity|default(0) }}",
"device": {
"manufacturer": "Me",
"mode
And we have no idea what's your arduino code.
Serial.println(data);
if (mqttClient.connected()) {
mqttClient.beginMessage(topic, data.length(), false, 0, false);
mqttClient.print(data);
mqttClient.endMessage();
Serial.println("Message published");
} else {
Serial.println("Publish failed, not connected to MQTT");
}
What's the best way to provide it?
// use backtick operators
Serial.println("to format your code");
I'm not familiar with the lib… u pass false, 0, false for bool retain, uint8_t qos, bool dup args -> what do they do? maybe u pass in wrong values?
I got it
it was the scound param
default length is to small
Topic: homeassistant/sensor/bresser_sensor_1/temperature/configQoS: 0
{"name":"Bresser 1 Temperature","stat_t":"homeassistant/sensor/bresser_sensor_1/state","unit_of_meas":"°C","device_class":"temperature","val_tpl":"{{ temperature|default(0) }}","device":{"identifiers":["bresser"],"manufacturer":"Me","model":"model","name":"bresser","sw_version":"1.0"}}
Topic: homeassistant/sensor/bresser_sensor_1/stateQoS: 0
{"id":1146327701,"type":1,"battery":"OK ","temperature":21.1,"humidity":56,"windgust":2.3,"windavg":2.1,"winddirection":126,"rssi":-101.4}
Do have an idea what is wrong or missing that mqtt discovery is still not working
i kinda know in theory what mqtt is, i don't know what mqtt discovery is 😉