Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95919

Can a numeric state trigger trigger off above and below values from another sensor?

$
0
0

@dwkoeller wrote:

Hi,

I am trying to setup a numeric state automation that triggers relative to a fixed offset on another numeric state sensor. I currently have a ventilation duct in my bedroom closet that draws hot air from a small rack of computer gear and dumps the excess heat into another closet where the AC air handler is located as to not bleed excessive heat into our bedroom over time. I want to trigger an automation for the power to the inline duct fan for this ventilation to kick on when the temperature in the closet exceeds 3 degrees above the temperature monitored near the cold cold air return in the hall and shuts off when the temperature achieves 1 degree above the return temperature in the hall as at that point the there is roughly an equilibrium relative to the current house temperature.

All the examples I see using the above and below directives are comparing to a fixed number. Is it possible to compare above and/or below to a variable numeric state value supplied by another sensor so the trigger points are relative to a variable set point?

Current hardcoded value automation

  alias: Ventilation On
  description: ''
  trigger:
  - above: '76.5'          # goal is to use (sensor.hall_temp + 3) instead of fixed value
    entity_id: sensor.master_closet_temp
    platform: numeric_state
  condition: []
  action:
  - service: switch.turn_on
    entity_id:
    - switch.ventilation_receptacle

-David

Posts: 2

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95919

Trending Articles