Highest hour - directly as time to be used in automation #38
Replies: 3 comments 2 replies
-
Just to be curios: Wouldn't the rank sensor together with the following automation do the same?
|
Beta Was this translation helpful? Give feedback.
-
Another questino, mampfes: How would you turn off the device after the hour is over? |
Beta Was this translation helpful? Give feedback.
-
I implemented a (hopefully) better solution for the cheapest / most expensive duration problem: You can now run a ServiceCall and let the integration calculate the best timeframe for your appliance. The ServiceCall response contains the start- and end-time and the average price. This can be used directly in automations or together with the new Actions for new trigger template entities. The documentation can be found here (not in main branch yet!): The code is already in the main branch. You can easily get it via HACS if you select main instead of a release number. It would be nice if s.o. could test this out and let me know how it works. Disclaimer: |
Beta Was this translation helpful? Give feedback.
-
Hi,
I adopted the low sensor demo code a bit to a) show me the highest price (I want to get a push notification then) and b) directly output a timestamp so it can be used in time based automations (using the UI for automations).
The sensor looks like this:
The automation like this. It uses pushover to deliver my notification:
Beta Was this translation helpful? Give feedback.
All reactions