# Poll State
Polls for the state at regular intervals, optionally also outputting at the start and when the state changes. Useful for either alert for non-communicating devices (time since change > 1 day for example) or dashboard graphs with consistent interval charts
# Entity ID required
The entity id of the entity to poll for.
# Update Interval
The amount of time between checking/sending updates.
# If State
If the conditional statement is evaluated as true send the message to the first output otherwise send it to the second output. If blank there will only be one output.
# State Type
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
# Output Initially
Output once on startup/deploy then on each interval
# Expose to Home Assistant
Creates a switch within Home Assistant to enable/disable this node. This feature requires Node-RED custom integration (opens new window) to be installed in Home Assistant
entity_id of changed entity
The last known state of the entity
Human readable format string of time since last updated, example "1 hour ago"
Number of milliseconds since last changed
# Version 1
- "if state"/"halt if" will now send the message to the first output if true and to the second if not. The old behavior, sending the message to the second output if true, will continue to be in place until you edit one of the existing nodes via the UI and at that time the outputs will automatically be switched.