Meshtastic Data via REST JSON Sensor

I was looking to pull JSON data from my solar Meshtastic node to track the battery and create alerts/automations. After some troubleshooting with the template formatting, I have working REST sensors coming from the node:

rest:
  - resource: "http://192.168.3.249/json/report"
    sensor:
      - name: "Basemesh REST Battery"
        value_template: "{{ value_json['data']['power']['battery_percent'] }}"
        device_class: "battery"
        unit_of_measurement: "%"

      - name: "Basemesh REST Battery Voltage"
        value_template: "{{ value_json['data']['power']['battery_voltage_mv'] }}"
        unit_of_measurement: "mV"

If you are interested, there is a custom integration for Meshtastic