Modularize and move all to kungle-oss.
This commit is contained in:
@@ -3,76 +3,8 @@ substitutions:
|
||||
dn: tv1_cpu_pwr
|
||||
friendly_name: 1st Floor TV Computer Power
|
||||
|
||||
esphome:
|
||||
name: "${device_name}"
|
||||
platform: ESP8266
|
||||
board: esp01_1m
|
||||
<<: !include .common.yaml
|
||||
<<: !include .esp8266.yaml
|
||||
<<: !include .wifi-oss.yaml
|
||||
|
||||
wifi:
|
||||
ssid: !secret wifi_oss_ssid
|
||||
password: !secret wifi_oss_pw
|
||||
use_address: "${device_name}"
|
||||
|
||||
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||
ap:
|
||||
ssid: "${device_name}-fallback"
|
||||
password: !secret wifi_fallback_pw
|
||||
|
||||
# Enable logging
|
||||
logger:
|
||||
|
||||
# Enable Home Assistant API
|
||||
api:
|
||||
|
||||
ota:
|
||||
# password: !secret gosund_1_ota
|
||||
|
||||
binary_sensor:
|
||||
- platform: gpio
|
||||
pin:
|
||||
number: GPIO4
|
||||
mode: INPUT_PULLUP
|
||||
inverted: True
|
||||
name: "${friendly_name} Button"
|
||||
id: "${dn}_button"
|
||||
on_press:
|
||||
- switch.toggle: "${dn}_relay"
|
||||
- platform: status
|
||||
name: "${friendly_name} Status"
|
||||
id: "${dn}_status"
|
||||
|
||||
switch:
|
||||
- platform: gpio
|
||||
name: "${friendly_name} Relay"
|
||||
id: "${dn}_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: "${dn}_wifi_signal"
|
||||
update_interval: 60s
|
||||
- platform: uptime
|
||||
name: "${friendly_name} Uptime"
|
||||
id: "${dn}_uptime"
|
||||
update_interval: 60s
|
||||
|
||||
text_sensor:
|
||||
- platform: version
|
||||
name: "${friendly_name} ESPHome Version"
|
||||
id: "${dn}_esphome_version"
|
||||
<<: !include .gosund-wp3.yaml
|
||||
Reference in New Issue
Block a user