1
0
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:
Jesse Hills
2021-07-13 07:20:12 +12:00
committed by GitHub
parent 1f5c79bd17
commit dd37a4e04c
36 changed files with 1206 additions and 0 deletions

View File

@@ -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