140 lines
5.2 KiB
JSON
140 lines
5.2 KiB
JSON
[
|
|
{
|
|
"id": "Delay Start",
|
|
"automation": "- alias: Delay Start\n description: ''\n triggers:\n - trigger: time\n at: input_datetime.start_date_time\n id: time\n - trigger: state\n entity_id:\n - input_boolean.start_now\n to: 'on'\n from: 'off'\n id: now\n conditions:\n - condition: state\n entity_id: input_boolean.start_print\n state: 'on'\n enabled: false\n - condition: or\n conditions:\n - condition: trigger\n id:\n - now\n - condition: state\n entity_id: input_boolean.start_print\n state: 'on'\n actions:\n - variables:\n file_name: '{{ states(''input_text.file_name'') }}'\n ams1: '{{ states(''input_number.ams1'') | string }}'\n ams2: '{{ states(''input_number.ams2'') | string }}'\n ams3: '{{ states(''input_number.ams3'') | string }}'\n ams4: '{{ states(''input_number.ams4'') | string }}'\n enabled: true\n - action: bambu_lab.print_project_file\n metadata: {}\n data:\n plate: 1\n timelapse: '{{ is_state(''input_boolean.timelapse'', ''on'') }}'\n bed_leveling: '{{ is_state(''input_boolean.bed_leveling'', ''on'') }}'\n use_ams: '{{ is_state(''input_boolean.ams_toggle'', ''on'') }}'\n flow_cali: false\n vibration_cali: true\n layer_inspect: false\n filepath: '{{ file_name }}.gcode.3mf'\n ams_mapping: ''\n enabled: true\n target:\n device_id: a1e36477740434fe8c9dba83272173fb\n - choose:\n - conditions:\n - condition: state\n entity_id: input_boolean.start_print\n state: 'on'\n sequence:\n - action: input_boolean.toggle\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.start_print\n - conditions:\n - condition: state\n entity_id: input_boolean.start_now\n state: 'on'\n sequence:\n - action: input_boolean.toggle\n metadata: {}\n data: {}\n target:\n entity_id: input_boolean.start_now\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "start date time",
|
|
"room": null,
|
|
"type": "input_datetime",
|
|
"id": {
|
|
"entity_id": "input_datetime.start_date_time",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "start now",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.start_now",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "start print",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.start_print",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "file name",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.file_name",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ams1",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ams1",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ams2",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ams2",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ams3",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ams3",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ams4",
|
|
"room": null,
|
|
"type": "input_number",
|
|
"id": {
|
|
"entity_id": "input_number.ams4",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "timelapse",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.timelapse",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bed leveling",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.bed_leveling",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "ams toggle",
|
|
"room": null,
|
|
"type": "input_boolean",
|
|
"id": {
|
|
"entity_id": "input_boolean.ams_toggle",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "bambu lab printer",
|
|
"room": null,
|
|
"type": "device",
|
|
"id": {
|
|
"entity_id": null,
|
|
"device_id": "a1e36477740434fe8c9dba83272173fb"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"id": "Update Print Object",
|
|
"automation": "- alias: Update Print Object\n description: ''\n triggers:\n - trigger: state\n entity_id:\n - input_select.part\n conditions: []\n actions:\n - variables:\n object: '{{ states(''input_select.part'') }}'\n - target:\n entity_id: input_text.file_name\n data:\n value: '{{ object }}'\n action: input_text.set_value\n mode: single",
|
|
"config": [
|
|
{
|
|
"name": "file name",
|
|
"room": null,
|
|
"type": "input_text",
|
|
"id": {
|
|
"entity_id": "input_text.file_name",
|
|
"device_id": null
|
|
}
|
|
},
|
|
{
|
|
"name": "part",
|
|
"room": null,
|
|
"type": "input_select",
|
|
"id": {
|
|
"entity_id": "input_select.part",
|
|
"device_id": null
|
|
}
|
|
}
|
|
]
|
|
}
|
|
] |