8000 Logbook does not support template · Issue #919 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Logbook does not support template #919

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

Closed
kennedyshead opened this issue Jan 17, 2016 · 3 comments
Closed

Logbook does not support template #919

kennedyshead opened this issue Jan 17, 2016 · 3 comments

Comments

@kennedyshead
Copy link
Contributor

Made a script with:

script:
  alarm:
    alias: Alarm
    sequence:
      - event: LOGBOOK_ENTRY
        event_data:
          name: Alarm
          message: is turning {% if is_state('switch.hallen_camera_recording', 'on') and is_state('switch.printer_camera_recording', 'on') %}on{% else %}off{% endif %}

But logbook shows
screen shot 2016-01-18 at 11 01 50

@balloob
Copy link
Member
balloob commented Jan 17, 2016

This needs more information.

@kennedyshead
Copy link
Contributor Author

sorry about not providing info initially.

@balloob
Copy link
Member
balloob commented Jan 19, 2016

This functionality would not be possible using the current way logbook entries are recorded (they are just plain events).

We could provide this functionality by having the logbook expose a service that will take in a template string, render it and fire the event to record the entry.

@home-assistant home-assistant locked and limited conversation to collaborators Mar 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants
0