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

Automation help, please

$
0
0

I am still completely lost creating an automation. (Which is why I do mine in Node Red). But I thought this would be an easy one to further my education in Home Assistant. I was wrong.

What I want to do is simple, I just want to toggle a light when my freezer temperature goes above 0°C.

I tried with the automation editor and the result worked. Sort of.

alias: Freezer Alarm
description: 'Sound an alarm if the freezer temperature goes above 0°'
trigger:
  - platform: state
    entity_id: sensor.freezer
condition:
  - condition: numeric_state
    entity_id: sensor.freezer
    above: '0'
action:
  - type: toggle
    device_id: 980856cf5c2c488da84e26a85fd98e34
    entity_id: switch.workshop_light
    domain: switch
mode: single

Here’s my problem. I just want to trigger the automation once. The way its written the light toggles continuously if the sensor is returning >0°C.

How do I make it run only once when the temperature goes above 0°C?

And what the he** is “device_id”?

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 107750

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>