192 lines
6.6 KiB
Plaintext
192 lines
6.6 KiB
Plaintext
{
|
|
"version": 1,
|
|
"minor_version": 1,
|
|
"key": "lovelace.dashboard_meyer",
|
|
"data": {
|
|
"config": {
|
|
"title": "Meyer Dashboard",
|
|
"views": [
|
|
{
|
|
"title": "Main",
|
|
"icon": "mdi:home",
|
|
"cards": [
|
|
{
|
|
"type": "vertical-stack",
|
|
"cards": [
|
|
{
|
|
"type": "entities",
|
|
"entities": [
|
|
{
|
|
"entity": "script.mqtt_home",
|
|
"name": "Home",
|
|
"icon": "mdi:home",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.turn_on",
|
|
"service_data": {
|
|
"entity_id": "script.mqtt_home"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"entity": "script.mqtt_disable_torque",
|
|
"name": "Disable Torque",
|
|
"icon": "mdi:power",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.turn_on",
|
|
"service_data": {
|
|
"entity_id": "script.mqtt_disable_torque"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"graph": "line",
|
|
"type": "sensor",
|
|
"entity": "sensor.meyer_position_raw",
|
|
"name": "Current Position",
|
|
"detail": 1
|
|
},
|
|
{
|
|
"type": "horizontal-stack",
|
|
"cards": [
|
|
{
|
|
"type": "vertical-stack",
|
|
"cards": [
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "-0.1",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.decrement_position_by_tenth",
|
|
"target": {}
|
|
}
|
|
},
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "0.1",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.increment_position_by_tenth",
|
|
"target": {}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "vertical-stack",
|
|
"cards": [
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "-1",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.decrement_position_by_1",
|
|
"target": {}
|
|
}
|
|
},
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "1",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.increment_position_by_1",
|
|
"target": {}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "vertical-stack",
|
|
"cards": [
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "-10",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.decrement_position_by_10",
|
|
"target": {}
|
|
}
|
|
},
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.increment_position_by_10",
|
|
"target": {}
|
|
},
|
|
"name": "10"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "vertical-stack",
|
|
"cards": [
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "-100",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.decrement_position_by_100",
|
|
"target": {}
|
|
}
|
|
},
|
|
{
|
|
"show_name": true,
|
|
"show_icon": true,
|
|
"type": "button",
|
|
"name": "100",
|
|
"tap_action": {
|
|
"action": "call-service",
|
|
"service": "script.increment_position_by_100",
|
|
"target": {}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "entities",
|
|
"entities": [
|
|
{
|
|
"entity": "input_number.meyer_motor_speed"
|
|
},
|
|
{
|
|
"entity": "input_number.meyer_preload_stiffness"
|
|
},
|
|
{
|
|
"entity": "input_number.batch_weight"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "entities",
|
|
"entities": [
|
|
"switch.tp_link_power_strip_d7c1_vibratory_conveyor"
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
} |