Hello,
I’m new to using YAML and trying to get the user input from an answer to a notification to increase a counter. Not quite sure where I’m going wrong. My code is below.
Apologies if this is formatted poorly.
alias: notification test
description: ""
trigger: []
condition: []
action:
- service: notify.mobile_app_nokia_xr21
data:
message: How many?
data:
actions:
- action: REPLY
title: Answer
- wait_for_trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: REPLY
timeout:
hours: 0
minutes: 3
seconds: 0
milliseconds: 0
- variables:
delay: "{{ trigger.event.data.reply_text | int }}"
- repeat:
count: "{{ delay|int }}"
sequence:
- service: counter.increment
data: {}
target:
entity_id: counter.test
mode: parallel