Extracting numeric info from "File Sensor" Template issues again! Victron VEDirect Monitoring

Another classic problem. Try this instead:

  - platform: file
    name: Battery absorb/discharge
    file_path: /config/vedirect/bmv700.txt
    value_template: >
      {{ '%0.1f'|format((value | regex_findall_index("'I': '(-*\d+)'") | int) / 1000) }}
    unit_of_measurement: 'amps'

Brilliant. Looks much neater!
Thanks for that.
Appreciate you taking the time to help me out Phil!

Cheers,

J

1 Like