pnbruckner/ha-sun2

Request/Enhancement: Enable entities to exist as Date/Time helpers

FirstRulez opened this issue · 2 comments

The purpose of this request is so that I can use these date/time sensors within Automations and they are selectable as a Date/Time helper in an Automation Condition

image

According to the docs you can already do this:

or another sensor entity containing a timestamp with the “timestamp” device class, can be used instead.

E.g., I just tried this:

automations:
- trigger:
  - platform: homeassistant
    event: start
  condition:
  - condition: time
    before: sensor.sunset
  action:
  - event: TEST

And it fired the event.

The problem seems to be the frontent. It's only allowing selection of input_datetime entities when it should also allow sensor entities that have a timestamp device class (which the sun2 "point in time" sensors do. have) You should open an issue with HA (or its frontend.)

The problem seems to be the frontent. It's only allowing selection of input_datetime entities when it should also allow sensor entities that have a timestamp device class (which the sun2 "point in time" sensors do. have) You should open an issue with HA (or its frontend.)

Thank you. appreciate the feedback - I will try to set up the automations using the config files (I'm not very good at it, but I think your help above should set me on the right path.