mirror of
https://github.com/esphome/esphome.git
synced 2025-09-01 19:02:18 +01:00
Add Number entities (from Home Assistant) (#1971)
Co-authored-by: Oxan van Leeuwen <oxan@oxanvanleeuwen.nl>
This commit is contained in:
@@ -38,3 +38,20 @@ esp32_improv:
|
||||
authorizer: io0_button
|
||||
authorized_duration: 1min
|
||||
status_indicator: built_in_led
|
||||
|
||||
number:
|
||||
- platform: template
|
||||
name: My template number
|
||||
id: template_number_id
|
||||
optimistic: true
|
||||
on_value:
|
||||
- logger.log:
|
||||
format: "Number changed to %f"
|
||||
args: ["x"]
|
||||
set_action:
|
||||
- logger.log:
|
||||
format: "Template Number set to %f"
|
||||
args: ["x"]
|
||||
max_value: 100
|
||||
min_value: 0
|
||||
step: 5
|
||||
|
Reference in New Issue
Block a user