mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	Allow setting custom command_topic for Select and Number components (#2714)
This commit is contained in:
		| @@ -2514,3 +2514,23 @@ teleinfo: | ||||
|   uart_id: uart0 | ||||
|   update_interval: 60s | ||||
|   historical_mode: true | ||||
|  | ||||
| number: | ||||
|   - platform: template | ||||
|     id: test_number | ||||
|     state_topic: livingroom/custom_state_topic | ||||
|     command_topic: livingroom/custom_command_topic | ||||
|     min_value: 0 | ||||
|     step: 1 | ||||
|     max_value: 10 | ||||
|     optimistic: true | ||||
|  | ||||
| select: | ||||
|   - platform: template | ||||
|     id: test_select | ||||
|     state_topic: livingroom/custom_state_topic | ||||
|     command_topic: livingroom/custom_command_topic | ||||
|     options: | ||||
|       - one | ||||
|       - two | ||||
|     optimistic: true | ||||
|   | ||||
		Reference in New Issue
	
	Block a user