mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 15:12:06 +00:00 
			
		
		
		
	Add some components to the new testing framework (B) (#6173)
This commit is contained in:
		
							
								
								
									
										35
									
								
								tests/components/bang_bang/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										35
									
								
								tests/components/bang_bang/test.esp32-c3-idf.yaml
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,35 @@ | ||||
| switch: | ||||
|   - platform: template | ||||
|     id: template_switch1 | ||||
|     optimistic: true | ||||
|   - platform: template | ||||
|     id: template_switch2 | ||||
|     optimistic: true | ||||
|  | ||||
| sensor: | ||||
|   - platform: template | ||||
|     id: template_sensor1 | ||||
|     lambda: |- | ||||
|       if (millis() > 10000) { | ||||
|         return 42.0; | ||||
|       } else { | ||||
|         return 0.0; | ||||
|       } | ||||
|     update_interval: 60s | ||||
|  | ||||
| climate: | ||||
|   - platform: bang_bang | ||||
|     name: Bang Bang Climate | ||||
|     sensor: template_sensor1 | ||||
|     humidity_sensor: template_sensor1 | ||||
|     default_target_temperature_low: 18°C | ||||
|     default_target_temperature_high: 24°C | ||||
|     idle_action: | ||||
|       - switch.turn_on: template_switch1 | ||||
|     cool_action: | ||||
|       - switch.turn_on: template_switch2 | ||||
|     heat_action: | ||||
|       - switch.turn_on: template_switch1 | ||||
|     away_config: | ||||
|       default_target_temperature_low: 16°C | ||||
|       default_target_temperature_high: 20°C | ||||
		Reference in New Issue
	
	Block a user