-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Open
Description
developers.home-assistant/docs/core/entity.md
Line 117 in cb8bec6
| | force_update | `bool` | `False` | Write each update to the state machine, even if the data is the same. Example use: when you are directly reading the value from a connected sensor instead of a cache. Use with caution, will spam the state machine. | |
I’m not completely sure what “each update” means here.
For example:
I have an entity that updates its state at regular intervals (say, once per hour).
This entity also has attributes that may update independently of the main state.
So If I enable force_update:
- Every scheduled state update generates a new state change event, even when the new state value is the same as the old one. This is clear, but
- If an attribute changes between two state updates, does the attribute change also trigger a state change event because of force_update, or is "force update" only tied to the state value itself?
developers.home-assistant/docs/core/entity.md
Line 117 in cb8bec6
| | force_update | `bool` | `False` | Write each update to the state machine, even if the data is the same. Example use: when you are directly reading the value from a connected sensor instead of a cache. Use with caution, will spam the state machine. | |
Metadata
Metadata
Assignees
Labels
No labels