core: Logbook.log doesn't show script entries since 0.112

Since upgrading to 0.112 I do not see my own logbook entries I use this service in many scripts.

Environment

  • Home Assistant Core release with the issue: 0.112.4
  • Last working Home Assistant Core release (if known): 0.111.4
  • Operating environment (OS/Container/Supervised/Core): Home Assistant
  • Integration causing this issue: Logbook
  • Link to integration documentation on our website:

Problem-relevant configuration.yaml

include: entities: - alarm_control_panel.hmip_alarm_control_panel - binary_sensor.fkt_flur - binary_sensor.ftk_wz - climate.bad_jorg - climate.bad_yvonne - climate.fitnessraum - climate.gastewc - climate.gastezimmer - climate.schlafzimmer - cover.rolladen_kuche - cover.rolladen_wohnzimmer - light.gastezimmer - light.fitnessraum - light.office - light.kuche - light.wohnzimmer - light.schlafzimmer - light.gartenleuchten - person.jorg - person.yvonne - remote.wohnzimmer - switch.kuchenlicht - switch.luftbefeuchter - switch.ventilator - switch.zone_1_zone

    - service: logbook.log
      data_template:
        name: "Rain_delay_on"
        message: "has been activated"

and

script:
add_log:
  sequence:
    - service: logbook.log
      data_template:
        name: "{{ name }}"
        message: "{{ message }}"
```

## Traceback/Error logs
<!--
  If you come across any trace or error logs, please provide them.
-->

`no logs

```

## Additional information

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

I can manually post log messages with a domain and an entity. As soon as I skip the entity, it does not work.

screenshot

I can see the events that I fired using logbook.log, but only the first one worked. The most recent one has correctly added “logbook” as default domain:

4134467 logbook_entry {"name": "Kitchen", "message": "is being used", "domain": "logbook"} LOCAL 2020-07-14 08:56:43.241240 2020-07-14 08:56:43.255843 d1cbea1bcb0e41c0a44c1735b557dd68 4134464 logbook_entry {"name": "Kitchen", "message": "is being used", "domain": "light"} LOCAL 2020-07-14 08:56:32.676595 2020-07-14 08:56:32.695279 0de2106400804b7ba4e4c5f9dae18693 4134461 logbook_entry {"name": "Kitchen", "message": "is being used", "domain": "logbook"} LOCAL 2020-07-14 08:56:16.055802 2020-07-14 08:56:16.082709 164523a265784538ad1ebc7167d9e688 4134454 logbook_entry {"name": "Kitchen", "message": "is being used", "domain": "light", "entity_id": "light.kuche"} LOCAL 2020-07-14 08:55:48.602701 2020-07-14 08:55:48.619886 4dcad05959794aaabe50b0b5f967cd30