Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Enhanced integrations

Input number

Give me your digits. πŸ”’

The Home Assistant input number icon



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 actions to the input number integration, which allows you to create and delete input number helpers on the fly, set the value to the minimum or maximum value, and enhances the existing increase and decrease actions by allowing them to increase/decrease the value by a given amount.

Screenshot of the Actions tool, listing the new actions for input number.

FigureΒ 1:Spook adds many new actions to the input number helper integrations.

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:

Create an input numberΒΆ

Screenshot of the input number create action on the Tools page.

Action properties

Action

Input number: Create an input number πŸ‘»

Action name

input_number.create

Action targets

No targets

Action response

Optional, the entity_id of the new input number

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

name

string

Yes

My input number

input_number_id

string

No

my_input_number

min

float

No

0

max

float

No

100

initial

float

No

50

step

float

No

1

mode

string

No

slider

icon

string

No

mdi:counter

unit_of_measurement

string

No

Β°C

Delete an input numberΒΆ

Deletes one or more input number helpers made in the UI or with the action above, disabled ones included. Input numbers set up in YAML can only be removed from the YAML.

Everything in the list is checked first: if one of them cannot be deleted, none of them are. Deleting takes an admin, the same as creating one.

Screenshot of the input number delete action on the Tools page.

Action properties

Action

Input number: Delete an input number πŸ‘»

Action name

input_number.delete

Action targets

No targets

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

entity_id

string | list of strings

Yes

input_number.my_counter

Decrease valueΒΆ

Decrease an input number entity value by a certain amount.

Screenshot of the input number decrease value action on the Tools page.

Action properties

Action

Input number: Decrease value πŸ‘»

Action name

input_number.decrement

Action targets

Yes, input_number entities

Action response

No response

Spook's influence

Adds an amount to decrement the value with

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

amount

integer

No

Defaults to configured step value

cycle

boolean

No

false

This action already exists but is extended by Spook to add the amount and cycle attributes. If the amount attribute is not provided, the action will use the step value of the input number entity. The amount attribute must be a multiple of the step value. With cycle, going past the end of the range carries on from the other end, the same way selecting the next option cycles a select.

Increase valueΒΆ

Increase an input number entity value by a certain amount.

Screenshot of the input number increase value action on the Tools page.

Action properties

Action

Input number: Increase value πŸ‘»

Action name

input_number.increment

Action targets

Yes, input_number entities

Action response

No response

Spook's influence

Adds an amount to increment the value with

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

amount

integer

No

Defaults to configured step value

cycle

boolean

No

false

This action already exists but is extended by Spook to add the amount and cycle attributes. If the amount attribute is not provided, the action will use the step value of the input number entity. The amount attribute must be a multiple of the step value. With cycle, going past the end of the range carries on from the other end, the same way selecting the next option cycles a select.

Set value to maximumΒΆ

Set an input number entity to its maximum value.

Screenshot of the input number maximum value action on the Tools page.

Action properties

Action

Input number: Set maximum value πŸ‘»

Action name

input_number.max

Action targets

Yes, input_number entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Set value to minimumΒΆ

Set an input number entity to its minimum value.

Screenshot of the input number minimum value action on the Tools page.

Action properties

Action

Input number: Set minimum value πŸ‘»

Action name

input_number.min

Action targets

Yes, input_number entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Set rangeΒΆ

Changes the minimum, maximum or step of an input number, the same as editing it in the UI.

Action properties

Action

Input number: Set range πŸ‘»

Action name

input_number.set_range

Action targets

Yes, input_number entities

Action response

No response

Spook's influence

Newly added action

Tools

Try this action Open your Home Assistant instance and show the Actions tool with a specific action selected.

Action data parameters

Attribute

Type

Required

Default / Example

min

float

No

0

max

float

No

3600

step

float

No

1

Give at least one of them; what is left out stays as it is. The change is stored, so it survives a restart, like editing the helper does. A value that falls outside the new range is moved inside it. The maximum has to stay above the minimum.

This takes an admin when a user calls it, since it changes how the helper is set up. Automations and scripts are not affected. Only input numbers made in the UI can be changed; one set up in YAML is refused.

RepairsΒΆ

Spook has no repair detections for this integration.

Use casesΒΆ

Some use cases for the enhancements Spook provides for this integration:

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.

Feature 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.