Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95397

Template from Wh to KWh

$
0
0

@Klagio wrote:

Hi I have this REST data

“emeters”:[{“power”:811.25,“reactive”:-507.50,“voltage”:227.16,“is_valid”:true,“total”:2264.8,“total_returned”:0.0},

using this REST sensor I able to get the ENERGY value but its in Wh, I need KWh.

Please help in how to change the template


  - platform: rest
    resource: http://192.168.1.150/status
    name: Potenza Generale Consumata
    value_template: '{{ value_json.emeters[0]["total"]  }}'
    scan_interval: 10
    unit_of_measurement: "KWh"

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95397

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>