I can’t find anything relevant :s
I changed the ip and I stopped having problems
My alternative version for a brother printer card:
type: custom:stack-in-card
mode: horizontal
card_mod:
style: |
ha-card {
height: 180px;
background-image: url("/local/impage/brother.png");
}
tap_action:
action: url
url_path: https://printer.local/home/status.html
cards:
- type: custom:apexcharts-card
chart_type: radialBar
update_interval: 15min
apex_config:
chart:
width: 270px
plotOptions:
radialBar:
offsetX: -30
offsetY: -10
startAngle: 0
endAngle: 270
hollow:
margin: 20
size: 3%
background: transparent
dataLabels:
name:
show: false
value:
show: false
legend:
show: true
floating: true
fontSize: 10px
position: left
offsetX: -30
offsetY: -7
labels:
useSeriesColors: true
markers:
size: 10
itemMargin:
vertical: 1
header:
show: false
series:
- entity: sensor.mfc_j5340dw_black_ink_remaining
name: black
float_precision: 0
color: darkgrey
- entity: sensor.mfc_j5340dw_cyan_ink_remaining
name: cyan
float_precision: 0
color: steelblue
- entity: sensor.mfc_j5340dw_magenta_ink_remaining
name: magenta
float_precision: 0
color: magenta
- entity: sensor.mfc_j5340dw_yellow_ink_remaining
name: yellow
float_precision: 0
color: gold
card_mod:
style: |
ha-card {
--ha-card-border-width: 0px;
--ha-card-border-color: none;
}
- type: custom:button-card
show_entity_picture: true
entity_picture: /local/image/brother.png
size: 42%
name: Brother Printer
tap_action:
action: url
url_path: https://printer.local/home/status.html
aspect_ratio: 1/1
styles:
icon:
- color: rgb(81,150,213)
img_cell:
- align-self: start
- text-align: start
- top: '-15%'
- left: 8%
name:
- position: absolute
- left: 4%
custom_fields:
ra:
- left: 10%
- top: 15%
- position: absolute
- font-weight: 300
- font-size: 0.8em
ip:
- left: 10%
- top: 23%
- position: absolute
- font-weight: 300
- font-size: 0.8em
ma:
- left: 10%
- top: 52%
- position: absolute
- font-weight: 300
- font-size: 0.8em
da:
- left: 10%
- top: 60%
- position: absolute
- font-weight: 300
- font-size: 0.8em
custom_fields:
ra: |
[[[
return `<ha-icon
icon="mdi:file-document"
style="color: rgb(81,150,213) ; width: 14px; height: 14px; ">
</ha-icon><span> ${states['sensor.mfc_j5340dw_page_counter'].state} pages,
${states['sensor.mfc_j5340dw_b_w_counter'].state} b/w,
${states['sensor.mfc_j5340dw_color_counter'].state} color
</span>`
]]]
ip: |
[[[
return `<ha-icon
icon="mdi:ip-network-outline"
style="color: rgb(81,150,213) ; width: 14px; height: 14px; ">
</ha-icon><span> ${states['sensor.mfc_j5340dw_status'].state}</span>`
]]]
ma: |
[[[
return `<ha-icon
icon="mdi:map-marker"
style="color: rgb(81,150,213) ; width: 14px; height: 14px; ">
</ha-icon><span> ${states['device_tracker.rumex'].attributes.ip}</span>`
]]]
da: |
[[[
return `<ha-icon
icon="mdi:map-marker"
style="color: rgb(81,150,213) ; width: 14px; height: 14px; ">
</ha-icon><span> ${states['sensor.mfc_j5340dw_uptime'].state}</span>`
]]]
show_name: true
show_state: false
card_mod:
style: |
ha-card {
--ha-card-border-width: 0px;
--ha-card-border-color: none;
}
4 Likes