Answer: Custom Logbook dosent work with templates like this unfortunatly
Hello,
I was using custom logbok and I wanted too hide certain messages depending on the state of a counter, can I not do that??
type: custom:logbook-card
entity: sensor.logger
group_by_day: true
scroll: true
show_history: false
date_format: relative
custom_logs: true
custom_log_map:
- name: Success
icon: mdi:check
icon_color: green
hidden: >-
{{ true if states('counter.test_helper_logbook_state') | int == 1 else
false }}
- name: FAILURE
icon: mdi:alert-circle
icon_color: red
hidden: >-
{{ true if states('counter.test_helper_logbook_state') | int == 0 else
false }}
This is what I have, yet both of them are hidden, despite one of them being true and another not being. Am I missing something??
Any template, even one that says false, causes it to be hidden