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

Help with my first automation... turning on and off at specific times

$
0
0

@LVLAaron wrote:

Curious how I can make this simpe procedure a little more robust.

I have a plug I want on at 0100 and off at 2300. As is, it works.

But lets say its 0800 when I create, save, and enable this config. It wont turn on the outlet. Same if I make other changes or reboot hass for some reason it wont turn the outlet on.

Is there a way to set it so instead of exact “on” times its something like 0100 AND AFTER?

- alias: Outlet ON
  trigger:
    platform: time
    at: 01:00:00
  action:
    service: switch.turn_on
    entity_id: switch.tasmota_4
  id: 2d41d5145b3e45f382027496c8e9101b

- alias: Outlet OFF
  trigger:
    platform: time
    at: '23:00:00'
  action:
    service: switch.turn_off
    entity_id: switch.tasmota_4
  id: 0789a6ba6c5b426db9de4cad77bdf95a

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 101976

Trending Articles



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