zacharyrs/ha-melview

Automation

icepicknz opened this issue · 1 comments

I'm trying to create automations in HA but I only have a couple of entities
-MelView Dry Room current temperature
-MelView Dry Room heating
-MelView Dry Room target temperature

I'm looking for a state so I can say "if someone turns on "[dry room] then turn off after [8hrs]"

Any idea how I get the state into there of on or off?

would this be correct

`alias: Turn Off Dry room after timer
description: Turn Off dry room after 8hrs
mode: single
trigger:

  • platform: state
    entity_id: climate.melview_dry_room
    to: auto, heat, cool, dry, fan_only
    for:
    hours: 8
    minutes: 0
    seconds: 0
    milliseconds: 0
    condition: []
    action:
  • service: climate.set_hvac_mode
    data:
    hvac_mode: 'off'
    `