title: Madplan path: madplan icon: mdi:chef-hat cards: # 🍽️ Dagens ret - stort fremhævet kort med link til Mealie - type: custom:button-card entity: sensor.dagens_aftensmad show_icon: true show_name: true show_state: true icon: mdi:food-variant name: I dag tap_action: action: url url_path: > [[[ var slug = states['sensor.dagens_aftensmad_slug'].state; if (slug && slug !== '' && slug !== 'unknown') { return 'http://anneclaus.dk:9925/g/home/r/' + slug; } return 'http://anneclaus.dk:9925'; ]]] styles: card: - padding: 16px - background: var(--primary-color) - border-radius: 12px icon: - color: white - width: 40px name: - font-size: 13px - color: "rgba(255,255,255,0.7)" - text-transform: uppercase - letter-spacing: 1px state: - font-size: 22px - font-weight: bold - color: white - padding-top: 4px # 🎵 Musik i køkken + Der er mad - type: grid columns: 2 square: false cards: - type: button name: Musik i køkken icon: mdi:music-note-outline tap_action: action: call-service service: media_player.select_source target: entity_id: media_player.kokken data: source: "1 Family Mix" - type: button name: Der er mad! icon: mdi:silverware-fork-knife tap_action: action: call-service service: script.mad_announcement # 📅 Ugens madplan - type: custom:button-card entity: sensor.mealie_madplan_ugen name: Ugens madplan show_icon: false show_name: true show_state: false styles: card: - padding: 0 - border-radius: 12px name: - font-size: 16px - font-weight: bold - padding: 12px 12px 4px 12px - justify-self: start custom_fields: week: | [[[ if (!entity || !entity.attributes || !entity.attributes.items) return '