gadgetchnnel / lovelace-home-feed-card

A custom Lovelace card for displaying a combination of persistent notifications, calendar events, and entities in the style of a feed.
266 stars 23 forks source link

Markdown support? #71

Closed pex81 closed 3 years ago

pex81 commented 3 years ago

Hi, I use this card in combination with persistent notification and it works great. What I can't get to work is the "new line" markdown where in notifications ha, it works. The bold works, while the "new line" does not. Is it possible to solve?

Schermata 2021-06-20 alle 09 24 13 Schermata 2021-06-20 alle 09 24 28

My automation:

- alias: "Notifica RAID Synology DSM"
  trigger:
    - platform: state
      entity_id: 
        - sensor.nas_volume_1_status
        - sensor.nas_volume_2_status
      from: 'normal'
      to: 'degrade' 
  action:
    - service: persistent_notification.create
      data:
        title: "RAID Synology"
        message: "Volume 1 **{{ states('sensor.nas_volume_1_status') }}** \n Volume 2 {{ states('sensor.nas_volume_2_status') }}"
        notification_id: synology_raid 

My card, I use in combination with custom:button-card

      type: custom:home-feed-card
      style: |
        ha-card {
          color: var(--header-text-color);
          box-shadow: none !important;
        }
        state-badge {
          color: var(--button-on-icon-color);
        }                       
        hui-timestamp-display {
          display: none !important;
        }        
      show_empty: false
      show_notification_title: true
gadgetchnnel commented 3 years ago

Can you please try this in the latest version, 0.6.1, which has a fix for this?