ESPHome Package experiment
This commit is contained in:
parent
bd413c8785
commit
fd4a22b3ae
1 changed files with 74 additions and 0 deletions
74
esphome/device_packages/sonoff-tx-series.yaml
Normal file
74
esphome/device_packages/sonoff-tx-series.yaml
Normal file
|
|
@ -0,0 +1,74 @@
|
|||
esphome:
|
||||
name: ${devicename}
|
||||
|
||||
esp8266:
|
||||
board: esp01_1m
|
||||
|
||||
wifi:
|
||||
ssid: ${ssid}
|
||||
password: ${wifipass}
|
||||
fast_connect: on
|
||||
domain: .phiax.nl
|
||||
min_auth_mode: WPA2
|
||||
ap:
|
||||
ssid: "${friendly_devicename} Hotspot"
|
||||
password: ${hotspotpass}
|
||||
|
||||
captive_portal:
|
||||
|
||||
api:
|
||||
encryption:
|
||||
key: ${apikey}
|
||||
on_client_connected:
|
||||
then:
|
||||
- light.turn_on: blue_led_light
|
||||
on_client_disconnected:
|
||||
then:
|
||||
- light.turn_off: blue_led_light
|
||||
|
||||
ota:
|
||||
- platform: esphome
|
||||
password: ${otapass}
|
||||
|
||||
web_server:
|
||||
port: 80
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO0
|
||||
mode: INPUT_PULLUP
|
||||
inverted: True
|
||||
name: "${friendly_devicename} Touchpad"
|
||||
on_press:
|
||||
- light.toggle: light_switch
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: "${devicename} WiFi Signal"
|
||||
update_interval: 300s
|
||||
|
||||
output:
|
||||
- platform: esp8266_pwm
|
||||
id: blue_led
|
||||
pin: GPIO13
|
||||
inverted: True
|
||||
- platform: gpio
|
||||
pin: GPIO12
|
||||
id: relay
|
||||
|
||||
light:
|
||||
- platform: monochromatic
|
||||
name: "${friendly_devicename} WiFi LED"
|
||||
output: blue_led
|
||||
id: blue_led_light
|
||||
- platform: binary
|
||||
name: "${friendly_devicename} Licht"
|
||||
output: relay
|
||||
id: light_switch
|
||||
|
||||
switch:
|
||||
- platform: restart
|
||||
name: "${friendly_devicename} Restart"
|
||||
|
||||
logger:
|
||||
Loading…
Add table
Add a link
Reference in a new issue