Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphomeyaml:
- name: sonoff4chsalon
- platform: ESP8266
- board: esp01_1m
- board_flash_mode: dout
- # arduino_version: 2.3.0
- esphomelib_version:
- repository: https://github.com/OttoWinter/esphomelib.git
- tag: v1.8.1
- wifi:
- ssid: 'xxx'
- password: 'xxx'
- # Optional manual IP
- manual_ip:
- static_ip: 192.168.125.17
- gateway: 192.168.125.254
- subnet: 255.255.255.0
- mqtt:
- broker: '192.168.125.28'
- username: 'xxx'
- password: 'xxx'
- # Example configuration entry
- debug:
- # Logger must be at least debug (default)
- logger:
- ota:
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO0
- mode: INPUT_PULLUP
- inverted: True
- name: "Sonoff 4CH Button 1"
- - platform: gpio
- pin:
- number: GPIO9
- mode: INPUT_PULLUP
- inverted: True
- name: "Sonoff 4CH Button 2"
- - platform: gpio
- pin:
- number: GPIO10
- mode: INPUT_PULLUP
- inverted: True
- name: "Sonoff 4CH Button 3"
- - platform: gpio
- pin:
- number: GPIO14
- mode: INPUT_PULLUP
- inverted: True
- name: "Sonoff 4CH Button 4"
- - platform: status
- name: "Sonoff 4CH Status"
- switch:
- - platform: gpio
- name: "Sonoff 4CH Relay 1"
- pin: GPIO12
- - platform: gpio
- name: "Sonoff 4CH Relay 2"
- pin: GPIO5
- - platform: gpio
- name: "Sonoff 4CH Relay 3"
- pin: GPIO4
- - platform: gpio
- name: "Sonoff 4CH Relay 4"
- pin: GPIO15
- output:
- # Register the blue LED as a dimmable output ....
- - platform: esp8266_pwm
- id: blue_led
- pin: GPIO13
- inverted: True
- light:
- # ... and then make a light out of it.
- - platform: monochromatic
- name: "Sonoff 4CH Blue LED"
- output: blue_led
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement