Move to _data along with some misc clean-up.
This commit is contained in:
83
_data/pj_3_duct_fan_pwr.yaml
Normal file
83
_data/pj_3_duct_fan_pwr.yaml
Normal file
@@ -0,0 +1,83 @@
|
||||
substitutions:
|
||||
device_name: "pj_3_duct_fan_pwr"
|
||||
friendly_name: "Prj 3 Duct Fan Pwr"
|
||||
|
||||
esphome:
|
||||
name: pj_3_duct_fan_pwr
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
|
||||
wifi:
|
||||
ssid: "kungle-oss"
|
||||
password: "hcfU8@gG&8Hm"
|
||||
fast_connect: true
|
||||
|
||||
manual_ip:
|
||||
static_ip: 192.168.35.240
|
||||
gateway: 192.168.35.1
|
||||
subnet: 255.255.255.0
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "Pj 3 Duct Fan Pwr"
|
||||
password: "ImgAxoEGSc90"
|
||||
|
||||
captive_portal:
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO4
|
||||
mode: INPUT_PULLUP
|
||||
inverted: True
|
||||
name: "${friendly_name} Button"
|
||||
id: "${device_name}_button"
|
||||
on_press:
|
||||
- switch.toggle: "${device_name}_relay"
|
||||
- platform: status
|
||||
name: "${friendly_name} Status"
|
||||
id: "${device_name}_status"
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "${friendly_name} Relay"
|
||||
id: "${device_name}_relay"
|
||||
pin: GPIO14
|
||||
on_turn_on:
|
||||
- output.turn_on: led
|
||||
on_turn_off:
|
||||
- output.turn_off: led
|
||||
|
||||
status_led:
|
||||
pin:
|
||||
number: GPIO12
|
||||
inverted: yes
|
||||
|
||||
output:
|
||||
- platform: gpio
|
||||
pin: GPIO13
|
||||
inverted: true
|
||||
id: led
|
||||
|
||||
sensor:
|
||||
- platform: wifi_signal
|
||||
name: "${friendly_name} WiFi signal"
|
||||
id: "${device_name}_wifi_signal"
|
||||
update_interval: 60s
|
||||
- platform: uptime
|
||||
name: "${friendly_name} Uptime"
|
||||
id: "${device_name}_uptime"
|
||||
update_interval: 60s
|
||||
|
||||
text_sensor:
|
||||
- platform: version
|
||||
name: "${friendly_name} ESPHome Version"
|
||||
id: "${device_name}_esphome_version"
|
||||
Reference in New Issue
Block a user