substitutions: device_name: "sonoff-couloir" friendly_name: "sonoff-couloir" project_name: "sonoff.couloir" project_version: "1.0" adresse_ip: 10.0.2.59 packages: ## include wifi networks, manual_ip, ap wifi: !include common/wifi.yaml #include logger with syslog, api, ota, webserver, captive portal device_base: !include common/device_base.yaml esphome: name: "${device_name}" project: name: "${project_name}" version: "${project_version}" esp8266: board: esp01_1m light: - platform: binary name: "Sonoff Couloir" output: light_output id: light_couloir restore_mode: RESTORE_DEFAULT_ON output: - id: light_output platform: gpio pin: GPIO12 binary_sensor: #include status - <<: !include common/generic_binarysensor.yaml - platform: gpio pin: number: GPIO0 mode: INPUT_PULLUP inverted: true name: "Sonoff couloir Button" on_press: - light.toggle: light_couloir sensor: #include uptime et wifisignal - <<: !include common/generic_sensor.yaml switch: #include restart - <<: !include common/generic_switch.yaml status_led: pin: number: GPIO13 inverted: yes text_sensor: #include wifi info : ipaddress ssid - <<: !include common/generic_textsensor.yaml