Created
March 12, 2019 19:53
-
-
Save CoMPaTech/0462c3dd48d5c69e5358930ef97e74f3 to your computer and use it in GitHub Desktop.
ESPHome.io Sonoff POW R2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: sonoffv | |
platform: ESP8266 | |
board: esp01_1m | |
wifi: | |
ssid: 'mywifi' | |
password: 'mysecret' | |
manual_ip: | |
static_ip: 192.168.1.20 | |
gateway: 192.168.1.1 | |
subnet: 255.255.255.0 | |
mqtt: | |
broker: '192.168.2.3' | |
username: 'myuser' | |
password: 'mypass' | |
# Enable logging | |
logger: | |
baud_rate: 0 | |
# Enable Home Assistant API | |
api: | |
password: 'verysecret' | |
ota: | |
password: 'verysecret' | |
uart: | |
rx_pin: RX | |
baud_rate: 4800 | |
sensor: | |
- platform: cse7766 | |
current: | |
name: "SO R2 Current" | |
voltage: | |
name: "SO R2 Voltage" | |
power: | |
name: "SO R2 Power" | |
binary_sensor: | |
- platform: gpio | |
pin: | |
number: GPIO0 | |
mode: INPUT_PULLUP | |
inverted: True | |
name: "SO R2 Button" | |
on_press: | |
- switch.toggle: relay | |
switch: | |
- platform: gpio | |
name: "SO R2 Relay" | |
pin: GPIO12 | |
id: relay | |
output: | |
- platform: esp8266_pwm | |
id: blue_led | |
pin: GPIO13 | |
inverted: True | |
light: | |
- platform: monochromatic | |
name: "SO R2 Blue LED" | |
output: blue_led |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment