mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Add some components to the new testing framework (R) (#6219)
Co-authored-by: Jesse Hills <3060199+jesserockz@users.noreply.github.com>
This commit is contained in:
		
							
								
								
									
										25
									
								
								tests/components/rotary_encoder/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								tests/components/rotary_encoder/test.esp8266.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| sensor: | ||||
|   - platform: rotary_encoder | ||||
|     name: Rotary Encoder | ||||
|     id: rotary_encoder1 | ||||
|     pin_a: 13 | ||||
|     pin_b: 14 | ||||
|     pin_reset: 15 | ||||
|     filters: | ||||
|       - or: | ||||
|           - debounce: 0.1s | ||||
|           - delta: 10 | ||||
|     resolution: 4 | ||||
|     min_value: -10 | ||||
|     max_value: 30 | ||||
|     on_value: | ||||
|       - sensor.rotary_encoder.set_value: | ||||
|           id: rotary_encoder1 | ||||
|           value: 10 | ||||
|       - sensor.rotary_encoder.set_value: | ||||
|           id: rotary_encoder1 | ||||
|           value: !lambda "return -1;" | ||||
|     on_clockwise: | ||||
|       - logger.log: Clockwise | ||||
|     on_anticlockwise: | ||||
|       - logger.log: Anticlockwise | ||||
		Reference in New Issue
	
	Block a user