本帖最后由 xyz5378 于 2023-11-7 18:42 编辑
esphome:
name: "zhuwoyuyin"
esp8266:
board: d1_mini
# framework:
# version: 2.7.4
# Enable logging
logger:
logs:
component: ERROR
# Enable Home Assistant API
api:
ota:
password: "12345678"
wifi:
ssid: test
password: aa123456
mqtt:
broker: 192.168.10.249
username: admin
password: public
#I²C Bus
i2c:
sda: D6
scl: D5
scan: True
sensor:
- platform: bh1750
name: "zhuwoguangzhao"
address: 0x23
update_interval: 1s
- platform: sht4x
temperature:
name: "zhuwowendu"
humidity:
name: "zhuwoshidu"
address: 0x44
update_interval: 20s
binary_sensor:
- platform: gpio
pin:
number: D1
name: "zhuwoyuyinhongwai"
device_class: occupancy
id: zhuwoyuyinhongwai
filters:
- delayed_on_off: 100ms
uart:
id: uart_bus
rx_pin: 3
tx_pin: 1
baud_rate: 9600
debug:
direction: BOTH
dummy_receiver: true
after:
delimiter: "\n"
sequence:
- lambda: UARTDebug::log_string(direction, bytes);
我的这个离线语音顺便加了红外光照温湿度,最近因为TASMOTA光照没有小数点后的数字换了ESPHOME,你可以参考下,把I2C和sensor删除, 其他的修改成你自己的配置就可以
mqtt监听信息
设备名称/debug
我的是zhuwoyuyin那监听的就是:
zhuwoyuyin/debug
|