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

Simple template helper

$
0
0

Please correct me if I am wrong, but is seems I cannot create a simple template helper via the UI.

In my sensor.yaml I can create

- platform: template
  sensors:
    octopus_current_rate:
      value_template: >
       {{(float(states('sensor.octopus_energy_electricity_xxxx_current_rate')) * 100) | round(2) }}
      unit_of_measurement: "p/kWh"

It seems I cannot do this via the UI. The ‘Helpers’ want to add all sorts of junk (like step, max, min etc).

2 posts - 2 participants

Read full topic


Viewing all articles
Browse latest Browse all 106176

Trending Articles



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