Add support for esp32
This commit is contained in:
parent
6879fd7657
commit
1b4710f92c
|
@ -16,9 +16,12 @@ jobs:
|
|||
strategy:
|
||||
matrix:
|
||||
firmware:
|
||||
- file: v2board.yaml
|
||||
name: V2 Board
|
||||
manifest_filename: v2board-manifest.json
|
||||
- file: v2board_esp8266_d1_mini.yaml
|
||||
name: V2 Board ESP8266 D1 Mini
|
||||
manifest_filename: v2board_esp8266_d1_mini-manifest.json
|
||||
- file: v2board_esp32_d1_mini.yaml
|
||||
name: V2 Board ESP32 D1 Mini
|
||||
manifest_filename: v2board_esp32_d1_mini-manifest.json
|
||||
fail-fast: false
|
||||
steps:
|
||||
- name: Checkout source code
|
||||
|
|
18
base.yml
18
base.yml
|
@ -1,9 +1,5 @@
|
|||
---
|
||||
|
||||
esp8266:
|
||||
board: d1_mini_lite
|
||||
restore_from_flash: true
|
||||
|
||||
external_components:
|
||||
- source:
|
||||
type: git
|
||||
|
@ -16,10 +12,10 @@ ratgdo:
|
|||
|
||||
uart:
|
||||
tx_pin:
|
||||
number: D4 # red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini
|
||||
number: ${uart_tx_pin} # red control terminal / GarageDoorOpener (UART1 TX) pin is D4 on D1 Mini
|
||||
inverted: true
|
||||
rx_pin:
|
||||
number: D2 # red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini
|
||||
number: ${uart_rx_pin} # red control terminal / GarageDoorOpener (UART1 RX) pin is D2 on D1 Mini
|
||||
inverted: true
|
||||
baud_rate: 9600
|
||||
|
||||
|
@ -44,7 +40,7 @@ switch:
|
|||
id: "${id_prefix}_status_door"
|
||||
internal: true
|
||||
pin:
|
||||
number: D0 # D0 output door status, HIGH for open, LOW for closed
|
||||
number: ${status_door_pin} # D0 output door status, HIGH for open, LOW for closed
|
||||
mode:
|
||||
output: true
|
||||
name: "Status door"
|
||||
|
@ -53,7 +49,7 @@ switch:
|
|||
id: "${id_prefix}_status_obstruction"
|
||||
internal: true
|
||||
pin:
|
||||
number: D8 # D8 output for obstruction status, HIGH for obstructed, LOW for clear
|
||||
number: ${status_obstruction_pin} # D8 output for obstruction status, HIGH for obstructed, LOW for clear
|
||||
mode:
|
||||
output: true
|
||||
name: "Status obstruction"
|
||||
|
@ -92,7 +88,7 @@ binary_sensor:
|
|||
- platform: gpio
|
||||
id: "${id_prefix}_dry_contact_open"
|
||||
pin:
|
||||
number: D5 # D5 dry contact for opening door
|
||||
number: ${dry_contact_open_pin} # D5 dry contact for opening door
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
|
@ -108,7 +104,7 @@ binary_sensor:
|
|||
- platform: gpio
|
||||
id: "${id_prefix}_dry_contact_close"
|
||||
pin:
|
||||
number: D6 # D6 dry contact for closing door
|
||||
number: ${dry_contact_close_pin} # D6 dry contact for closing door
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
|
@ -124,7 +120,7 @@ binary_sensor:
|
|||
- platform: gpio
|
||||
id: "${id_prefix}_dry_contact_light"
|
||||
pin:
|
||||
number: D3 # D3 dry contact for triggering light (no discrete light commands, so toggle only)
|
||||
number: ${dry_contact_light_pin} # D3 dry contact for triggering light (no discrete light commands, so toggle only)
|
||||
inverted: true
|
||||
mode:
|
||||
input: true
|
||||
|
|
Binary file not shown.
Before Width: | Height: | Size: 288 KiB After Width: | Height: | Size: 27 B |
|
@ -0,0 +1 @@
|
|||
v2board_esp8266_d1_mini.png
|
Before Width: | Height: | Size: 288 KiB After Width: | Height: | Size: 27 B |
|
@ -1,41 +0,0 @@
|
|||
---
|
||||
substitutions:
|
||||
id_prefix: ratgdov2
|
||||
friendly_name: "RATGDOv2"
|
||||
|
||||
web_server:
|
||||
|
||||
esphome:
|
||||
name: ${id_prefix}
|
||||
friendly_name: ${friendly_name}
|
||||
name_add_mac_suffix: true
|
||||
project:
|
||||
name: ratgdo.esphome
|
||||
version: "2.0"
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://esphome-ratgdo/esphome-ratgdo/ratgdo.yaml@main
|
||||
|
||||
packages:
|
||||
# Git repo examples
|
||||
remote_package:
|
||||
url: https://github.com/esphome-ratgdo/esphome-ratgdo
|
||||
files: [base.yml]
|
||||
refresh: 1s # optional
|
||||
|
||||
# Sync time with Home Assistant.
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: homeassistant_time
|
||||
|
||||
api:
|
||||
id: api_server
|
||||
|
||||
ota:
|
||||
|
||||
improv_serial:
|
||||
|
||||
wifi:
|
||||
ap:
|
||||
|
||||
logger:
|
|
@ -0,0 +1 @@
|
|||
v2board_esp8266_d1_mini.yaml
|
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
substitutions:
|
||||
id_prefix: ratgdov2
|
||||
friendly_name: "RATGDOv2"
|
||||
|
||||
web_server:
|
||||
|
||||
esphome:
|
||||
name: ${id_prefix}
|
||||
friendly_name: ${friendly_name}
|
||||
name_add_mac_suffix: true
|
||||
project:
|
||||
name: ratgdo.esphome
|
||||
version: "2.0"
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://esphome-ratgdo/esphome-ratgdo/ratgdo.yaml@main
|
||||
|
||||
packages:
|
||||
# Git repo examples
|
||||
remote_package:
|
||||
url: https://github.com/esphome-ratgdo/esphome-ratgdo
|
||||
files: [base.yml, v2board_esp32_d1_mini_include.yaml]
|
||||
refresh: 1s # optional
|
||||
|
||||
# Sync time with Home Assistant.
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: homeassistant_time
|
||||
|
||||
api:
|
||||
id: api_server
|
||||
|
||||
ota:
|
||||
|
||||
improv_serial:
|
||||
|
||||
wifi:
|
||||
ap:
|
||||
|
||||
logger:
|
Binary file not shown.
After Width: | Height: | Size: 288 KiB |
|
@ -0,0 +1,41 @@
|
|||
---
|
||||
substitutions:
|
||||
id_prefix: ratgdov2
|
||||
friendly_name: "RATGDOv2"
|
||||
|
||||
web_server:
|
||||
|
||||
esphome:
|
||||
name: ${id_prefix}
|
||||
friendly_name: ${friendly_name}
|
||||
name_add_mac_suffix: true
|
||||
project:
|
||||
name: ratgdo.esphome
|
||||
version: "2.0"
|
||||
|
||||
dashboard_import:
|
||||
package_import_url: github://esphome-ratgdo/esphome-ratgdo/ratgdo_v2board_esp8266_d1_mini.yaml@main
|
||||
|
||||
packages:
|
||||
# Git repo examples
|
||||
remote_package:
|
||||
url: https://github.com/esphome-ratgdo/esphome-ratgdo
|
||||
files: [base.yml, v2board_esp8266_d1_mini_include.yaml]
|
||||
refresh: 1s # optional
|
||||
|
||||
# Sync time with Home Assistant.
|
||||
time:
|
||||
- platform: homeassistant
|
||||
id: homeassistant_time
|
||||
|
||||
api:
|
||||
id: api_server
|
||||
|
||||
ota:
|
||||
|
||||
improv_serial:
|
||||
|
||||
wifi:
|
||||
ap:
|
||||
|
||||
logger:
|
Loading…
Reference in New Issue