Add NFC reader
This commit is contained in:
parent
623f793970
commit
fc508ef08b
1 changed files with 23 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue