Skip to content
Snippets Groups Projects
Commit 393cfec3 authored by 3d's avatar 3d
Browse files

add Sonoff S26R2

parent 97487279
No related branches found
No related tags found
No related merge requests found
{% set devicename = "esphome_plug01" %}
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %}
{% include "/includes/common.inc.yaml" %}
status_led:
pin:
number: GPIO13
inverted: false
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff S26_1 Button"
on_press:
- switch.toggle: relay
- platform: status
name: "Sonoff S26_1 Status"
sensor:
- platform: wifi_signal
name: "sonoffs26_1 WiFi Signal"
update_interval: 60s
switch:
- platform: gpio
name: "Sonoff S26_1 Relay"
pin: GPIO12
id: "relay"
- platform: restart
name: "sonoffs26_1 Restart"
\ No newline at end of file
{% set devicename = "esphome_plug02" %}
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %}
{% include "/includes/common.inc.yaml" %}
status_led:
pin:
number: GPIO13
inverted: false
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff S26_1 Button"
on_press:
- switch.toggle: relay
- platform: status
name: "Sonoff S26_1 Status"
sensor:
- platform: wifi_signal
name: "sonoffs26_1 WiFi Signal"
update_interval: 60s
switch:
- platform: gpio
name: "Sonoff S26_1 Relay"
pin: GPIO12
id: "relay"
- platform: restart
name: "sonoffs26_1 Restart"
\ No newline at end of file
{% set devicename = "esphome_plug03" %}
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %}
{% include "/includes/common.inc.yaml" %}
status_led:
pin:
number: GPIO13
inverted: false
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff S26_1 Button"
on_press:
- switch.toggle: relay
- platform: status
name: "Sonoff S26_1 Status"
sensor:
- platform: wifi_signal
name: "sonoffs26_1 WiFi Signal"
update_interval: 60s
switch:
- platform: gpio
name: "Sonoff S26_1 Relay"
pin: GPIO12
id: "relay"
- platform: restart
name: "sonoffs26_1 Restart"
\ No newline at end of file
{% set devicename = "esphome_plug04" %}
{% include "/includes/ansible.inc.yaml" %}
{% include "/includes/board.esp01_1m.inc.yaml" %}
{% include "/includes/common.inc.yaml" %}
status_led:
pin:
number: GPIO13
inverted: false
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: "Sonoff S26_1 Button"
on_press:
- switch.toggle: relay
- platform: status
name: "Sonoff S26_1 Status"
sensor:
- platform: wifi_signal
name: "sonoffs26_1 WiFi Signal"
update_interval: 60s
switch:
- platform: gpio
name: "Sonoff S26_1 Relay"
pin: GPIO12
id: "relay"
- platform: restart
name: "sonoffs26_1 Restart"
\ No newline at end of file
esphome:
name: "{{ devicename }}"
platform: ESP8266
board: esp01_1m
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment