logs reduced
This commit is contained in:
parent
4511924730
commit
e298a28cc9
|
@ -318,10 +318,14 @@ fingerprint_grow:
|
||||||
speed: 200
|
speed: 200
|
||||||
color: GREEN
|
color: GREEN
|
||||||
count: 1
|
count: 1
|
||||||
- text_sensor.template.publish:
|
- lambda: |-
|
||||||
id: fingerprint_state
|
std::string fid = to_string(finger_id);
|
||||||
state: !lambda 'return "Authorized finger " + to_string(finger_id) + ", confidence " + to_string(confidence);'
|
std::string conf = to_string(confidence);
|
||||||
# Pushing a tag_scanned event based on finger_id only if confidence is greater than 50
|
const char * cfid = fid.c_str();
|
||||||
|
const char * cconf = conf.c_str();
|
||||||
|
|
||||||
|
ESP_LOGD("main", "Authorized finger %s, confidence %s", cfid, cconf );
|
||||||
|
# Pushing a tag_scanned event based on finger_id only if confidence is greater than ...
|
||||||
- if:
|
- if:
|
||||||
condition:
|
condition:
|
||||||
lambda: 'return confidence < 200;'
|
lambda: 'return confidence < 200;'
|
||||||
|
@ -334,15 +338,20 @@ fingerprint_grow:
|
||||||
payload: |-
|
payload: |-
|
||||||
root["finger_id"] = to_string(finger_id);
|
root["finger_id"] = to_string(finger_id);
|
||||||
root["confidence"] = to_string(confidence);
|
root["confidence"] = to_string(confidence);
|
||||||
|
root["msg"] = "Authorized finger " + to_string(finger_id) + ", confidence " + to_string(confidence);
|
||||||
on_finger_scan_unmatched:
|
on_finger_scan_unmatched:
|
||||||
- fingerprint_grow.aura_led_control:
|
- fingerprint_grow.aura_led_control:
|
||||||
state: FLASHING
|
state: FLASHING
|
||||||
speed: 25
|
speed: 25
|
||||||
color: RED
|
color: RED
|
||||||
count: 2
|
count: 2
|
||||||
- text_sensor.template.publish:
|
- lambda: |-
|
||||||
id: fingerprint_state
|
ESP_LOGD("main", "Unauthorized finger");
|
||||||
state: "Unauthorized finger"
|
- mqtt.publish_json:
|
||||||
|
topic: $devicename/finger/
|
||||||
|
qos: 1
|
||||||
|
payload: |-
|
||||||
|
root["msg"] = "Unauthorized finger";
|
||||||
on_enrollment_scan:
|
on_enrollment_scan:
|
||||||
- fingerprint_grow.aura_led_control:
|
- fingerprint_grow.aura_led_control:
|
||||||
state: FLASHING
|
state: FLASHING
|
||||||
|
|
Loading…
Reference in New Issue