Automatically activate the fume extractor when soldering begins and deactivate it when the soldering iron is idle.
blueprint:
name: "IronOS: Soldering Fume Extractor Automation"
description: "Automatically activate the fume extractor when soldering begins and deactivate it when the soldering iron is idle."
author: tr4nt0r
homeassistant:
min_version: 2024.8.0
domain: automation
input:
operating_mode:
name: "Operating Mode Sensor"
description: Select the operating mode sensor of your IronOS device. The automation will turn on the fume extractor when the mode switches to 'soldering' and turn it off when the mode changes from 'soldering' to 'idle'."
selector:
entity:
filter:
- domain: sensor
integration: iron_os
device_class:
- enum
fume_extractor:
name: "Fume Extractor Control Switch"
description: "Select the switch used to control the on/off state of your fume extractor."
selector:
entity:
filter:
- domain: switch
triggers:
- trigger: state
entity_id: !input operating_mode
to: soldering
id: start soldering
from: null
- trigger: state
entity_id: !input operating_mode
from: soldering
to: idle
id: stop soldering
conditions: []
actions:
- if:
- condition: trigger
id:
- start soldering
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: !input fume_extractor
- if:
- condition: trigger
id:
- stop soldering
then:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: !input fume_extractor
mode: single