The number integration provides numeric inputs to control devices & services. It differs from the input number helper in that the user does not directly create it but rather by other integrations.
Spook adds some new services to the number integration, which allows you to set the value to the minimum or maximum value, and adds services to increase and decrease services the number 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 a number entity value by a certain amount.
Service properties | |
---|---|
Service | Number: Decrease value π» |
Service name | number.decrement |
Service targets | Yes, number entities |
Service response | No response |
Spook's influence | Newly added service |
Developer tools | Try this service |
Service call data | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
amount | integer | No | Defaults to configured step value |
If the amount
attribute is not provided, the service will use the step value of the number entity. The amount
attribute must be a multiple of the step value.
Example service call in YAML
1 2 3 4 5
service: number.decrement target: entity_id: number.my_number data: amount: 5
Increase valueΒΆ
Increase a number entity value by a certain amount.
Service properties | |
---|---|
Service | Number: Increase value π» |
Service name | number.increment |
Service targets | Yes, number entities |
Service response | No response |
Spook's influence | Newly added service |
Developer tools | Try this service |
Service call data | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
amount | integer | No | Defaults to configured step value |
If the amount
attribute is not provided, the service will use the step value of the number entity. The amount
attribute must be a multiple of the step value.
Example service call in YAML
1 2 3 4 5
service: number.increment target: entity_id: number.my_number data: amount: 5
Set value to maximumΒΆ
Set an number entity to its maximum value.
Service properties | |
---|---|
Service | Number: Set maximum value π» |
Service name | number.max |
Service targets | Yes, 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: number.max target: entity_id: number.my_number
Set value to minimumΒΆ
Set an number entity to its minimum value.
Service properties | |
---|---|
Service | Number: Set minimum value π» |
Service name | number.min |
Service targets | Yes, 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: number.min target: entity_id: number.my_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 a number entity to its maximum or minimum value.
- Add the ability to increase or decrease the value of a number entity with a single service call instead of having to call the
number.set_value
service using a template that does calculations on the current state.
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.