Closed tomlut closed 1 year ago
Still an issue?
Yes still getting the error. Though it no longer seems to be halting the browser.
This is the only place I use the card now:
card:
card_type: picture-entity
entity: sensor.bom_hobart_wind_direction
show_name: false
show_state: false
state_image:
CALM: /local/icons/wind/CALM.png
E: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'E-blu.png' : vars[0] <= 20 ?
'E-grn.png' : vars[0] <= 30 ? 'E-yel.png' : 'E-red.png' ) }
ENE: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'ENE-blu.png' : vars[0] <= 20 ?
'ENE-grn.png' : vars[0] <= 30 ? 'ENE-yel.png' : 'ENE-red.png' ) }
ESE: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'ESE-blu.png' : vars[0] <= 20 ?
'ESE-grn.png' : vars[0] <= 30 ? 'ESE-yel.png' : 'ESE-red.png' ) }
'N': >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'N-blu.png' : vars[0] <= 20 ?
'N-grn.png' : vars[0] <= 30 ? 'N-yel.png' : 'N-red.png' ) }
NE: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'NE-blu.png' : vars[0] <= 20 ?
'NE-grn.png' : vars[0] <= 30 ? 'NE-yel.png' : 'NE-red.png' ) }
NNE: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'NNE-blu.png' : vars[0] <= 20 ?
'NNE-grn.png' : vars[0] <= 30 ? 'NNE-yel.png' : 'NNE-red.png' ) }
NNW: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'NNW-blu.png' : vars[0] <= 20 ?
'NNW-grn.png' : vars[0] <= 30 ? 'NNW-yel.png' : 'NNW-red.png' ) }
NW: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'NW-blu.png' : vars[0] <= 20 ?
'NW-grn.png' : vars[0] <= 30 ? 'NW-yel.png' : 'NW-red.png' ) }
S: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'S-blu.png' : vars[0] <= 20 ?
'S-grn.png' : vars[0] <= 30 ? 'S-yel.png' : 'S-red.png' ) }
SE: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'SE-blu.png' : vars[0] <= 20 ?
'SE-grn.png' : vars[0] <= 30 ? 'SE-yel.png' : 'SE-red.png' ) }
SSE: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'SSE-blu.png' : vars[0] <= 20 ?
'SSE-grn.png' : vars[0] <= 30 ? 'SSE-yel.png' : 'SSE-red.png' ) }
SSW: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'SSW-blu.png' : vars[0] <= 20 ?
'SSW-grn.png' : vars[0] <= 30 ? 'SSW-yel.png' : 'SSW-red.png' ) }
SW: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'SW-blu.png' : vars[0] <= 20 ?
'SW-grn.png' : vars[0] <= 30 ? 'SW-yel.png' : 'SW-red.png' ) }
W: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'W-blu.png' : vars[0] <= 20 ?
'W-grn.png' : vars[0] <= 30 ? 'W-yel.png' : 'W-red.png' ) }
WNW: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'WNW-blu.png' : vars[0] <= 20 ?
'WNW-grn.png' : vars[0] <= 30 ? 'WNW-yel.png' : 'WNW-red.png' ) }
WSW: >-
${'/local/icons/wind/' + ( vars[0] <= 10 ? 'WSW-blu.png ': vars[0] <= 20 ?
'WSW-grn.png' : vars[0] <= 30 ? 'WSW-yel.png' : 'WSW-red.png' ) }
style:
.: |
ha-card {
border: solid 1px var(--border-color);
background: url("/local/background/card_bg_{{states('input_select.select_theme')}}.png");
}
ha-card div.card-header {
padding-top: 8px;
padding-bottom: 36px;
}
type: 'custom:hui-element'
entities: sensor.bom_hobart_wind_gust_kt
type: 'custom:config-template-card'
variables:
- 'states[''sensor.bom_hobart_wind_gust_kt''].state'
@tomlut Are you still having this issue?
I no longer use the card.
Closing then...
Checklist:
Release with the issue: config-template-card 1.0.8
Last working release (if known): Not known Browser and Operating System: Firefox 70.0.1 64bit, Windows 10 pro1903 (build 18362.418)
Description of problem: Firefox stops responding after a short time. Error in the console is shown below:
Chrome appears to ignore the error.
Javascript errors shown in the web inspector (if applicable): As per screenshot above.
Additional information: