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

Time Constraints input time update #281

Closed
dankarization opened this issue Aug 1, 2022 · 4 comments
Closed

Time Constraints input time update #281

dankarization opened this issue Aug 1, 2022 · 4 comments

Comments

@dankarization
Copy link

dankarization commented Aug 1, 2022

Description

Now you can only use start_time and end_time as hardcoded variables or with sunset values. I think it will be even more useful to implement any datetime variables there. With this, user can easily change all values for entity controller at the same time through UI just changing 2 datetime variables.
Same is useful for night mode times.

Configuration

motion_light_sun:
  sensor: binary_sensor.living_room_motion
  entity: light.table_lamp
  start_time: input_datetime.daylight
  end_time: input_datetime.nightlight

Steps to reproduce

Well, none

Expected behavior

Also none

Actual Behaviour

Still none

Logs

nope

Provide logs at DEBUG level. 

nope

Version

9.5.2
@danobot
Copy link
Owner

danobot commented Jun 20, 2023

This is basically asking for templating which I attempted in #150 but eventually gave up due to technical challenges.

@danobot danobot closed this as completed Jun 20, 2023
@dankarization
Copy link
Author

At least add dusk and rising please, not only sunset and sunrise :(

@danobot
Copy link
Owner

danobot commented Jun 27, 2023

What is dusk and rising? You can probably achieve the same effect using sunset offsets.

@dankarization
Copy link
Author

Maybe i was using wrong translations. HA has more sun parameters besides sunset and sunrise.
image

You can try and use offsets, but technically all it's movement, so as all of these values will change non-linear throughout the year, + they are all different on different locations, which needs you to change offsets for this too.

This issue was closed.
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