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

Command_line not accepting {{sensors}}

$
0
0

@mrand wrote:

Short version: I’ve created an overly simple example to show what I’m trying to do, and have verified in the template editor that {{ states(“sensor.smart_meter_correlationid”) }} evaluates properly. So why does HA not put it in the command_line sensor?

- platform: template
  sensors:
    smart_meter_correlationid:
      value_template: 643012

- platform: command_line
  name: Smart Meter Test
  scan_interval: 7200
  command: 'Testing it here: {{ states("sensor.smart_meter_correlationid") }} '

My log file shows that rather than putting the value in, it is “unknown”:

2020-04-16 09:28:23 ERROR (SyncWorker_6) [homeassistant.components.command_line.sensor] Command failed: Testing it here: unknown

I assume it’s some sort of formatting issue on my part, but I’ve tried all sorts of variations for 3 days now and can’t figure it out. It seems like a start-up race condition, but if that’s the case, why are more people not having problems with it?

Thanks for any ideas!

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95468

Trending Articles



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