From 5b5f3b4f094705b0b3e0da83bf17542ecaf30d02 Mon Sep 17 00:00:00 2001 From: Philipp Wo Date: Sun, 16 Apr 2023 01:47:14 +0200 Subject: [PATCH] removed test entrys, added reboot button, mqtt discovery disabled --- .gitignore | 5 +++++ fingerprintdoor.yaml | 22 ++++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..d8b4157 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +# Gitignore settings for ESPHome +# This is an example and may include too much for your use-case. +# You can modify this file to suit your needs. +/.esphome/ +/secrets.yaml diff --git a/fingerprintdoor.yaml b/fingerprintdoor.yaml index 0994dc6..15a28e8 100644 --- a/fingerprintdoor.yaml +++ b/fingerprintdoor.yaml @@ -38,7 +38,7 @@ wifi: # Enable fallback hotspot (captive portal) in case wifi connection fails ap: ssid: "Fingerprintdoor Fallback Hotspot" - password: !secret $ota_password + password: !secret ota_password captive_portal: @@ -52,6 +52,7 @@ mqtt: password: !secret mqtt_password client_id: $devicename id: mqtt_client + discovery: false on_message: !include "includes/led_effects.yaml" @@ -70,6 +71,11 @@ text_sensor: then: - lambda: |- ESP_LOGD("main", "Enroll Finger ID: %s", x.c_str()); + - fingerprint_grow.aura_led_control: + state: BREATHING + speed: 100 + color: WHITE + count: 4 - fingerprint_grow.enroll: finger_id: !lambda return atoi(x.c_str()); num_scans: 2 @@ -78,6 +84,7 @@ text_sensor: state: "Place a finger on the reader" else: - logger.log: "Error, try again!" + # CANCEL ENROLL - platform: mqtt_subscribe @@ -131,7 +138,7 @@ text_sensor: count: 6 - platform: template - name: "Template Text Sensor" + name: "Log Message" id: fingerprint_state @@ -160,7 +167,7 @@ binary_sensor: - delayed_off: 100ms - delayed_on_off: 150ms - # Door Sensor + # Door Sensor - GPIO connected to GND over reed sensor - platform: gpio pin: number: $door_sensor_pin @@ -173,12 +180,11 @@ binary_sensor: - delayed_on: 10ms -# Example button configuration +# BUTTONS button: - - platform: template - name: Test Button - id: my_button - + - platform: restart + name: "ESP Restart" + id: restart_button fingerprint_grow: sensing_pin: $reader_sensor_pin