removed test entrys, added reboot button, mqtt discovery disabled

This commit is contained in:
Philipp Wo 2023-04-16 01:47:14 +02:00
parent 897683f0e7
commit 5b5f3b4f09
2 changed files with 19 additions and 8 deletions

5
.gitignore vendored Normal file
View File

@ -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

View File

@ -38,7 +38,7 @@ wifi:
# Enable fallback hotspot (captive portal) in case wifi connection fails # Enable fallback hotspot (captive portal) in case wifi connection fails
ap: ap:
ssid: "Fingerprintdoor Fallback Hotspot" ssid: "Fingerprintdoor Fallback Hotspot"
password: !secret $ota_password password: !secret ota_password
captive_portal: captive_portal:
@ -52,6 +52,7 @@ mqtt:
password: !secret mqtt_password password: !secret mqtt_password
client_id: $devicename client_id: $devicename
id: mqtt_client id: mqtt_client
discovery: false
on_message: !include "includes/led_effects.yaml" on_message: !include "includes/led_effects.yaml"
@ -70,6 +71,11 @@ text_sensor:
then: then:
- lambda: |- - lambda: |-
ESP_LOGD("main", "Enroll Finger ID: %s", x.c_str()); 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: - fingerprint_grow.enroll:
finger_id: !lambda return atoi(x.c_str()); finger_id: !lambda return atoi(x.c_str());
num_scans: 2 num_scans: 2
@ -78,6 +84,7 @@ text_sensor:
state: "Place a finger on the reader" state: "Place a finger on the reader"
else: else:
- logger.log: "Error, try again!" - logger.log: "Error, try again!"
# CANCEL ENROLL # CANCEL ENROLL
- platform: mqtt_subscribe - platform: mqtt_subscribe
@ -131,7 +138,7 @@ text_sensor:
count: 6 count: 6
- platform: template - platform: template
name: "Template Text Sensor" name: "Log Message"
id: fingerprint_state id: fingerprint_state
@ -160,7 +167,7 @@ binary_sensor:
- delayed_off: 100ms - delayed_off: 100ms
- delayed_on_off: 150ms - delayed_on_off: 150ms
# Door Sensor # Door Sensor - GPIO connected to GND over reed sensor
- platform: gpio - platform: gpio
pin: pin:
number: $door_sensor_pin number: $door_sensor_pin
@ -173,12 +180,11 @@ binary_sensor:
- delayed_on: 10ms - delayed_on: 10ms
# Example button configuration # BUTTONS
button: button:
- platform: template - platform: restart
name: Test Button name: "ESP Restart"
id: my_button id: restart_button
fingerprint_grow: fingerprint_grow:
sensing_pin: $reader_sensor_pin sensing_pin: $reader_sensor_pin