How can I get an template with this attribute:
how is the state_attr
used for this?
{{state_attr('sensor.octoprint_print_estimated_time', 'filament') }}
gets this output:
{'tool0': {'length': 6216.360560000033, 'volume': 0.0}}
How can I get an template with this attribute:
how is the state_attr
used for this?
{{state_attr('sensor.octoprint_print_estimated_time', 'filament') }}
gets this output:
{'tool0': {'length': 6216.360560000033, 'volume': 0.0}}
Try:
{{ states.sensor.octoprint_print_estimated_time.attributes['filament']['tool0']['length'] }}
Did that do it?
Yes! Thanks!