mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 22:53:59 +00:00 
			
		
		
		
	[lvgl] Add start_value to bar; make values templatable and updateable (#9056)
This commit is contained in:
		| @@ -728,12 +728,15 @@ lvgl: | ||||
|             value: 30 | ||||
|             max_value: 100 | ||||
|             min_value: 10 | ||||
|             start_value: 20 | ||||
|             mode: range | ||||
|             on_click: | ||||
|               then: | ||||
|                 - lvgl.bar.update: | ||||
|                     id: bar_id | ||||
|                     value: !lambda return (int)((float)rand() / RAND_MAX * 100); | ||||
|                     start_value: !lambda return (int)((float)rand() / RAND_MAX * 100); | ||||
|                     mode: symmetrical | ||||
|                 - logger.log: | ||||
|                     format: "bar value %f" | ||||
|                     args: [x] | ||||
|   | ||||
		Reference in New Issue
	
	Block a user