binary_sensor:# 水浸 雨水 传感器-platform:gpiopin:number:GPIO2inverted:truename:"Water Overflow"# 红外传感器-platform:gpiopin:number:GPIO4name:"cook"device_class:motionsensor:-platform:dhtpin:GPIO5# D1 对应 GPIO5model:DHT11temperature:name:"Temperature"humidity:name:"Humidity"update_interval:60s ...
entity_category: CONFIG #Occupancy sensor binary_sensor: - platform: ld2410 has_target: name: Radar Target id: radar_has_target has_moving_target: name: Radar Moving Target has_still_target: name: Radar Still Target ## Set Up Radar Zones Based On Distance - platform: template name: "Radar...
esphome: name: simple_led_control platform: ESP8266 board: d1_mini wifi: ssid: "YOUR_SSID" password: "YOUR_PASSWORD" # Enable logging logger: # Enable Home Assistant API api: ota: password: "OTA_PASSWORD" # Define a binary sensor for the button binary_sensor: - platform: gpio pin: G...
_servolevel:!lambda'return -85 / 180.0;'#这里舵机角度自己调试好,多少能把门打开on_turn_off:-servo.write:# 关闭时舵机复位id:my_servolevel:!lambda'return 50.0 / 180.0;'# 除了远程控制外,我还接了一个开关,用于手动开门,为了避免误触,我设定开关是长按启动,并设置一个传感器用来接收开关信号binary_s...
esp8266使用esphome接入hass 对于生成配置文件的更改 此处nodemcu泛指集成的开发板,一般十几块钱一块 下方使用的是D1,对应的针脚是GPIO5 esp8266: board: nodemcuv2 binary_sensor: - platform: gpio pin: GPIO
binary_sensor: - platform: gpio pin: number: GPIO3 inverted: true name: "Flame Detecctor" device_class: smokeb. 将火焰传感器添加到仪表板 您可以参考上面的光传感器或温度和湿度传感器。 带有Yaml 文件的其他传感器 通过Seeed Studio Contributor Program 支持,感谢 Mohammed。下面列出了更多支持的传感...
binary_sensor: - platform: gpio pin: number: D2 mode: INPUT_PULLUP id: water name: "water_sensor" 接入ha 打开ha选择配置--集成 点击➕--选择esphome,输入esphome的IP地址即可 然后回到主页面就可以看到灯和雨滴传感器了(默认的statsUI可能卡片方式不同) ...
echo_microphone# Configuration for the binary sensor (Boot Switch)binary_sensor: - platform: gpio pin: number: GPIO2 mode: input: true pullup: true name: Boot Switch internal: true on_press: - voice_assistant.start: - light.turn_off: light0 on_release: - voice_assistant.stop: - light...
# Example config.yaml binary_sensor: - platform: cst816 name: Home Button Checklist: The code change is tested and works locally. Tests have been added to verify that the new code works (under tests/ folder). If user exposed functionality or configuration variables are added/changed: Documenta...
password:"12345678"captive_portal:# Enable logginglogger:# Enable Home Assistant APIapi:# password: "1"ota:password:"123"web_server:port:80switch:-platform:gpiopin:GPIO0name:"书房灯1"id:relay2inverted:Truebinary_sensor:-platform:gpiopin:GPIO2name:"press_switch_lib1"device_class:openingfilters...