From dee9f3d616ed65ad5c9d28cf48cd28cac7e9097b Mon Sep 17 00:00:00 2001 From: Craig Maher Date: Mon, 2 Oct 2023 14:10:30 -0700 Subject: [PATCH] Lolin s2 mini support (#54) * Create main.yml * test 1 * test 2 * test 3 * test 4 * test 5 * another test * made it a link * change the pins * made the pins strings * try yet again to get pages working * minor change for testing * get ready for PR * preparing for PR V2 --- .github/workflows/build.yml | 5 ++- static/index.html | 6 +++- static/v2board_lolin_s2_mini.jpg | Bin 0 -> 94 bytes static/v2board_lolin_s2_mini.yaml | 51 ++++++++++++++++++++++++++++++ v2board_lolin_s2_mini.yaml | 1 + 5 files changed, 61 insertions(+), 2 deletions(-) create mode 100644 static/v2board_lolin_s2_mini.jpg create mode 100644 static/v2board_lolin_s2_mini.yaml create mode 120000 v2board_lolin_s2_mini.yaml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9672dbd..32b8669 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,10 @@ jobs: manifest_filename: v2board_esp8266_d1_mini_lite-manifest.json - file: v2board_esp32_d1_mini.yaml name: V2 Board ESP32 D1 Mini - manifest_filename: v2board_esp32_d1_mini-manifest.json + manifest_filename: v2board_esp32_d1_mini-manifest.json + - file: v2board_lolin_s2_mini.yaml + name: V2 Board lolin S2 mini + manifest_filename: v2board_lolin_s2_mini-manifest.json fail-fast: false steps: - name: Checkout source code diff --git a/static/index.html b/static/index.html index 98f3d98..3d427b2 100644 --- a/static/index.html +++ b/static/index.html @@ -167,7 +167,11 @@ + +

diff --git a/static/v2board_lolin_s2_mini.jpg b/static/v2board_lolin_s2_mini.jpg new file mode 100644 index 0000000000000000000000000000000000000000..1272cbb0c870b04360faa3eaae3884866b8de959 GIT binary patch literal 94 zcmaFAfA4!3Vo-9e$V_8k@bzWTVqjq4U|?hvVqgZc7=aKBAW9jSpfr$TU}9ooW@2Vx WVq#%sVP;`vV+8^>4t5aW;06E#<{0Jx literal 0 HcmV?d00001 diff --git a/static/v2board_lolin_s2_mini.yaml b/static/v2board_lolin_s2_mini.yaml new file mode 100644 index 0000000..c052b35 --- /dev/null +++ b/static/v2board_lolin_s2_mini.yaml @@ -0,0 +1,51 @@ +--- +substitutions: + id_prefix: ratgdov2 + friendly_name: "RATGDOv2" + uart_tx_pin: "16" + uart_rx_pin: "33" + input_obst_pin: "11" + status_door_pin: "5" + status_obstruction_pin: "12" + dry_contact_open_pin: "7" + dry_contact_close_pin: "9" + dry_contact_light_pin: "18" + +web_server: + +esphome: + name: ${id_prefix} + friendly_name: ${friendly_name} + name_add_mac_suffix: true + project: + name: ratgdo.esphome + version: "2.0" + +esp32: + board: lolin_s2_mini + +dashboard_import: + package_import_url: github://ratgdo/esphome-ratgdo/v2board_lolin_s2_mini.yaml@main + +packages: + remote_package: + url: https://github.com/ratgdo/esphome-ratgdo + files: [base.yaml] + refresh: 1s + +# Sync time with Home Assistant. +time: + - platform: homeassistant + id: homeassistant_time + +api: + id: api_server + +ota: + +improv_serial: + +wifi: + ap: + +logger: diff --git a/v2board_lolin_s2_mini.yaml b/v2board_lolin_s2_mini.yaml new file mode 120000 index 0000000..abee0f2 --- /dev/null +++ b/v2board_lolin_s2_mini.yaml @@ -0,0 +1 @@ +./static/v2board_lolin_s2_mini.yaml \ No newline at end of file