mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-31 07:03:55 +00:00 
			
		
		
		
	Add support for time entities (#6399)
* Add time entities * Add tests * Add myself to datetime codeowners * Fix publishing times with 0 values * Log performing TimeCall * Implement `on_time` trigger * Rename var * Fix initial value for time * Add arg name for clarity * Remove useless checks
This commit is contained in:
		| @@ -153,3 +153,16 @@ datetime: | ||||
|             - x.year | ||||
|             - x.month | ||||
|             - x.day_of_month | ||||
|   - platform: template | ||||
|     name: Time | ||||
|     id: test_time | ||||
|     type: time | ||||
|     set_action: | ||||
|       - logger.log: "set_value" | ||||
|     on_value: | ||||
|       - logger.log: | ||||
|           format: "Time: %02d:%02d:%02d" | ||||
|           args: | ||||
|             - x.hour | ||||
|             - x.minute | ||||
|             - x.second | ||||
|   | ||||
		Reference in New Issue
	
	Block a user