1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-02 03:12:20 +01:00

Null topic_prefix disables MQTT publishing/subscription unless topic is explicitly configured (#5644)

This commit is contained in:
kahrendt
2023-11-05 20:19:03 -05:00
committed by GitHub
parent e0cee472c3
commit ff8b904097
3 changed files with 77 additions and 43 deletions

View File

@@ -24,6 +24,13 @@ ethernet:
network:
enable_ipv6: true
mqtt:
broker: test.mosquitto.org
port: 1883
discovery: true
discovery_prefix: homeassistant
topic_prefix:
api:
i2c:
@@ -32,15 +39,15 @@ i2c:
scan: false
spi:
- id: spi_id_1
clk_pin: GPIO21
mosi_pin: GPIO22
miso_pin: GPIO23
interface: hardware
- id: spi_id_2
clk_pin: GPIO32
mosi_pin: GPIO33
interface: hardware
- id: spi_id_1
clk_pin: GPIO21
mosi_pin: GPIO22
miso_pin: GPIO23
interface: hardware
- id: spi_id_2
clk_pin: GPIO32
mosi_pin: GPIO33
interface: hardware
uart:
- id: uart115200
@@ -281,6 +288,7 @@ sensor:
id: a01nyub_sensor
name: "a01nyub Distance"
uart_id: uart9600
state_topic: "esphome/sensor/a01nyub_sensor/state"
#
# platform sensor.apds9960 requires component apds9960
@@ -764,7 +772,6 @@ speaker:
i2s_dout_pin: GPIO25
mode: mono
voice_assistant:
microphone: mic_id_external
speaker: speaker_id