mirror of
				https://github.com/esphome/esphome.git
				synced 2025-11-03 16:41:50 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			18 lines
		
	
	
		
			310 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			18 lines
		
	
	
		
			310 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
i2c:
 | 
						|
  - id: i2c_rc522
 | 
						|
    scl: ${scl_pin}
 | 
						|
    sda: ${sda_pin}
 | 
						|
 | 
						|
rc522_i2c:
 | 
						|
  - id: rc522_nfcc
 | 
						|
    update_interval: 1s
 | 
						|
    on_tag:
 | 
						|
      - lambda: |-
 | 
						|
          ESP_LOGD("main", "Found tag %s", x.c_str());
 | 
						|
 | 
						|
binary_sensor:
 | 
						|
  - platform: rc522
 | 
						|
    rc522_id: rc522_nfcc
 | 
						|
    name: RC522 NFC Tag
 | 
						|
    uid: 74-10-37-94
 |