Added increment + decrement to input_number (#9870)

* Added increment + decrement to input_number

* Lint

* Fix tests

* Another lint

* Additional testing

* Added service descriptions

* Consolidated service registration

* Shortened service registration

* Fixed service descriptions

* Fix Lint
This commit is contained in:
Daniel Perna authored and Pascal Vizeli committed 2017-10-25 15:25:33 +02:00
1 parent 632466bb56
commit 6c39e1ef19
3 files changed
+165 -11

No files matched your search

+28
View File
@@ -543,6 +543,34 @@ input_boolean:
description: Entity id of the input boolean to turn on
example: 'input_boolean.notify_alerts'
input_number:
set_value:
description: Set the value of an input_number entity.
fields:
entity_id:
description: Entity id of the input_number to set the new value.
example: 'input_number.threshold'
value:
description: The target value the entity should be set to.
example: 42
increment:
description: Increment the value of an input_number entity by its stepping.
fields:
entity_id:
description: Entity id of the input_number the should be incremented.
example: 'input_number.threshold'
decrement:
description: Decrement the value of an input_number entity by its stepping.
fields:
entity_id:
description: Entity id of the input_number the should be decremented.
example: 'input_number.threshold'
homeassistant:
check_config:
description: Check the Home Assistant configuration files for errors. Errors will be displayed in the Home Assistant log.