mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	bl0942: Fix init sequence, add address and line_frequency options (#7250)
This commit is contained in:
		
							
								
								
									
										22
									
								
								tests/components/bl0942/test.bk72xx-ard.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								tests/components/bl0942/test.bk72xx-ard.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,22 @@ | ||||
| uart: | ||||
|   - id: uart_bl0942 | ||||
|     tx_pin: | ||||
|       number: TX1 | ||||
|     rx_pin: | ||||
|       number: RX1 | ||||
|     baud_rate: 2400 | ||||
|  | ||||
| sensor: | ||||
|   - platform: bl0942 | ||||
|     address: 0 | ||||
|     line_frequency: 50Hz | ||||
|     voltage: | ||||
|       name: BL0942 Voltage | ||||
|     current: | ||||
|       name: BL0942 Current | ||||
|     power: | ||||
|       name: BL0942 Power | ||||
|     energy: | ||||
|       name: BL0942 Energy | ||||
|     frequency: | ||||
|       name: BL0942 Frequency | ||||
		Reference in New Issue
	
	Block a user