Hi all, I’m just trying to create my first blueprint, and I’m hoping for some help getting over the line, looks like I could be making a number of syntax errors in my yaml code. Any help would be appreciated, the syntax is accepted in File Editor.
blueprint:
name: Time based car home unlocked notification
description: Notify mobile with actions, if car is home and unlocked after a fixed time.
domain: automation
### source_url: https://github.com/home-assistant/core/blob/d50b700dc7434309c6795b30bfbe8d70da0b8288/homeassistant/components/automation/blueprints/motion_light.yaml
input:
lock_entity:
name: Cars lock entity
description: The lock state will be used as a trigger for the automation
selector:
entity:
domain: lock
# device_class: lock
tracker_condition:
name: Car Device Tracker
selector:
entity:
domain: device_tracker
time_condition:
name: Time of reminder
description: Time after which an unlocked car will lead to a notifcation
default: 20:00
selector:
time:
camera_entity:
name: Snapshot camera source
description: Camera entity used for notification attachment
selector:
entity:
domain: camera
target_device:
name: Notification action target device
description: The device the notification will be sent to
target:
device:
integration: mobile_app
push_category:
name: Push category identifier
description: Optional push category identifier (requires an additional config yaml and mobile app push setup)
selector:
text:
default: "CAMERA"
notification_message:
name: Notification message
description: The message to send as a reminder in the notification
selector:
text:
default: "🔑 It's 8pm and the Car is still open!!"
trigger:
platform: state
entity_id: !input lock_entity
to: "unlocked"
condition:
- condition: state
entity_id: !input tracker_condition
state: "home"
- condition: time
after: !input time_condition
action:
data:
attachment:
content-type: jpeg
entity_id: !input camera_entity
push:
category: !input push_category
message: !input notification_message
service: notify.notify
target: !input target_device
initial_state: true
mode: single
Getting the following errors in the Blueprints UI page:
Invalid blueprint: extra keys not allowed @ data['blueprint']['input']['notification_message']['selector']['default']. Got None extra keys not allowed @ data['blueprint']['input']['push_category']['selector']['default']. Got None extra keys not allowed @ data['blueprint']['input']['target_device']['target']. Got OrderedDict([('device', OrderedDict([('integration', 'mobile_app')]))])