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 actions to the number integration, which allows you to set the value to the minimum or maximum value, and adds actions to increase and decrease the number value by a given amount.
Devices & entitiesΒΆ
Spook does not provide any new devices or entities for this integration.
ActionsΒΆ
Spook adds the following new actions to your Home Assistant instance:
Decrease valueΒΆ
Decrease a number entity value by a certain amount.
Action properties | |
---|---|
Action | Number: Decrease value π» |
Action name | number.decrement |
Action targets | Yes, number entities |
Action response | No response |
Spook's influence | Newly added action |
Developer tools | Try this action |
Action data parameters | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
amount | integer | No | Defaults to configured step value |
If the amount
attribute is not provided, the action will use the step value of the number entity. The amount
attribute must be a multiple of the step value.
1 2 3 4 5
action: number.decrement target: entity_id: number.my_number data: amount: 5
Increase valueΒΆ
Increase a number entity value by a certain amount.
Action properties | |
---|---|
Action | Number: Increase value π» |
Action name | number.increment |
Action targets | Yes, number entities |
Action response | No response |
Spook's influence | Newly added action |
Developer tools | Try this action |
Action data parameters | |||
---|---|---|---|
Attribute | Type | Required | Default / Example |
amount | integer | No | Defaults to configured step value |
If the amount
attribute is not provided, the action will use the step value of the number entity. The amount
attribute must be a multiple of the step value.
1 2 3 4 5
action: number.increment target: entity_id: number.my_number data: amount: 5
Set value to maximumΒΆ
Set an number entity to its maximum value.
Action properties | |
---|---|
Action | Number: Set maximum value π» |
Action name | number.max |
Action targets | Yes, number entities |
Action response | No response |
Spook's influence | Newly added action |
Developer tools | Try this action |
Set value to minimumΒΆ
Set an number entity to its minimum value.
Action properties | |
---|---|
Action | Number: Set minimum value π» |
Action name | number.min |
Action targets | Yes, number entities |
Action response | No response |
Spook's influence | Newly added action |
Developer tools | Try this action |
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 action, 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 action instead of having to call the
number.set_value
action 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 action, 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.