Home Assistant Git Exporter
This commit is contained in:
56
esphome/sonoff-escalier.yaml
Normal file
56
esphome/sonoff-escalier.yaml
Normal file
@@ -0,0 +1,56 @@
|
||||
substitutions:
|
||||
device_name: "sonoff-escalier"
|
||||
friendly_name: "sonoff-escalier"
|
||||
project_name: "sonoff.escalier"
|
||||
project_version: "1.0"
|
||||
adresse_ip: 10.0.2.58
|
||||
|
||||
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
|
||||
|
||||
binary_sensor:
|
||||
#include status
|
||||
- <<: !include common/generic_binarysensor.yaml
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO0
|
||||
mode: INPUT_PULLUP
|
||||
inverted: true
|
||||
name: "Sonoff Basic Button"
|
||||
on_press:
|
||||
- switch.toggle: relay
|
||||
|
||||
sensor:
|
||||
#include uptime et wifisignal
|
||||
- <<: !include common/generic_sensor.yaml
|
||||
|
||||
switch:
|
||||
#include restart
|
||||
- <<: !include common/generic_switch.yaml
|
||||
- platform: gpio
|
||||
name: "Sonoff Basic Relay escalier"
|
||||
pin: GPIO12
|
||||
id: relay
|
||||
restore_mode: RESTORE_DEFAULT_ON
|
||||
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO13
|
||||
inverted: yes
|
||||
|
||||
text_sensor:
|
||||
#include wifi info : ipaddress ssid
|
||||
- <<: !include common/generic_textsensor.yaml
|
||||
Reference in New Issue
Block a user