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 fired in state? #36

Open
hvorragend opened this issue Jul 11, 2021 · 2 comments
Open

Time fired in state? #36

hvorragend opened this issue Jul 11, 2021 · 2 comments

Comments

@hvorragend
Copy link

I am trying to create event sensors for homematic.keypress events.

My problem is that I alway have PRESS_SHORT in my state. So that I cannot see if this entity has changed (the value). I just the the last change time. It does't make sense inside a logbook card. 😄

Is it possible store the event time in this new entity? I'be tried the following without success:

- platform: eventsensor
  name: Doorbell
  unique_id: eventsensor_doorbell
  event: homematic.keypress
  # state: param
  state: time_fired
  event_data:
    name: Doorbell
    param: PRESS_SHORT
    channel: 1

Or is it possible to clear the state content similar as "off_delay: 1" (see binary_sensor)?

@hvorragend
Copy link
Author

@Mariusthvdb
Copy link

but how? see: https://community.home-assistant.io/t/trigger-template-based-on-hue-switches-need-event-time-fired/364084

need the time_fired to be part of the trigger, and dont know how to do that....

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