mirror of
https://github.com/home-assistant/home-assistant.io.git
synced 2025-12-10 00:30:02 -06:00
Rename 'action' to 'target_state' in documentation (#41661)
This commit is contained in:
parent
c1a6b84e38
commit
47f52eb576
@ -108,7 +108,7 @@ The `manual_alarm_bad_code_attempt` event is fired when an attempt to change the
|
||||
#### Event data
|
||||
|
||||
- **entity_id** (string): The entity ID of the alarm control panel (for example, `alarm_control_panel.my_alarm`).
|
||||
- **action** (string): The attempted action or target state (for example, `disarmed`, `armed_away`, `armed_home`).
|
||||
- **target_state** (string): The attempted target state (for example, `disarmed`, `armed_away`, `armed_home`).
|
||||
- **user_id** (string): The user ID who initiated the service call (if available).
|
||||
|
||||
Example automation trigger:
|
||||
@ -125,7 +125,7 @@ automation:
|
||||
message: >
|
||||
Invalid alarm code attempt for {{ trigger.event.data.entity_id }}
|
||||
by user ID {{ trigger.event.data.user_id }}
|
||||
while attempting action {{ trigger.event.data.action }}.
|
||||
while attempting to set state {{ trigger.event.data.target_state }}.
|
||||
```
|
||||
|
||||
## State machine
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user