ITADN

[Bug]: Sun identity instead of service entitiy

#295OpenBerserkerRudi 创建于 2026-03-01
bugStale
B
BerserkerRudicommented
### Short summary 📝 sun entity displayed instead of inspection time, Audi Ad Blue milage max is not shown correct, eg. if i type in 20.000 miles, it wont shoe anywere and the bar is not adjusted ### Detailed description 📋 if you select a service entity to display in a subbutton you will end up with the sun identity. ### Version 📦 v1.11.0 ### Card Configuration ```yaml type: custom:vehicle-status-card name: Vehicle Status Card images: - image: /api/image/serve/7208f5d7230c85cc9ef81d7cc4086510/512x512 - image: /api/image/serve/df2dd72a2316cea644fb50e2b22ee2d9/512x512 - image: /api/image/serve/335bf8c18247685a739f9b23c6a221a5/512x512 - image: /api/image/serve/156152993a766490e1b6fc136a2a4817/512x512 - image: /api/image/serve/682e59ad835c841a36ea746d81619896/512x512 - image: /api/image/serve/82cd7f2a404c1df0cf9422e6ab36c477/512x512 layout_config: button_grid: rows: 2 columns: 2 swipe: true images_swipe: height: 150 section_order: - indicators - range_info - images - mini_map - buttons range_info_config: layout: row hide_card_name: true mini_map: device_tracker: device_tracker.michis_iphone enable_popup: true indicator_rows: - row_items: [] range_info: - energy_level: entity: sensor.audi_a6_avant_range tap_action: action: more-info value_alignment: start value_position: inside range_level: entity: sensor.igraz495_elevation value_position: outside charging_entity: binary_sensor.nuki_battery_charging progress_color: "#83ba45" charging_template: "{{ true }}" color_blocks: false color_thresholds: [] - energy_level: entity: sensor.audi_a6_avant_adblue_range tap_action: action: more-info value_alignment: start value_position: inside max_value: 20000 range_level: entity: sensor.nuki_3a2189e4_geschatzte_entfernung value_position: inside charging_entity: "" progress_color: "#0080ff" color_blocks: false color_thresholds: [] button_cards: - layout: horizontal transparent: false show_primary: true show_secondary: true show_icon: true name: Nächster Service color_template: "{% set state = states['sun.sun'].state %}\n\t\tvar(--state-sun-{{ state }}-color)" icon_template: >- {{ iif (is_state('sun.sun', 'above_horizon'), 'mdi:white-balance-sunny', 'mdi:weather-night') }} icon_type: icon-template icon: mdi:new-box state_template: "{{ \"sun.sun\" | state_translated }}" include_state_template: true notify: "{{ is_state('sun.sun', 'above_horizon') }}" hide_button: false button_type: default card_type: default primary_info: name entity: sensor.audi_a6_avant_service_inspection_distance state_content: - state_template sub_card: default_card: - title: Category default expanded collapsed_items: false items: - entity: sun.sun - entity: sensor.sun_next_dawn - entity: sensor.sun_next_midnight - entity: sensor.sun_next_noon - title: Category collapsed collapsed_items: true items: - entity: sun.sun - entity: sensor.sun_next_dawn - entity: sensor.sun_next_midnight - entity: sensor.sun_next_noon custom_card: - type: entities title: Custom Card entities: - entity: sun.sun - entity: sensor.sun_next_dawn - entity: sensor.sun_next_midnight - entity: sensor.sun_next_noon - entity: sensor.audi_a6_avant_mileage show_icon: true show_primary: true show_secondary: true layout: horizontal button_type: action tap_action: action: more-info card_type: default icon_type: icon primary_info: name ``` ### Environment 🌐 _No response_ ### Logs and screenshots 📂 type: custom:vehicle-status-card name: Vehicle Status Card images: - image: /api/image/serve/7208f5d7230c85cc9ef81d7cc4086510/512x512 - image: /api/image/serve/df2dd72a2316cea644fb50e2b22ee2d9/512x512 - image: /api/image/serve/335bf8c18247685a739f9b23c6a221a5/512x512 - image: /api/image/serve/156152993a766490e1b6fc136a2a4817/512x512 - image: /api/image/serve/682e59ad835c841a36ea746d81619896/512x512 - image: /api/image/serve/82cd7f2a404c1df0cf9422e6ab36c477/512x512 layout_config: button_grid: rows: 2 columns: 2 swipe: true images_swipe: height: 150 section_order: - indicators - range_info - images - mini_map - buttons range_info_config: layout: row hide_card_name: true mini_map: device_tracker: device_tracker.michis_iphone enable_popup: true indicator_rows: - row_items: [] range_info: - energy_level: entity: sensor.audi_a6_avant_range tap_action: action: more-info value_alignment: start value_position: inside range_level: entity: sensor.igraz495_elevation value_position: outside charging_entity: binary_sensor.nuki_battery_charging progress_color: "#83ba45" charging_template: "{{ true }}" color_blocks: false color_thresholds: [] - energy_level: entity: sensor.audi_a6_avant_adblue_range tap_action: action: more-info value_alignment: start value_position: inside max_value: 20000 range_level: entity: sensor.nuki_3a2189e4_geschatzte_entfernung value_position: inside charging_entity: "" progress_color: "#0080ff" color_blocks: false color_thresholds: [] button_cards: - layout: horizontal transparent: false show_primary: true show_secondary: true show_icon: true name: Nächster Service color_template: "{% set state = states['sun.sun'].state %}\n\t\tvar(--state-sun-{{ state }}-color)" icon_template: >- {{ iif (is_state('sun.sun', 'above_horizon'), 'mdi:white-balance-sunny', 'mdi:weather-night') }} icon_type: icon-template icon: mdi:new-box state_template: "{{ \"sun.sun\" | state_translated }}" include_state_template: true notify: "{{ is_state('sun.sun', 'above_horizon') }}" hide_button: false button_type: default card_type: default primary_info: name entity: sensor.audi_a6_avant_service_inspection_distance state_content: - state_template sub_card: default_card: - title: Category default expanded collapsed_items: false items: - entity: sun.sun - entity: sensor.sun_next_dawn - entity: sensor.sun_next_midnight - entity: sensor.sun_next_noon - title: Category collapsed collapsed_items: true items: - entity: sun.sun - entity: sensor.sun_next_dawn - entity: sensor.sun_next_midnight - entity: sensor.sun_next_noon custom_card: - type: entities title: Custom Card entities: - entity: sun.sun - entity: sensor.sun_next_dawn - entity: sensor.sun_next_midnight - entity: sensor.sun_next_noon - entity: sensor.audi_a6_avant_mileage show_icon: true show_primary: true show_secondary: true layout: horizontal button_type: action tap_action: action: more-info card_type: default icon_type: icon primary_info: name
1 条评论