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

Timestamp_custom "%" issues

$
0
0

@elardner wrote:

I’m working on some calculations with the Xfinity usage add-on and having trouble with the timestamp_custom portion of date formatting. I’ve got the following code in as a sensor:

    xfinity_bill_end_date:
      value_template: '{{ as_timestamp(strptime(states.sensor.xfinity_usage.attributes.end_date, "%m/%d/%Y")) | timestamp_custom('%A, %B %d') }}'
       friendly_name: 'Xfinity Billing Period Start'

and am getting an error during configuration check:

while scanning for the next token found character '%' that cannot start any token in "/config/sensors.yaml"

Fairly certain I am using the timestamp_custom integration correctly, and have had success with the same code with the template developer tool.

Posts: 2

Participants: 2

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>