Bingo. Thank you.
I misunderstood. Sorry.
Here is an example of one that quit working. I have a couple of z-wave Homeseer switches with individually addressable LEDs. I have them set to use as door indicators for all the exterior doors in my home. They are all set up identically except for using different LEDs for different doors. The Back Door is working, the Front Door is not.
Automation:
alias: Door Status Automation - Front Door
description: ""
trigger:
- type: opened
platform: device
device_id: e61cedf0caa3be39fcaeb3b56c48c00b
entity_id: 19cf8e2a566d8424bbb7f37d76dae5da
domain: binary_sensor
- type: not_opened
platform: device
device_id: e61cedf0caa3be39fcaeb3b56c48c00b
entity_id: 19cf8e2a566d8424bbb7f37d76dae5da
domain: binary_sensor
- platform: device
device_id: ea3165b7a5a54c7076fa5e7d947c3845
domain: lock
entity_id: f0f90dd192b24bea48c467e3276775f8
type: unlocked
- platform: device
device_id: ea3165b7a5a54c7076fa5e7d947c3845
domain: lock
entity_id: f0f90dd192b24bea48c467e3276775f8
type: locked
condition: []
action:
- service: script.door_status_script_front_door
data: {}
mode: single
Script:
alias: Door Status Script - Front Door
sequence:
- alias: Front Door Actions
choose:
- conditions:
- condition: and
conditions:
- condition: device
device_id: ea3165b7a5a54c7076fa5e7d947c3845
domain: lock
entity_id: f0f90dd192b24bea48c467e3276775f8
type: is_unlocked
- type: is_not_open
condition: device
device_id: e61cedf0caa3be39fcaeb3b56c48c00b
entity_id: 19cf8e2a566d8424bbb7f37d76dae5da
domain: binary_sensor
alias: Front Door Unlocked & Closed
sequence:
- alias: "Dining Room & MBR #7 SOLID GREEN"
parallel:
- device_id: b9dab53161ce4bc98cefb79e74084cd5
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 27
bitmask: null
subtype: 27 (Status LED 7 Color) on endpoint 0
value: 2
alias: "Dining Room #7 GREEN"
- device_id: b9dab53161ce4bc98cefb79e74084cd5
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 31
bitmask: 64
subtype: 31[0x40] on endpoint 0 (LED 7 Blink Status) on endpoint 0
value: 0
alias: "Dining Room #7 SOLID"
- alias: "MBR #7 Green"
device_id: 05e83cca4e12e74305737e43c9968fce
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 27
bitmask: null
subtype: 27 (Status LED 7 Color) on endpoint 0
value: 2
- alias: "MBR #7 SOLID"
device_id: 05e83cca4e12e74305737e43c9968fce
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 31
bitmask: 64
subtype: 31[0x40] on endpoint 0 (LED 7 Blink Status) on endpoint 0
value: 0
alias: Front Door Closed & Unlocked - SOLID GREEN
- conditions:
- alias: "Front Door Open & Unlocked "
condition: and
conditions:
- type: is_open
condition: device
device_id: e61cedf0caa3be39fcaeb3b56c48c00b
entity_id: 19cf8e2a566d8424bbb7f37d76dae5da
domain: binary_sensor
- condition: device
device_id: ea3165b7a5a54c7076fa5e7d947c3845
domain: lock
entity_id: f0f90dd192b24bea48c467e3276775f8
type: is_unlocked
sequence:
- alias: "Dining Room & MBR #7 - BLINKING GREEN"
parallel:
- device_id: b9dab53161ce4bc98cefb79e74084cd5
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 27
bitmask: null
subtype: 27 (Status LED 7 Color) on endpoint 0
value: 2
alias: "Dining Room #7 - GREEN"
- device_id: b9dab53161ce4bc98cefb79e74084cd5
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 31
bitmask: 64
subtype: 31[0x40] on endpoint 0 (LED 7 Blink Status) on endpoint 0
value: 1
alias: "Dining Room #7 - BLINK"
- device_id: 05e83cca4e12e74305737e43c9968fce
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 27
bitmask: null
subtype: 27 (Status LED 7 Color) on endpoint 0
value: 2
alias: "MBR #7 - GREEN"
- device_id: 05e83cca4e12e74305737e43c9968fce
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 31
bitmask: 64
subtype: 31[0x40] on endpoint 0 (LED 7 Blink Status) on endpoint 0
value: 1
alias: "MBR #7 - BLINK"
alias: Front Door Open & Unlocked - BLINKING GREEN
- conditions:
- condition: and
conditions:
- type: is_not_open
condition: device
device_id: e61cedf0caa3be39fcaeb3b56c48c00b
entity_id: 19cf8e2a566d8424bbb7f37d76dae5da
domain: binary_sensor
- condition: device
device_id: ea3165b7a5a54c7076fa5e7d947c3845
domain: lock
entity_id: f0f90dd192b24bea48c467e3276775f8
type: is_locked
sequence:
- parallel:
- device_id: b9dab53161ce4bc98cefb79e74084cd5
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 27
bitmask: null
subtype: 27 (Status LED 7 Color) on endpoint 0
value: 0
- device_id: 05e83cca4e12e74305737e43c9968fce
domain: zwave_js
type: set_config_parameter
endpoint: 0
parameter: 27
bitmask: null
subtype: 27 (Status LED 7 Color) on endpoint 0
value: 0
alias: Front Door Closed & Locked - OFF
mode: single
icon: mdi:door-closed
Trace:
{
"trace": {
"last_step": "action/0",
"run_id": "5fdc3a7aa7de8e599d5677531291a938",
"state": "stopped",
"script_execution": "error",
"timestamp": {
"start": "2023-12-12T17:52:18.999127+00:00",
"finish": "2023-12-12T17:52:19.014531+00:00"
},
"domain": "automation",
"item_id": "1702366958999",
"error": "extra keys not allowed @ data['alias']",
"trigger": "state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"trace": {
"trigger/1": [
{
"path": "trigger/1",
"timestamp": "2023-12-12T17:52:18.999238+00:00",
"changed_variables": {
"this": {
"entity_id": "automation.door_status_automation_front_door",
"state": "on",
"attributes": {
"id": "1702366958999",
"last_triggered": "2023-12-12T17:52:06.805497+00:00",
"mode": "single",
"current": 0,
"friendly_name": "Door Status Automation - Front Door"
},
"last_changed": "2023-12-12T17:18:11.301341+00:00",
"last_updated": "2023-12-12T17:52:06.808004+00:00",
"context": {
"id": "01HHFJGM4NJWJRJ4RVY94SX4WX",
"parent_id": "01HHFJGM4N3Q8V9D88DMSC1B37",
"user_id": null
}
},
"trigger": {
"id": "1",
"idx": "1",
"alias": null,
"platform": "device",
"entity_id": "binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"from_state": {
"entity_id": "binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"state": "on",
"attributes": {
"device_class": "door",
"friendly_name": "Front Door Open/Close Sensor Window/door is open"
},
"last_changed": "2023-12-12T17:52:06.805149+00:00",
"last_updated": "2023-12-12T17:52:06.805149+00:00",
"context": {
"id": "01HHFJGM4N3Q8V9D88DMSC1B37",
"parent_id": null,
"user_id": null
}
},
"to_state": {
"entity_id": "binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"state": "off",
"attributes": {
"device_class": "door",
"friendly_name": "Front Door Open/Close Sensor Window/door is open"
},
"last_changed": "2023-12-12T17:52:18.997976+00:00",
"last_updated": "2023-12-12T17:52:18.997976+00:00",
"context": {
"id": "01HHFJH01N6894ZYT52FQKEKQY",
"parent_id": null,
"user_id": null
}
},
"for": null,
"attribute": null,
"description": "state of binary_sensor.garage_door_tilt_sensor_window_door_is_open"
}
}
}
],
"action/0": [
{
"path": "action/0",
"timestamp": "2023-12-12T17:52:19.000616+00:00",
"child_id": {
"domain": "script",
"item_id": "door_status_script_front_door",
"run_id": "f284b7f2fd59039869e424aea62496a4"
},
"changed_variables": {
"context": {
"id": "01HHFJH01QDFQ98R410KTQE4NX",
"parent_id": "01HHFJH01N6894ZYT52FQKEKQY",
"user_id": null
}
},
"error": "extra keys not allowed @ data['alias']",
"result": {
"params": {
"domain": "script",
"service": "door_status_script_front_door",
"service_data": {},
"target": {}
},
"running_script": true
}
}
]
},
"config": {
"id": "1702366958999",
"alias": "Door Status Automation - Front Door",
"description": "",
"trigger": [
{
"type": "opened",
"platform": "device",
"device_id": "e61cedf0caa3be39fcaeb3b56c48c00b",
"entity_id": "19cf8e2a566d8424bbb7f37d76dae5da",
"domain": "binary_sensor"
},
{
"type": "not_opened",
"platform": "device",
"device_id": "e61cedf0caa3be39fcaeb3b56c48c00b",
"entity_id": "19cf8e2a566d8424bbb7f37d76dae5da",
"domain": "binary_sensor"
},
{
"platform": "device",
"device_id": "ea3165b7a5a54c7076fa5e7d947c3845",
"domain": "lock",
"entity_id": "f0f90dd192b24bea48c467e3276775f8",
"type": "unlocked"
},
{
"platform": "device",
"device_id": "ea3165b7a5a54c7076fa5e7d947c3845",
"domain": "lock",
"entity_id": "f0f90dd192b24bea48c467e3276775f8",
"type": "locked"
}
],
"condition": [],
"action": [
{
"service": "script.door_status_script_front_door",
"data": {}
}
],
"mode": "single"
},
"blueprint_inputs": null,
"context": {
"id": "01HHFJH01QDFQ98R410KTQE4NX",
"parent_id": "01HHFJH01N6894ZYT52FQKEKQY",
"user_id": null
}
},
"logbookEntries": [
{
"name": "Door Status Automation - Front Door",
"message": "triggered by state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"source": "state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"entity_id": "automation.door_status_automation_front_door",
"context_id": "01HHFJH01QDFQ98R410KTQE4NX",
"when": 1702403538.999366,
"domain": "automation"
},
{
"name": "Door Status Script - Front Door",
"message": "started",
"entity_id": "script.door_status_script_front_door",
"context_id": "01HHFJH01QDFQ98R410KTQE4NX",
"when": 1702403539.000957,
"domain": "script",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Door Status Automation - Front Door",
"context_message": "triggered by state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"context_source": "state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"context_entity_id": "automation.door_status_automation_front_door"
},
{
"when": 1702403539.001172,
"state": "on",
"entity_id": "script.door_status_script_front_door",
"icon": "mdi:door-closed",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Door Status Automation - Front Door",
"context_message": "triggered by state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"context_source": "state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"context_entity_id": "automation.door_status_automation_front_door"
},
{
"when": 1702403539.009446,
"state": "off",
"entity_id": "script.door_status_script_front_door",
"icon": "mdi:door-closed",
"context_event_type": "automation_triggered",
"context_domain": "automation",
"context_name": "Door Status Automation - Front Door",
"context_message": "triggered by state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"context_source": "state of binary_sensor.garage_door_tilt_sensor_window_door_is_open",
"context_entity_id": "automation.door_status_automation_front_door"
}
]
}
When I setup the automations and scripts, they may work at first when I test them either by physically running them or choosing “run automation” or “run script” in HA. But then they start giving me this message:
Failed to call service script/door_status_script_front_door. extra keys not allowed @ data['alias']
which I think I’m also seeing mentioned in the trace.
As for the automation that this thread was originally started over, I deleted and rebuilt it and now it is working properly. That said, I have several others that are not working (like the one above) and I cannot figure out why. And at one time, it did work (which is what makes it particularly frustrating). But I don’t want to continue to have to rebuild automations and scripts that did work, and stop working.
Thanks for your help.