Add NFC reader

This commit is contained in:
Jakob Lechner 2025-05-19 21:56:46 +02:00
parent 623f793970
commit fc508ef08b

View file

@ -32,7 +32,6 @@ wifi:
domain: .iot.bw.jalr.de
enable_on_boot: True
fast_connect: On
output_power: 8.5
esp32_ble_tracker:
scan_parameters:
@ -92,3 +91,26 @@ binary_sensor:
- light.toggle:
id: led_light
internal: True
spi:
- id: spi_bus_main
clk_pin: GPIO21
mosi_pin: GPIO10
miso_pin: GPIO20
pn532_spi:
spi_id: spi_bus_main
# FIXME: GPIO9 is a strapping pin
cs_pin: GPIO9
update_interval: 1s
on_tag:
then:
- homeassistant.tag_scanned: !lambda 'return x;'
- switch.turn_on: buzzer
- delay: 250ms
- switch.turn_off: buzzer
switch:
- platform: gpio
pin: GPIO7
id: buzzer