Template sensor for net_price_ct_per_kwh #70
Replies: 1 comment 1 reply
-
(not tested):
The available device classes are described here: https://developers.home-assistant.io/docs/core/entity/sensor/#available-device-classes |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I have a template sensor for the best time between 21:00 - 06:00 but also need a sensor for the price between the timeframe.
`# um zu wissen wenn in der Nacht 1,5h der beste Preis ist
trigger:
at: "15:00:00" # nach dem holen der neuen Daten
action:
data:
earliest_start: "21:00:00"
latest_end: "06:00:00"
duration:
hours: 1
minutes: 30
response_variable: resp
sensor:
unique_id: epex_low_intervall_night_1_5h
device_class: timestamp
state: "{{ resp.start is defined and resp.start }}"`
And now I want to make a template sensor for the same time, but with the attribute of price "net_price_ct_per_kwh:" that I can use it in automation. Here I don't know how to set the device_class and state of the sensor?
sensor:
unique_id: epex_low_intervall_night_1_5h_price
device_class: ?
state: ?
Can anyone give me a tip !
Thx aichingerk
Beta Was this translation helpful? Give feedback.
All reactions