Files
homeassistant/automations.yaml

491 lines
13 KiB
YAML

- id: '1634559948824'
alias: Set low dehumidification dew point set point
description: Set low dehumidification dew point set point
trigger:
- platform: mqtt
topic: frankensystem/set_points/dehumidfy/low_dew_point
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.low_dehumidification_dew_point
data:
value: '{{ trigger.payload | float }}'
mode: single
- id: '1634560389704'
alias: Publish Low Dehumidification Dew Point
description: Publishes the low dehumidification set point to an MQTT topic
trigger:
- platform: state
entity_id: input_number.low_dehumidification_dew_point
condition: []
action:
- service: mqtt.publish
data:
topic: frankensystem/set_points/dehumidify/low_dew_point
retain: true
payload: '{{ states(''input_number.low_dehumidification_dew_point'') | float
}}'
mode: single
- id: '1634561011408'
alias: Set high dehumidification dew point
description: Sets the high dehumidification dew point set point.
trigger:
- platform: mqtt
topic: frankensystem/set_points/dehumidify/high_dew_point
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.high_dehumidification_dew_point
data:
value: '{{ trigger.payload | float }}'
mode: single
- id: '1634561223655'
alias: Publish High Dew Point Set Point
description: Publishes the high dew point set point to MQTT
trigger:
- platform: state
entity_id: input_number.high_dehumidification_dew_point
condition: []
action:
- service: mqtt.publish
data:
topic: frankensystem/set_points/dehumidify/high_dew_point
retain: true
payload: '{{ states(''input_number.high_dehumidification_dew_point'') | float
}}'
mode: single
- id: '1634559948834'
alias: Set low dehumidification relative humidity
description: Set low dehumidification relative humidity set point
trigger:
- platform: mqtt
topic: frankensystem/set_points/dehumidfy/low_relative_humidity
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.low_dehumidification_relative_humidity
data:
value: '{{ trigger.payload | float }}'
mode: single
- id: '1634560389714'
alias: Publish Low Dehumidification Relative Humidity
description: Publishes the low dehumidification set point to an MQTT topic
trigger:
- platform: state
entity_id: input_number.low_dehumidification_relative_humidity
condition: []
action:
- service: mqtt.publish
data:
topic: frankensystem/set_points/dehumidify/low_relative_humidity
retain: true
payload: '{{ states(''input_number.low_dehumidification_relative_humidity'')
| float }}'
mode: single
- id: '1634561011428'
alias: Set high dehumidification relative humidity set point
description: Sets the high dehumidification relative humidity set point.
trigger:
- platform: mqtt
topic: frankensystem/set_points/dehumidify/high_relative_humidity
condition: []
action:
- service: input_number.set_value
target:
entity_id: input_number.high_dehumidification_relative_humidity
data:
value: '{{ trigger.payload | float }}'
mode: single
- id: '1634561223665'
alias: Publish Dehumidification High Relative Humidity Set Point
description: Publishes the high relative humidity set point to MQTT
trigger:
- platform: state
entity_id: input_number.high_dehumidification_relative_humidity
condition: []
action:
- service: mqtt.publish
data:
topic: frankensystem/set_points/dehumidify/high_dew_point
retain: true
payload: '{{ states(''input_number.high_dehumidification_relative_humidity'')
| float }}'
mode: single
- id: '1634569072478'
alias: Interlock Dehumidification Dew Point Turns Off Relative Humidity
description: Ensures that dehumidification mode is either set to relative humidity
or dew point mode.
trigger:
- platform: state
entity_id: input_boolean.enable_dew_point_dehumidification_mode
condition:
- condition: state
entity_id: input_boolean.enable_dew_point_dehumidification_mode
state: 'on'
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.enable_relative_humidity_dehumidification_mode
mode: single
- id: '1634569532222'
alias: Interlock Dehumidification Relative Humidity Turns OFF Dew Point Mode
description: Ensures that the dehumidification mode is either dew point or relative
humidity
trigger:
- platform: state
entity_id: input_boolean.enable_relative_humidity_dehumidification_mode
condition:
- condition: state
entity_id: input_boolean.enable_relative_humidity_dehumidification_mode
state: 'on'
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.enable_dew_point_dehumidification_mode
mode: single
- id: '1634570370065'
alias: Interlock Humidification Dew Point Enabled Turns OFF Relative Humidity
description: Ensures that humidification mode can only be in dew point or relative
humidity control mode.
trigger:
- platform: state
entity_id: input_boolean.enable_dew_point_humidification_mode
condition:
- condition: state
entity_id: input_boolean.enable_dew_point_humidification_mode
state: 'on'
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.enable_relative_humidity_humidification_mode
mode: single
- id: '1634570480746'
alias: Interlock Relative Humidity Humidification Mode Turns OFF Dew Point Mode
description: Ensures that humidification mode can only be in relative humidity or
dew point control modes.
trigger:
- platform: state
entity_id: input_boolean.enable_relative_humidity_humidification_mode
condition:
- condition: state
entity_id: input_boolean.enable_relative_humidity_humidification_mode
state: 'on'
action:
- service: input_boolean.turn_off
target:
entity_id: input_boolean.enable_dew_point_humidification_mode
mode: single
- id: '1710435997779'
alias: Renew Let's Encrypt Certificates
description: Restarts the Let's Encrypt add-on in order to renew certificates on
a regular basis.
trigger:
- platform: time
at: 02:03:00
condition: []
action:
- service: hassio.addon_start
metadata: {}
data:
addon: core_letsencrypt
mode: single
- id: '1729261288287'
alias: Fan High Interlock
description: Turns off other fan speeds when fan high switch is turned on.
triggers:
- trigger: state
entity_id:
- switch.fan_high_2
from: 'off'
to: 'on'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_low_2
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_low
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_high_2
mode: single
- id: '1729261435039'
alias: Fan Medium High Interlock
description: Turns off other fan speeds when fan medium-high switch is turned on.
triggers:
- trigger: state
entity_id:
- switch.fan_medium_high_2
from: 'off'
to: 'on'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_low_2
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_low
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_high_2
mode: single
- id: '1729261831943'
alias: Fan Medium Low Interlock
description: Turns off other fan speeds when fan medium-low switch is turned on.
triggers:
- trigger: state
entity_id:
- switch.fan_medium_low_2
from: 'off'
to: 'on'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_low_2
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_high_2
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_high_2
mode: single
- id: '1729261921904'
alias: Fan Low Interlock
description: Turns off other fan speeds when fan low switch is turned on.
triggers:
- trigger: state
entity_id:
- switch.fan_low_2
from: 'off'
to: 'on'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_low
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_high_2
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.fan_high_2
mode: single
- id: '1729262656389'
alias: Ensure Fan Speed is ON
description: Ensures at least low fan speed is on if all other fan speeds are toggled
off.
triggers:
- trigger: state
entity_id:
- switch.fan_high_2
from: 'on'
to: 'off'
for:
hours: 0
minutes: 0
seconds: 2
- trigger: state
entity_id:
- switch.fan_medium_high_2
from: 'on'
to: 'off'
for:
hours: 0
minutes: 0
seconds: 2
- trigger: state
entity_id:
- switch.fan_medium_low_2
from: 'on'
to: 'off'
for:
hours: 0
minutes: 0
seconds: 2
- trigger: state
entity_id:
- switch.fan_low_2
from: 'on'
to: 'off'
for:
hours: 0
minutes: 0
seconds: 2
conditions:
- condition: and
conditions:
- condition: state
entity_id: switch.fan_low_2
state: 'off'
for:
hours: 0
minutes: 0
seconds: 2
- condition: state
entity_id: switch.fan_medium_low_2
state: 'off'
for:
hours: 0
minutes: 0
seconds: 2
- condition: state
entity_id: switch.fan_medium_high_2
state: 'off'
for:
hours: 0
minutes: 0
seconds: 2
- condition: state
entity_id: switch.fan_high_2
state: 'off'
for:
hours: 0
minutes: 0
seconds: 2
actions:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.fan_low_2
mode: single
- id: '1729291609123'
alias: Interlock Fan Speed Selection with Switch
description: Activates the appropriate switch when a fan speed is chosen by the
select menu.
triggers:
- trigger: state
entity_id:
- input_select.frankensystem_fan_speed
conditions: []
actions:
- if:
- condition: state
entity_id: input_select.frankensystem_fan_speed
state: High
for:
hours: 0
minutes: 0
seconds: 0
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.fan_high_2
else:
- if:
- condition: state
entity_id: input_select.frankensystem_fan_speed
state: Medium-High
for:
hours: 0
minutes: 0
seconds: 0
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_high_2
else:
- if:
- condition: state
entity_id: input_select.frankensystem_fan_speed
state: Medium-Low
for:
hours: 0
minutes: 0
seconds: 0
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.fan_medium_low_2
else:
- if:
- condition: state
entity_id: input_select.frankensystem_fan_speed
state: Low
for:
hours: 0
minutes: 0
seconds: 0
then:
- action: switch.turn_on
metadata: {}
data: {}
target:
entity_id: switch.fan_low_2
mode: single
- id: '1729393621896'
alias: Send humidify dew point to test topic.
description: ''
triggers:
- trigger: state
entity_id:
- input_number.humidify_dew_point
conditions: []
actions:
- action: mqtt.publish
data:
evaluate_payload: false
qos: 0
retain: false
topic: frankensystem/test
payload: '{{ state_attr(''input_number.humidify_dew_point'', ''state'') | float
}}'
mode: single
- id: '1729433000402'
alias: Notify Authentik postgres changed.
description: Send a notification when the state of postgres changed for the Authentik
service. This generally happens when the docker volume is disconnected and requires
attention.
triggers:
- trigger: state
entity_id:
- sensor.portainer_mighty_mini_authentik_postgres
for:
hours: 0
minutes: 0
seconds: 0
conditions: []
actions:
- action: notify.notify
metadata: {}
data:
message: Authentik postgres changed {{ states('sensor.portainer_mighty_mini_authentik_postgres')
}}
mode: single