Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement