I’m having trouble understanding how to expand variables in intents.
which: “sensor.mfc_j491dw_black_ink_remaining”
this_does_work: “{{ states(‘sensor.mfc_j491dw_black_ink_remaining’)}}”
but_this_doesnt_work: “{{ states(’ {{which}} ’ ) }}”
results:
which: “sensor.mfc_j491dw_black_ink_remaining”
this_does_work: “41”
but_this_doesnt_work: “unknown”