3 files
This commit is contained in:
@@ -1156,7 +1156,301 @@
|
||||
"sections": [
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": []
|
||||
"cards": [
|
||||
{
|
||||
"type": "custom:mushroom-title-card",
|
||||
"title": "Moonraker – {{ states('sensor.sparkx_moonraker_current_display_message') }}",
|
||||
"subtitle": "{{ states('sensor.sparkx_moonraker_filename') }}",
|
||||
"alignment": "center",
|
||||
"title_tap_action": {
|
||||
"action": "url",
|
||||
"url_path": "http://moonraker.local/"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.sparkx_moonraker_current_print_state",
|
||||
"name": "Status",
|
||||
"grid_options": {
|
||||
"columns": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.sparkx_moonraker_print_duration",
|
||||
"name": "Elapsed",
|
||||
"grid_options": {
|
||||
"columns": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.sparkx_moonraker_print_eta",
|
||||
"name": "Completion",
|
||||
"grid_options": {
|
||||
"columns": 4
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "tile",
|
||||
"entity": "sensor.sparkx_moonraker_progress",
|
||||
"name": "Print Progress",
|
||||
"icon": "mdi:clock-end",
|
||||
"features": [
|
||||
{
|
||||
"type": "bar-gauge",
|
||||
"min": 0,
|
||||
"max": 100
|
||||
}
|
||||
],
|
||||
"grid_options": {
|
||||
"columns": "full"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": [
|
||||
{
|
||||
"type": "heading",
|
||||
"heading": "Controls",
|
||||
"icon": "mdi:gesture-tap-button"
|
||||
},
|
||||
{
|
||||
"type": "grid",
|
||||
"columns": 4,
|
||||
"square": false,
|
||||
"cards": [
|
||||
{
|
||||
"type": "custom:button-card",
|
||||
"entity": "button.sparkx_moonraker_pause_print",
|
||||
"color_type": "icon",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"name": "Pause"
|
||||
},
|
||||
{
|
||||
"type": "custom:button-card",
|
||||
"entity": "button.sparkx_moonraker_resume_print",
|
||||
"color_type": "icon",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"name": "Resume"
|
||||
},
|
||||
{
|
||||
"type": "custom:button-card",
|
||||
"entity": "button.sparkx_moonraker_cancel_print",
|
||||
"color_type": "icon",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"name": "Cancel",
|
||||
"lock": {
|
||||
"enabled": false
|
||||
},
|
||||
"confirmation": {
|
||||
"text": "This will CANCEL the print. Are you sure?"
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "custom:button-card",
|
||||
"entity": "button.sparkx_moonraker_emergency_stop",
|
||||
"color_type": "icon",
|
||||
"color": "red",
|
||||
"tap_action": {
|
||||
"action": "toggle"
|
||||
},
|
||||
"name": "Emergency",
|
||||
"lock": {
|
||||
"enabled": false
|
||||
},
|
||||
"confirmation": {
|
||||
"text": "This will REBOOT the printer. Are you sure?"
|
||||
}
|
||||
}
|
||||
],
|
||||
"grid_options": {
|
||||
"columns": "full"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": [
|
||||
{
|
||||
"type": "heading",
|
||||
"heading": "Printer Temperatures",
|
||||
"icon": "mdi:thermometer"
|
||||
},
|
||||
{
|
||||
"type": "custom:apexcharts-card",
|
||||
"graph_span": "1h",
|
||||
"header": {
|
||||
"show": true,
|
||||
"title": "Printer Temperatures",
|
||||
"show_states": true,
|
||||
"colorize_states": true
|
||||
},
|
||||
"apex_config": {
|
||||
"chart": {
|
||||
"height": 200,
|
||||
"legend": {
|
||||
"show": false
|
||||
}
|
||||
},
|
||||
"grid": {
|
||||
"xaxis": {
|
||||
"lines": {
|
||||
"show": true
|
||||
},
|
||||
"borderColor": "#555"
|
||||
}
|
||||
},
|
||||
"yaxis": [
|
||||
{
|
||||
"opposite": true,
|
||||
"decimals": 0,
|
||||
"tickAmount": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"all_series_config": {
|
||||
"stroke_width": 2,
|
||||
"float_precision": 0,
|
||||
"show": {
|
||||
"name_in_header": true
|
||||
}
|
||||
},
|
||||
"series": [
|
||||
{
|
||||
"entity": "sensor.sparkx_moonraker_extruder_temperature",
|
||||
"name": "Hotend"
|
||||
},
|
||||
{
|
||||
"entity": "sensor.sparkx_moonraker_bed_temperature",
|
||||
"name": "Bed"
|
||||
},
|
||||
{
|
||||
"entity": "sensor.sparkx_moonraker_mcu_temp",
|
||||
"name": "MCU"
|
||||
}
|
||||
],
|
||||
"grid_options": {
|
||||
"columns": "full"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": [
|
||||
{
|
||||
"type": "heading",
|
||||
"heading": "Fan Speeds",
|
||||
"icon": "mdi:fan"
|
||||
},
|
||||
{
|
||||
"type": "custom:apexcharts-card",
|
||||
"graph_span": "1h",
|
||||
"header": {
|
||||
"show": true,
|
||||
"title": "Fan Speeds",
|
||||
"show_states": true,
|
||||
"colorize_states": true
|
||||
},
|
||||
"apex_config": {
|
||||
"chart": {
|
||||
"height": 200,
|
||||
"legend": {
|
||||
"show": false
|
||||
}
|
||||
},
|
||||
"grid": {
|
||||
"xaxis": {
|
||||
"lines": {
|
||||
"show": true
|
||||
},
|
||||
"borderColor": "#555"
|
||||
}
|
||||
},
|
||||
"yaxis": [
|
||||
{
|
||||
"opposite": true,
|
||||
"decimals": 0,
|
||||
"tickAmount": 2
|
||||
}
|
||||
]
|
||||
},
|
||||
"all_series_config": {
|
||||
"stroke_width": 2,
|
||||
"show": {
|
||||
"name_in_header": true
|
||||
}
|
||||
},
|
||||
"series": [
|
||||
{
|
||||
"entity": "sensor.sparkx_moonraker_hotend_fan",
|
||||
"name": "Hotend"
|
||||
}
|
||||
],
|
||||
"grid_options": {
|
||||
"columns": "full"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "grid",
|
||||
"cards": [
|
||||
{
|
||||
"type": "heading",
|
||||
"heading": "Camera",
|
||||
"icon": "mdi:camera"
|
||||
},
|
||||
{
|
||||
"type": "conditional",
|
||||
"conditions": [
|
||||
{
|
||||
"entity": "sensor.sparkx_moonraker_current_print_state",
|
||||
"state_not": "unavailable"
|
||||
}
|
||||
],
|
||||
"card": {
|
||||
"type": "picture-entity",
|
||||
"entity": "camera.sparkx_moonraker_back",
|
||||
"camera_view": "live",
|
||||
"show_name": false,
|
||||
"show_state": false,
|
||||
"aspect_ratio": "4x3"
|
||||
},
|
||||
"grid_options": {
|
||||
"columns": 6
|
||||
}
|
||||
},
|
||||
{
|
||||
"type": "conditional",
|
||||
"conditions": [
|
||||
{
|
||||
"entity": "sensor.sparkx_moonraker_current_print_state",
|
||||
"state_not": "unavailable"
|
||||
}
|
||||
],
|
||||
"card": {
|
||||
"type": "picture-entity",
|
||||
"entity": "camera.sparkx_moonraker_thumbnail",
|
||||
"camera_view": "auto",
|
||||
"show_name": false,
|
||||
"show_state": false
|
||||
},
|
||||
"grid_options": {
|
||||
"columns": 6
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user