Thanks for that. I will test it as soon as my robot wakes up from winter sleep ![]()
In the meanwhile I created a nice widget:
uid: a1_pro_2000_dashboard
tags:
- A1_Pro_2000
props:
parameters:
- name: title
label: Titel
type: TEXT
default: A1 Pro 2000
parameterGroups: []
component: f7-card
config:
style:
margin: 0
border-radius: 18px
overflow: hidden
slots:
default:
# ============================================================
# HEADER
# ============================================================
- component: f7-row
config:
class:
- align-items-center
style:
padding: 16px 20px 12px
slots:
default:
# TITEL
- component: f7-col
config:
width: 75
slots:
default:
- component: Label
config:
text: =props.title
style:
font-size: 22px
font-weight: 600
# AKTUELLER MÄHSTATUS
- component: f7-col
config:
width: 25
style:
text-align: right
slots:
default:
- component: oh-icon
config:
icon: "f7:circle_fill"
width: 18px
color: "=items.A1_Pro_2000_State.state === 'mowing' ? 'green' : 'gray'"
- component: Label
config:
text: "=items.A1_Pro_2000_State.state"
style:
font-size: 13px
font-weight: 600
margin-left: 5px
# ============================================================
# KARTE + INFORMATIONEN
# ============================================================
- component: f7-row
config:
class:
- align-items-start
style:
padding: 0 12px 12px
slots:
default:
# ======================================================
# KARTE
# ======================================================
- component: f7-col
config:
width: 65
slots:
default:
- component: f7-card
config:
style:
margin: 0
border-radius: 14px
overflow: hidden
background: var(--f7-page-bg-color)
slots:
default:
- component: oh-image
config:
item: A1_Pro_2000_Map_SVG
lazy: false
style:
width: 100%
height: auto
min-height: 400px
object-fit: contain
# ======================================================
# RECHTE INFORMATIONSSPALTE
# ======================================================
- component: f7-col
config:
width: 35
slots:
default:
# ==================================================
# MÄHFORTSCHRITT
# ==================================================
- component: f7-card
config:
style:
margin: 0 0 8px 8px
border-radius: 12px
padding: 12px
slots:
default:
- component: f7-row
slots:
default:
# BEZEICHNUNG
- component: f7-col
config:
width: 60
slots:
default:
- component: Label
config:
text: Mähfortschritt
style:
font-size: 13px
opacity: 0.65
# PROZENT
- component: f7-col
config:
width: 40
style:
text-align: right
slots:
default:
- component: Label
config:
text: "=Number.parseFloat(items.A1_Pro_2000_Mowing_Progress.state).toFixed(1) + ' %'"
style:
font-size: 15px
font-weight: 600
# FORTSCHRITTSBALKEN
- component: f7-progressbar
config:
progress: "=Number.parseFloat(items.A1_Pro_2000_Mowing_Progress.state)"
style:
margin-top: 7px
height: 9px
border-radius: 5px
# ==================================================
# FLÄCHE + MÄHZEIT
# ==================================================
- component: f7-row
config:
style:
margin-left: 4px
slots:
default:
# ==================================================
# AKTUELL GEMÄHTE / GEPLANTE FLÄCHE
# ==================================================
- component: f7-col
config:
width: 50
slots:
default:
- component: f7-card
config:
style:
margin: 0 4px 8px 0
border-radius: 12px
padding: 10px 5px
text-align: center
slots:
default:
# FLÄCHEN-ICON
- component: oh-icon
config:
icon: "f7:map_fill"
width: 20px
color: "var(--f7-theme-color)"
# FLÄCHE
- component: Label
config:
text: "=Number.parseFloat(items.A1_Pro_2000_Current_Mowed_Area.state).toFixed(0) + ' / ' + Number.parseFloat(items.A1_Pro_2000_Planned_Mowing_Area.state).toFixed(0) + ' m²'"
style:
font-size: 15px
font-weight: 600
margin-top: 4px
# BEZEICHNUNG
- component: Label
config:
text: Fläche
style:
font-size: 10px
opacity: 0.6
# ==================================================
# MÄHZEIT
# ==================================================
- component: f7-col
config:
width: 50
slots:
default:
- component: f7-card
config:
style:
margin: 0 0 8px 4px
border-radius: 12px
padding: 10px 5px
text-align: center
slots:
default:
# UHR-ICON
- component: oh-icon
config:
icon: "f7:clock_fill"
width: 20px
color: "var(--f7-theme-color)"
# MÄHZEIT
# Task Time Value wird vom Binding in Sekunden geliefert.
# Umrechnung in hh:mm ohne String()/Intl/padStart().
- component: Label
config:
text: "=(Math.floor(Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) / 3600) < 10 ? '0' : '') + Math.floor(Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) / 3600) + ':' + (Math.floor((Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) % 3600) / 60) < 10 ? '0' : '') + Math.floor((Number.parseFloat(items.A1_Pro_2000_Task_Time_Value.state) % 3600) / 60)"
style:
font-size: 15px
font-weight: 600
margin-top: 4px
# BEZEICHNUNG
- component: Label
config:
text: Mähzeit
style:
font-size: 10px
opacity: 0.6
# ==================================================
# AKTUELLE ZONE
# ==================================================
- component: f7-card
config:
style:
margin: 0 4px 8px 8px
border-radius: 12px
padding: 10px
slots:
default:
- component: f7-row
slots:
default:
# ZONEN-ICON
- component: f7-col
config:
width: 20
slots:
default:
- component: oh-icon
config:
icon: "f7:location_fill"
width: 22px
color: "var(--f7-theme-color)"
# ZONE
- component: f7-col
config:
width: 80
slots:
default:
- component: Label
config:
text: "=items.A1_Pro_2000_Current_Zone.state"
style:
font-size: 15px
font-weight: 600
overflow: hidden
text-overflow: ellipsis
white-space: nowrap
# BEZEICHNUNG
- component: Label
config:
text: Aktuelle Zone
style:
font-size: 10px
opacity: 0.6
# ==================================================
# AKKU + WLAN
# ==================================================
- component: f7-row
config:
style:
margin-left: 4px
slots:
default:
# ==================================================
# AKKU
# ==================================================
- component: f7-col
config:
width: 50
slots:
default:
- component: f7-card
config:
style:
margin: 0 4px 8px 0
border-radius: 12px
padding: 8px 4px
text-align: center
slots:
default:
# AKKU-ICON
- component: oh-icon
config:
icon: "f7:battery_25"
width: 22px
color: "var(--f7-theme-color)"
# AKKU-PROZENT
- component: Label
config:
text: "=Number.parseFloat(items.A1_Pro_2000_Batterieladung.state).toFixed(0) + ' %'"
style:
font-size: 15px
font-weight: 600
margin-top: 3px
# BEZEICHNUNG
- component: Label
config:
text: Akku
style:
font-size: 10px
opacity: 0.6
# ==================================================
# WLAN
# ==================================================
- component: f7-col
config:
width: 50
slots:
default:
- component: f7-card
config:
style:
margin: 0 0 8px 4px
border-radius: 12px
padding: 8px 4px
text-align: center
slots:
default:
# WLAN-ICON
- component: oh-icon
config:
icon: "f7:wifi"
width: 22px
color: "var(--f7-theme-color)"
# WLAN-SIGNAL
- component: Label
config:
text: "=items.A1_Pro_2000_WiFi_Signal_Strength.state"
style:
font-size: 15px
font-weight: 600
margin-top: 3px
# BEZEICHNUNG
- component: Label
config:
text: WLAN
style:
font-size: 10px
opacity: 0.6
# ==================================================
# BEDIENBUTTONS
# ==================================================
- component: f7-row
config:
style:
margin-left: 4px
slots:
default:
# ==================================================
# START
# ==================================================
- component: f7-col
config:
width: 33
slots:
default:
- component: oh-button
config:
text: Start
iconF7: play_fill
fill: true
large: true
action: command
actionItem: A1_Pro_2000_Command
actionCommand: start
style:
margin: 2px
border-radius: 9px
# ==================================================
# PAUSE
# ==================================================
- component: f7-col
config:
width: 33
slots:
default:
- component: oh-button
config:
text: Pause
iconF7: pause_fill
fill: true
large: true
action: command
actionItem: A1_Pro_2000_Command
actionCommand: pause
style:
margin: 2px
border-radius: 9px
# ==================================================
# STATION
# ==================================================
- component: f7-col
config:
width: 33
slots:
default:
- component: oh-button
config:
text: Station
iconF7: house_fill
fill: true
large: true
action: command
actionItem: A1_Pro_2000_Command
actionCommand: dock
style:
margin: 2px
border-radius: 9px
Comments are welcome…