Working on Sonoff S31
This commit is contained in:
@@ -9,3 +9,4 @@ bedroom_tkm_lily2 192.168.87.47 esp32dev
|
|||||||
bedroom_tkm_lily1 192.168.87.48 esp32dev ESP32 LilyGo T7 V1.5, with USB and battery
|
bedroom_tkm_lily1 192.168.87.48 esp32dev ESP32 LilyGo T7 V1.5, with USB and battery
|
||||||
lr_bright_87_49 192.168.87.49 ESP32/wemos_d1_mini32
|
lr_bright_87_49 192.168.87.49 ESP32/wemos_d1_mini32
|
||||||
rf_bridge_87_60 192.168.87.60 esp01_1m Sonoff RF bridge
|
rf_bridge_87_60 192.168.87.60 esp01_1m Sonoff RF bridge
|
||||||
|
sonoff_s31a 192.168.87.71 esp01_1m
|
||||||
69
sonoff_s31A.yaml
Normal file
69
sonoff_s31A.yaml
Normal file
@@ -0,0 +1,69 @@
|
|||||||
|
substitutions:
|
||||||
|
device_name: sonoff_s31a
|
||||||
|
device_ip: 192.168.87.71
|
||||||
|
|
||||||
|
esphome:
|
||||||
|
name: ${device_name}
|
||||||
|
platform: ESP8266
|
||||||
|
board: esp01_1m
|
||||||
|
|
||||||
|
wifi:
|
||||||
|
ssid: "Meneely"
|
||||||
|
password: "punxsutawney1"
|
||||||
|
manual_ip:
|
||||||
|
static_ip: ${device_ip}
|
||||||
|
gateway: 192.168.86.1
|
||||||
|
subnet: 255.255.255.0
|
||||||
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
||||||
|
ap:
|
||||||
|
ssid: "ESPHOME"
|
||||||
|
password: "12345678"
|
||||||
|
|
||||||
|
logger:
|
||||||
|
baud_rate: 0 # (UART logging interferes with cse7766)
|
||||||
|
|
||||||
|
api:
|
||||||
|
# reboot_timeout: 15min
|
||||||
|
|
||||||
|
ota:
|
||||||
|
|
||||||
|
# Device Specific Config
|
||||||
|
|
||||||
|
uart:
|
||||||
|
rx_pin: RX
|
||||||
|
baud_rate: 4800
|
||||||
|
|
||||||
|
binary_sensor:
|
||||||
|
- platform: gpio
|
||||||
|
pin:
|
||||||
|
number: GPIO0
|
||||||
|
mode: INPUT_PULLUP
|
||||||
|
inverted: True
|
||||||
|
name: ${device_name}_button
|
||||||
|
on_press:
|
||||||
|
- switch.toggle: relay
|
||||||
|
- platform: status
|
||||||
|
name: ${device_name}_status
|
||||||
|
|
||||||
|
sensor:
|
||||||
|
- platform: wifi_signal
|
||||||
|
name: ${device_name}_wifi
|
||||||
|
update_interval: 60s
|
||||||
|
- platform: cse7766
|
||||||
|
current:
|
||||||
|
name: ${device_name}_current
|
||||||
|
accuracy_decimals: 1
|
||||||
|
voltage:
|
||||||
|
name: ${device_name}_voltage
|
||||||
|
accuracy_decimals: 1
|
||||||
|
power:
|
||||||
|
name: ${device_name}_power
|
||||||
|
accuracy_decimals: 1
|
||||||
|
switch:
|
||||||
|
- platform: gpio
|
||||||
|
name: ${device_name}_relay
|
||||||
|
pin: GPIO12
|
||||||
|
id: relay
|
||||||
|
|
||||||
|
status_led:
|
||||||
|
pin: GPIO13
|
||||||
Reference in New Issue
Block a user