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

Start timer after light switch off

$
0
0

@HansHassio wrote:

Within automations.yaml I have placed this code:

- alias: Fan
  trigger:
    platform: state
    entity_id: light.bathroom
    to: 'off'
  action:
    service: switch.turn_on
    entity_id: switch.sonoff218

When the state of the light in the batroom (Philips Hue) changes to OFF the fan (Sonoff) starts running. So far so good but I did not succeed adding a timer function so the fan stops after a certain time.

Can someone help me to add this timer function?

Posts: 3

Participants: 2

Read full topic


Viewing all articles
Browse latest Browse all 95437

Trending Articles



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