From 2b46c587fcb137397483ba282c0fe51387f0f82b Mon Sep 17 00:00:00 2001 From: Paul Wieland Date: Tue, 19 Nov 2024 15:16:57 -0500 Subject: [PATCH] Create gate_party_mode.yaml --- .../customized_examples/gate_party_mode.yaml | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 static/customized_examples/gate_party_mode.yaml diff --git a/static/customized_examples/gate_party_mode.yaml b/static/customized_examples/gate_party_mode.yaml new file mode 100644 index 0000000..0047e60 --- /dev/null +++ b/static/customized_examples/gate_party_mode.yaml @@ -0,0 +1,62 @@ +--- +substitutions: + id_prefix: ratgdov25i + friendly_name: "ratgdov2.5i" + uart_tx_pin: D1 + uart_rx_pin: D2 + input_obst_pin: D7 + dry_contact_open_pin: D5 + dry_contact_close_pin: D6 + discrete_open_pin: D0 + discrete_close_pin: D3 # re-assign from D8 to an un-mapped gpio + +web_server: + +esphome: + name: ${id_prefix} + friendly_name: ${friendly_name} + name_add_mac_suffix: true + project: + name: ratgdo.esphome + version: "2.5i" + +esp8266: + board: d1_mini + restore_from_flash: true + +dashboard_import: + package_import_url: github://ratgdo/esphome-ratgdo/v25iboard_drycontact.yaml@main + +packages: + remote_package: + url: https://github.com/ratgdo/esphome-ratgdo + files: [base_drycontact.yaml] + refresh: 1s + # remote_package: !include + # file: base_drycontact.yaml + +# Sync time with Home Assistant. +time: + - platform: homeassistant + id: homeassistant_time + +api: + id: api_server + +improv_serial: + +wifi: + ap: + +logger: + level: DEBUG + +# add custom momentary switch to Status Obstruction +switch: + - platform: gpio + pin: D8 + id: party_mode + name: "Party Mode" + on_turn_on: + - delay: 250ms + - switch.turn_off: party_mode