Juicenet working with Energy dashboard

I got my Juicenet info on the energy dashboard thought I’d just quick share the template sensor I used to make it happen

template:
  - sensor:
     - name: juicebox_kwh
       unit_of_measurement: 'kWh'
       state: "{{states.sensor.juicebox_energy_added.state|float /1000}}"
       state_class: "total_increasing"