Skip to content

Update and align actions for number and input_number #40129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion source/_integrations/input_number.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,12 @@ input_number:
This integration provides the following actions to modify the state of the `input_number` and an action to reload the
configuration without restarting Home Assistant itself.

| Service | Data | Description |
| Action | Data | Description |
| ----------- | ----------------------------------------- | ----------------------------------------------------------------- |
| `decrement` | `entity_id(s)`<br>`area_id(s)` | Decrement the value of specific `input_number` entities by `step` |
| `increment` | `entity_id(s)`<br>`area_id(s)` | Increment the value of specific `input_number` entities by `step` |
| `max` | `entity_id(s)`<br>`area_id(s)` | Set an `input_number` entity to its minimum value |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do you see these in the code?

| `min` | `entity_id(s)`<br>`area_id(s)` | Set an `input_number` entity to its maximum value |
| `reload` | | Reload `input_number` configuration |
| `set_value` | `value`<br>`entity_id(s)`<br>`area_id(s)` | Set the value of specific `input_number` entities |

Expand Down
15 changes: 11 additions & 4 deletions source/_integrations/number.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,15 @@ The following device classes are supported for numbers:

## Actions

The Number entities registers the following actions:
This integration provides the following actions to modify the state of the `number` and an action to reload the
configuration without restarting Home Assistant itself.

| Action | Data | Description |
| ----------- | ----------------------------------------- | ------------------------------------------- |
| `set_value` | `value`<br>`entity_id(s)`<br>`area_id(s)` | Set the value of specific `number` entities |

| Action | Data | Description |
| ----------- | ----------------------------------------- | ----------------------------------------------------------- |
| `decrement` | `entity_id(s)`<br>`area_id(s)` | Decrement the value of specific `number` entities by `step` |
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

where do you see these for number in the core?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You are correct, these actions are from spook and I totally forgot. Closing this PR now.

| `increment` | `entity_id(s)`<br>`area_id(s)` | Increment the value of specific `number` entities by `step` |
| `max` | `entity_id(s)`<br>`area_id(s)` | Set an `number` entity to its minimum value |
| `min` | `entity_id(s)`<br>`area_id(s)` | Set an `number` entity to its maximum value |
| `reload` | | Reload `number` configuration |
| `set_value` | `value`<br>`entity_id(s)`<br>`area_id(s)` | Set the value of specific `number` entities |
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy