The input number Helper in Home Assistant allows the user to define values that can be controlled via the frontend and can be used within conditions of an automation. The frontend can display a slider or a numeric input box. Changes to the slider or numeric input box generate state events. These state events can be utilized as automation triggers as well.
Spook adds some new services to the input number integration, which allows you to set the value to the minimum or maximum value, and enhances the existing increase and decrease services by allowing them to increase/decrease the value by a given amount.
Devices & entitiesΒΆ
Spook does not provide any new devices or entities for this integration.
ServicesΒΆ
Spook adds the following new service to your Home Assistant instance:
Decrease valueΒΆ
Decrease an input number entity value by a certain amount.
Service properties | |
---|---|
Service | Input number: Decrease value π» |
Service name | input_number.decrement |
Service targets | Yes, input_number entities |
Service response | No response |
Spook's influence | Adds an amount to decrement the value with |
Developer tools | Try this service |
Service call data | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
amount | integer | No | Defaults to configured step value |
This service already exists but is extended by Spook to add the amount
attribute. If the amount
attribute is not provided, the service will use the step value of the input number entity. The amount
attribute must be a multiple of the step value.
Example service call in YAML
1 2 3 4 5
service: input_number.decrement target: entity_id: input_number.my_input_number data: amount: 5
Increase valueΒΆ
Increase an input number entity value by a certain amount.
Service properties | |
---|---|
Service | Input number: Increase value π» |
Service name | input_number.increment |
Service targets | Yes, input_number entities |
Service response | No response |
Spook's influence | Adds an amount to increment the value with |
Developer tools | Try this service |
Service call data | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
amount | integer | No | Defaults to configured step value |
This service already exists but is extended by Spook to add the amount
attribute. If the amount
attribute is not provided, the service will use the step value of the input number entity. The amount
attribute must be a multiple of the step value.
Example service call in YAML
1 2 3 4 5
service: input_number.increment target: entity_id: input_number.my_input_number data: amount: 5
Set value to maximumΒΆ
Set an input number entity to its maximum value.
Service properties | |
---|---|
Service | Input number: Set maximum value π» |
Service name | input_number.max |
Service targets | Yes, input_number entities |
Service response | No response |
Spook's influence | Newly added service |
Developer tools | Try this service |
Example service call in YAML
1 2 3
service: input_number.max target: entity_id: input_number.my_input_number
Set value to minimumΒΆ
Set an input number entity to its minimum value.
Service properties | |
---|---|
Service | Input number: Set minimum value π» |
Service name | input_number.min |
Service targets | Yes, input_number entities |
Service response | No response |
Spook's influence | Newly added service |
Developer tools | Try this service |
Example service call in YAML
1 2 3
service: input_number.min target: entity_id: input_number.my_input_number
RepairsΒΆ
Spook has no repair detections for this integration.
Uses casesΒΆ
Some use cases for the enhancements Spook provides for this integration:
- Quickly, with a single service call, set the value of an input helper to its maximum or minimum value.
- Instead of having to call the
input_number.decrement
orinput_number.increment
service multiple times, you can now set the amount to increase or decrease the value with.
Blueprints & tutorialsΒΆ
There are currently no known blueprints or tutorials for the enhancements Spook provides for this integration. If you created one or stumbled upon one, please let us know in our discussion forums.
Features requests, ideas, and supportΒΆ
If you have an idea on how to further enhance this integration, for example, by adding a new service, entity, or repairs detection; feel free to let us know in our discussion forums.
Are you stuck using these new features? Or maybe youβve run into a bug? Please check the Support page on where to go for help.