Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cheapest hour time range #22

Closed
swepan opened this issue Sep 27, 2023 · 2 comments
Closed

Cheapest hour time range #22

swepan opened this issue Sep 27, 2023 · 2 comments

Comments

@swepan
Copy link

swepan commented Sep 27, 2023

Is it possible to have a sensor that shows calculated cheapest hours?
Ex. cheapest hours start at 21:00 and last until 03:00.
Like attribute starts_at.

@dala318
Copy link
Owner

dala318 commented Dec 2, 2023

For sure, can have a look at it.
But can also be solved by a template sensor

- sensor:
    - name: "Cheap at"
      unique_id: electricity_cheap_at
      state: "{{ state_attr('binary_sensor.nordpool_planner_entity_id', 'starts_at') }}"

Since create individual binary_sensors by the settings it's not obvious how to copy those settings to value sensors.

@dala318
Copy link
Owner

dala318 commented Dec 8, 2023

As each nordpool_panner entity is configured manually as a binary_sensor there is no intuitive way to create these sensor cloned with numerical date-time values. Could be solved together with #23. Until then the template-sensor above will be the easiest solution.

@dala318 dala318 closed this as completed Dec 8, 2023
@dala318 dala318 closed this as not planned Won't fix, can't repro, duplicate, stale Dec 8, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants