Automation tracing - condition resolve variables and templates

The automation debugger should show all the resolved variables and templates for the conditions, instead of showing just the result of the condition.

For example, for the following condition, it should show the current illumination value of that device.

condition:
  - type: is_illuminance
    condition: device
    device_id: 264b3960763545dc8768073aa79ce1e4
    entity_id: sensor.illumination_158d0001e47e7a
    domain: sensor
    below: 50

And possibly even more helpful, for templated conditions, like the following, it should show the resolved values of the template variables. For example ( ā€œmobile_app_pixel_4_xlā€ != ā€œmobile_app_pixel_4_xlā€ )

condition:
  - condition: template*
    value_template: '{{trigger.event.data.service != "mobile_app_pixel_4_xl"}}'

I second this, the ability to see exactly what the entity states were at the time of triggering compared to the target states would be invaluable. In the below example it just tells me ā€œStopped because of unknown reason ā€œfailed_conditionsā€ā€ which isnā€™t helpful particularly when there are multiple conditions to debug. Having said that, this new feature is great, just needs a tweak

1 Like

I can see a pull request for that :slight_smile: