RFID-RC522 an NodeMCU

https://www.instructables.com/MFRC522-RFID-Reader-Interfaced-With-NodeMCU/

Funktionierendes Setup:

esphome:
  name: esp8266d01
  friendly_name: RFID-Leser Juna

esp8266:
  board: esp01_1m


# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "PQO1Ag+HZhRFTHeR5RSeYp99LmEnfB94Qa5bCn00bV4="

ota:
  password: "1962781d65fdf085b296a28d364afdcf"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  use_address: 192.168.178.46

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Device1 Fallback Hotspot"
    password: "zheikOrC6xu4"

#binary_sensor:
#  - platform: status
#    name: "ESP-Device1 Status"

light:
  - platform: status_led
    name: "Switch state"
    pin: GPIO2

# Example configuration entry
sensor:
  - platform: uptime
    name: Uptime Sensor

  - platform: adc
    pin: VCC
    id: "battery_level"
    name: "esp.2.vcc"


spi:
  clk_pin: GPIO14
  mosi_pin: GPIO13
  miso_pin: GPIO12

rc522_spi:
  cs_pin: GPIO2

  on_tag:
    then:
      - homeassistant.tag_scanned: !lambda 'return x;'


binary_sensor:
  - platform: rc522
    uid: 61-DB-AC-20
    name: "BeggarsBanquet"    
  - platform: rc522
    uid: 5B-AA-79-E3
    name: "Queen"
  - platform: rc522
    uid: BB-22-77-E3
    name: "Ezio"


# Example configuration entry
#  - platform: adc
#    pin: A0
#    name: "Living Room Brightness"
#    update_interval: 60s

web_server:
  port: 80

captive_portal:
    

Beitrag veröffentlicht

in

von

Schlagwörter:

Kommentare

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert