Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: sonoff-dualr3-sp
- friendly_name: Sonoff DualR3 SP
- esp32:
- board: esp32dev
- logger:
- level: INFO
- wifi:
- ssid: !secret wifi_ssid
- password: !secret wifi_password
- api:
- ota:
- platform: esphome
- button:
- - platform: restart
- name: "Sonoff DualR3 SP Restart"
- id: button_restart
- light:
- - platform: status_led
- name: "Sonoff DualR3 SP LED"
- id: led_status
- pin:
- number: GPIO13
- inverted: True
- internal: True
- switch:
- - platform: gpio
- name: "Pool Pump"
- pin: GPIO27
- id: relay_1
- - platform: gpio
- name: "Pool Light"
- pin: GPIO14
- id: relay_2
- binary_sensor:
- - platform: gpio
- name: "Button"
- id: sensor_button
- pin:
- number: GPIO00
- mode:
- input: True
- pullup: True
- inverted: True
- disabled_by_default: True
- icon: 'mdi:radiobox-blank'
- filters:
- - delayed_on: 50ms
- on_press:
- - switch.toggle: relay_1
- - platform: gpio
- name: "Pool Pump"
- pin:
- number: GPIO32
- mode:
- input: True
- pullup: True
- inverted: True
- filters:
- - delayed_on_off: 50ms
- on_press:
- - switch.turn_on: relay_1
- on_release:
- - switch.turn_off: relay_1
- - platform: gpio
- name: "Pool Light"
- pin:
- number: GPIO33
- mode:
- input: True
- pullup: True
- inverted: True
- filters:
- - delayed_on_off: 50ms
- on_press:
- - switch.turn_on: relay_2
- on_release:
- - switch.turn_off: relay_2
- uart:
- tx_pin: GPIO25
- rx_pin: GPIO26
- baud_rate: 38400
- parity: EVEN
- stop_bits: 1
- sensor:
- - platform: cse7761
- update_interval: 5s
- voltage:
- name: 'SP Voltage'
- current_1:
- name: 'Pool Pump Current'
- disabled_by_default: True
- current_2:
- name: 'Pool Light Current'
- disabled_by_default: True
- active_power_1:
- name: 'Pool Pump Power'
- active_power_2:
- name: 'Pool Light Power'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement