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

Lovelace input time for timer in automation

$
0
0

@antpman wrote:

Hello All,

I have an automation that works how I want for the most part but I would love to be able to edit the timer length from love lace. I can’t seem to get the right formatting to make the lovelace input work for my automation.

For this action:

  action:
  - data: {}
    entity_id: timer.garagelight
    service: timer.start

I would like to reference the input_datetime input I made for love lace.

I have tried the following with no luck:

entity_id: timer.garagelight
duration: {{ states.input_datetime.gltime.state }}

*************************************************************

entity_id: timer.garagelight
data_template:    
  duration: >
    {{ states.input_datetime.gltime.state }}

*************************************************************
data:
  entity_id: timer.garagelight
data_template:
  duration: |
    {{ states.input_datetime.gltime.state }}
service: timer.start

Any help would be appreciated.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles



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