thomasloven / lovelace-template-entity-row

🔹 Display whatever you want in an entities card row.
MIT License
210 stars 16 forks source link

Display error in Home Assistant 0.107.0b0 #17

Closed stast1 closed 4 years ago

stast1 commented 4 years ago

See screenshot: image

      - type: 'custom:template-entity-row'
        icon: 'mdi:timer'
        name: Котел работал сегодня
        state: "{{ (now().strftime('%s') | int + states('sensor.boiler_on_today') | float * 3600 - now().strftime('%s') | int) | timestamp_custom('%H:%M', false) }}"

      - type: 'custom:template-entity-row'
        icon: 'mdi:timer'
        name: Кондиционер работал сегодня
        state: "{{ (now().strftime('%s') | int + states('sensor.ac_on_today') | float * 3600 - now().strftime('%s') | int) | timestamp_custom('%H:%M', false) }}"