updates
This commit is contained in:
@@ -377,96 +377,59 @@
|
||||
entity_id: d430d19aa2f118038cb01a3157865ed0
|
||||
domain: switch
|
||||
mode: single
|
||||
- id: '1772979000001'
|
||||
alias: Constipation-Orion 80mm Exhaust Fan On During Print
|
||||
description: Disabled pending replacement exhaust fan control.
|
||||
initial_state: false
|
||||
triggers:
|
||||
- trigger: device
|
||||
device_id: 615a0b19447425670a6b61ec2343c791
|
||||
domain: bambu_lab
|
||||
type: event_print_started
|
||||
conditions: []
|
||||
actions:
|
||||
- action: fan.turn_on
|
||||
target:
|
||||
entity_id: fan.fdm_exhaust_fan_control_80mm_exhaust_fan
|
||||
mode: single
|
||||
- id: '1772979000002'
|
||||
alias: Turn Off 80mm Exhaust Fan 15 Minutes After Constipation-Orion Print Finishes
|
||||
description: Disabled pending replacement exhaust fan control.
|
||||
initial_state: false
|
||||
triggers:
|
||||
- trigger: device
|
||||
device_id: 615a0b19447425670a6b61ec2343c791
|
||||
domain: bambu_lab
|
||||
type: event_print_finished
|
||||
- trigger: device
|
||||
device_id: 615a0b19447425670a6b61ec2343c791
|
||||
domain: bambu_lab
|
||||
type: event_print_canceled
|
||||
conditions: []
|
||||
actions:
|
||||
- action: fan.turn_on
|
||||
target:
|
||||
entity_id: fan.fdm_exhaust_fan_control_80mm_exhaust_fan
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 15
|
||||
seconds: 0
|
||||
- condition: template
|
||||
value_template: '{{ states(''sensor.constipation_orion_print_status'') != ''printing''
|
||||
}}'
|
||||
- action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.fdm_exhaust_fan_control_80mm_exhaust_fan
|
||||
- id: fdm_printer_exhaust_fans
|
||||
alias: FDM Printer Exhaust Fans During Prints
|
||||
description: >-
|
||||
Turn on the FDM Printer Exhaust Fans outlet when Constipation Orion,
|
||||
Prints Charming, or Printney Spears (Centauri Carbon) is printing. Leave it
|
||||
on until all three have been finished for 30 minutes. A pause keeps the
|
||||
fans on. An unknown printer status does not start the shutoff timer.
|
||||
mode: restart
|
||||
- id: '1772979000003'
|
||||
alias: Prints Charming Or Printney Spears 120mm Exhaust Fan On During Print
|
||||
description: Disabled pending replacement control for the shared exhaust fan.
|
||||
initial_state: false
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.p1s_01p09c470102673_print_status
|
||||
to:
|
||||
- printing
|
||||
- running
|
||||
entity_id:
|
||||
- sensor.constipation_orion_print_status
|
||||
- sensor.p1s_01p09c470102673_print_status
|
||||
- sensor.centauri_carbon_print_status
|
||||
- trigger: homeassistant
|
||||
event: start
|
||||
- trigger: event
|
||||
event_type: automation_reloaded
|
||||
conditions: []
|
||||
actions:
|
||||
- action: fan.turn_on
|
||||
target:
|
||||
entity_id: fan.fdm_exhaust_fan_control_120mm_exhaust_fan
|
||||
mode: single
|
||||
- id: '1772979000004'
|
||||
alias: Turn Off 120mm Exhaust Fan 15 Minutes After Print Completion
|
||||
description: Disabled pending replacement control for the shared exhaust fan.
|
||||
initial_state: false
|
||||
triggers:
|
||||
- trigger: state
|
||||
entity_id: sensor.p1s_01p09c470102673_print_status
|
||||
to:
|
||||
- finish
|
||||
- complete
|
||||
- completed
|
||||
- idle
|
||||
- failed
|
||||
- cancelled
|
||||
conditions:
|
||||
- condition: template
|
||||
value_template: '{{ trigger.from_state is not none and trigger.from_state.state
|
||||
in [''printing'',''running''] }}'
|
||||
actions:
|
||||
- action: fan.turn_on
|
||||
target:
|
||||
entity_id: fan.fdm_exhaust_fan_control_120mm_exhaust_fan
|
||||
- delay:
|
||||
hours: 0
|
||||
minutes: 15
|
||||
seconds: 0
|
||||
- condition: template
|
||||
value_template: '{{ states(''sensor.p1s_01p09c470102673_print_status'') != ''printing''
|
||||
}}'
|
||||
- action: fan.turn_off
|
||||
target:
|
||||
entity_id: fan.fdm_exhaust_fan_control_120mm_exhaust_fan
|
||||
mode: restart
|
||||
- variables:
|
||||
active_states:
|
||||
- printing
|
||||
- running
|
||||
- pause
|
||||
- paused
|
||||
- pausing
|
||||
- prepare
|
||||
- preparing
|
||||
printers:
|
||||
- sensor.constipation_orion_print_status
|
||||
- sensor.p1s_01p09c470102673_print_status
|
||||
- sensor.centauri_carbon_print_status
|
||||
- if:
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ expand(printers) | selectattr('state', 'in', active_states) | list | count > 0 }}
|
||||
then:
|
||||
- action: switch.turn_on
|
||||
target:
|
||||
entity_id: switch.studio_plug_2
|
||||
else:
|
||||
- condition: template
|
||||
value_template: "{{ trigger.platform == 'state' }}"
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ expand(printers) | selectattr('state', 'in', ['unknown', 'unavailable']) | list | count == 0 }}
|
||||
- delay:
|
||||
minutes: 30
|
||||
- condition: template
|
||||
value_template: >-
|
||||
{{ expand(printers) | selectattr('state', 'in', active_states) | list | count == 0
|
||||
and expand(printers) | selectattr('state', 'in', ['unknown', 'unavailable']) | list | count == 0 }}
|
||||
- action: switch.turn_off
|
||||
target:
|
||||
entity_id: switch.studio_plug_2
|
||||
|
||||
Reference in New Issue
Block a user