Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- text_sensor:
- - platform: template
- id: fingerprint_username
- name: "Who Scanned Last"
- update_interval: 30s
- #
- # Fingerprint matched - open/close the door
- #
- on_finger_scan_matched:
- - switch.turn_on: garage_door_relay
- - delay: 500ms
- - switch.turn_off: garage_door_relay
- - fingerprint_grow.aura_led_control:
- state: BREATHING
- speed: 200
- color: PURPLE
- count: 2
- - text_sensor.template.publish:
- id: fingerprint_state
- state: "Authorized finger"
- - lambda: |-
- if (finger_id == 0) {
- id(fingerprint_username).publish_state("Fred");
- } else if (finger_id == 1) {
- id(fingerprint_username).publish_state("Joan");
- } else {
- id(fingerprint_username).publish_state("Unknown");
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement