removed test entrys, added reboot button, mqtt discovery disabled
This commit is contained in:
parent
897683f0e7
commit
5b5f3b4f09
|
@ -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
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue