I have the following two scripts that use two separate instances of one blueprint.
the scripts are
alias: Notify Movement
sequence:
- service: text.set_value
metadata: {}
data:
value: Remember to Get up and Move so you can be healthy!
target:
entity_id: input_text.awtrix_custom_movementx_custom_movement
- service: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.movement
- delay:
hours: 0
minutes: 0
seconds: 40
milliseconds: 0
- service: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id: input_boolean.movement
mode: single
icon: mdi:calendar-text
alias: Notify Water
sequence:
- service: text.set_value
metadata: {}
data:
value: Remember to Get up and Move so you can be healthy!
target:
entity_id: input_text.awtrix_custom_water
- service: input_boolean.turn_on
metadata: {}
data: {}
target:
entity_id: input_boolean.water
- delay:
hours: 0
minutes: 0
seconds: 40
milliseconds: 0
- service: input_boolean.turn_off
metadata: {}
data: {}
target:
entity_id: input_boolean.water
and the automations are
alias: "Awtrix: Custom Notification For Movement"
description: Send Notification to Awtrix Clock
use_blueprint:
path: smarthomejunkie/awtrix_create_notification.yaml
input:
awtrix_displays:
- 17e4ac7ef929b00f4c5aee92f1824322
toggle_helper: input_boolean.movement
notification_text: "{{ states('input_text.awtrix_custom_movement')}}"
push_icon: "0"
text_case: "2"
show_rainbow: true
play_alert_tone: true
scrollspeed: 72
alias: "Awtrix: Custom Notification For Water"
description: Send Notification to Awtrix Clock
use_blueprint:
path: smarthomejunkie/awtrix_create_notification.yaml
input:
awtrix_displays:
- 17e4ac7ef929b00f4c5aee92f1824322
toggle_helper: input_boolean.water
notification_text: "{{ states('input_text.awtrix_custom_water')}}"
push_icon: "0"
text_case: "2"
show_rainbow: true
play_alert_tone: true
scrollspeed: 72
Is there a way I could pass a variable message from each script so that I only need 1 automation to set the value for input_text?