本帖最后由 sorrypqa 于 2026-9-4 08:17 编辑
感觉红外距离可以弄3档,把499换为330,把100换为150,打开GPIO12 - - 近档,打开GPIO32 - - 中档,同时打开GPIO12+GPIO32 - - 远档
ESPHome的很多官方组件真是坑,像官方的homeassistant组件要填写的都是HA里的实体ID,竟然还不支持像下面那样模板化,真是服了!
sensor:
- platform: homeassistant
id: home_page_weather_temperature_src
entity_id: !lambda 'return id(weather_temperature_gl);'
- platform: homeassistant
id: remote_temperature
entity_id: !lambda 'return id(remote_temperature_gl);'
- platform: homeassistant
id: remote_humidity
entity_id: !lambda 'return id(remote_humidity_gl);'
text_sensor:
- platform: homeassistant
id: home_page_weather_src
entity_id: !lambda 'return id(weather_gl);'
胡乱修改了一个,支持不重刷固件修改实体ID,设备重启后生效
homeassistant_enhance.rar
(10.66 KB, 下载次数: 0, 售价: 10 金钱)
|