Hello! I’m trying to make a blueprint that allows me to quickly add filament rolls and colors via rfid tagging, I was hoping to get the current RFID tag value as a default setting so I didn’t have to copy and paste, but I’m not having any luck. Can someone guide me?
blueprint:
name: Filament Change
description: Change filament helpers based on RFID Tag
domain: automation
input:
new_tag:
name: Tag on this Roll
default: ' {{ the_tag }} '
brand:
name: The Current Brand
color:
name: The Current Color
offset:
name: Scale Tare Offset
description: "The empty weight of the spool"
default: "180"
alias: The new Roll
description: ""
trigger:
- platform: tag
tag_id: !input new_tag
condition: []
variables:
the_tag: "{{ states('sensor.current_filament_tag') }}"
action:
- service: input_text.set_value
data:
value: !input brand
target:
entity_id: input_text.filament
- service: input_text.set_value
data:
value: !input color
target:
entity_id:
- input_text.filament_color
- service: input_number.set_value
data:
value: !input offset
target:
entity_id: input_number.scale_tare_offset
mode: single