Skip to content

Template integration #50

Closed Answered by mr-p666
derbadewaschl asked this question in Q&A
Oct 8, 2023 · 2 comments · 10 replies
Discussion options

You must be logged in to vote

Hej,
I'm still new to HASS, but I don't think it's able to implement a template sensor as a helper like you'd like.
I implemented it directly into my configuration.yaml file and used a second trigger when starting HASS:

template:
  - trigger:
      - platform: time
        at: "00:00:00"
      - platform: homeassistant
        event: start
    action:
      - service: epex_spot.get_lowest_price_interval
        data:
          earliest_start: "00:00:00"
          latest_end: "23:59:59"
          duration:
            hours: 3
        response_variable: resp
    sensor:
      - name: "EPEX Start 24h Low Period"
        device_class: timestamp
        state: "{{ resp.start is defined and re…

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
10 replies
@mampfes
Comment options

@derbadewaschl
Comment options

@mampfes
Comment options

@mr-p666
Comment options

@mampfes
Comment options

Answer selected by derbadewaschl
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants