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

Newer template sensor config type with split config

$
0
0

I’m attempting to adhere to standards and leverage the newer standard for template sensors.

I leverage a split config where I have a sensors.yaml file.

Typically I would add a template sensor like this which works.

- platform: template
    sensors:
      speedtest_download_rounded:
        friendly_name: Speed Test Download Rounded
        unique_id: sensor.speedtest_download_rounded
        value_template: '{{ states("sensor.speedtest_download") | round(0) }}'

Attempting to leverage the new standard I have this:

- template:
      - sensor:
          - name: "Runtime Remaining"
            state: "{{ states('input_text.sprinkler_qr_timer_zone1') }}"

But this format fails with error:
Invalid config for [sensor]: required key not provided @ data[‘platform’]. Got None.

I’m sure this is simple but I have yet to figure it out with the new formatting.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107110

Trending Articles



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