Skip to content

Commit a82f8cf

Browse files
Copilotzachowj
andcommitted
docs: add "Output on change" documentation to poll-state node
Co-authored-by: zachowj <37859597+zachowj@users.noreply.github.com>
1 parent 64d2ca0 commit a82f8cf

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

docs/node/poll-state.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,17 @@ Use the **output properties** for state conversion moving forward.
3535

3636
Convert the state of the entity to the selected type. Boolean will be converted to true based on if the string is equal by default to (y|yes|true|on|home|open). Original value stored in msg.data.original_state
3737

38-
### Output Initially
38+
### Output on change
39+
40+
- Type: `boolean`
41+
42+
When enabled, the node will output a message whenever the entity's state changes, in addition to the regular polling intervals. This ensures the node responds immediately to state changes that occur between polls, rather than waiting for the next scheduled poll.
43+
44+
::: tip
45+
If you only want output when the entity's state changes (without polling), use the "events: state" or "trigger: state" nodes instead.
46+
:::
47+
48+
### Output on connect
3949

4050
- Type: `boolean`
4151

0 commit comments

Comments
 (0)