mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			445 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			445 B
		
	
	
	
		
			YAML
		
	
	
	
	
	
| i2c:
 | |
|   - id: i2c_tca9555
 | |
|     scl: ${scl_pin}
 | |
|     sda: ${sda_pin}
 | |
| 
 | |
| tca9555:
 | |
|   - id: tca9555_hub
 | |
|     address: 0x21
 | |
| 
 | |
| binary_sensor:
 | |
|   - platform: gpio
 | |
|     id: tca9555_binary_sensor
 | |
|     name: TCA9555 Binary Sensor
 | |
|     pin:
 | |
|       tca9555: tca9555_hub
 | |
|       number: 1
 | |
|       mode: INPUT
 | |
|       inverted: true
 | |
| 
 | |
| output:
 | |
|   - platform: gpio
 | |
|     id: tca9555_output
 | |
|     pin:
 | |
|       tca9555: tca9555_hub
 | |
|       number: 0
 | |
|       mode: OUTPUT
 | |
|       inverted: false
 |