brianjking / homeassistant-config

Configuration for @brianjking Home Assistant
https://home-assistant.io
83 stars 8 forks source link

Diagnose Rainy Day Automation Issues #115

Open brianjking opened 7 years ago

brianjking commented 7 years ago

Current Automation Prior to Edits:

- alias: Rainy Day
  trigger:
    platform: state
    entity_id: sensor.weather_precip_intensity
    to: 'rain'
  condition:
    - condition: state
      entity_id: group.all_devices
      state: 'home'
    - condition: time
      after: '14:00'
      before: '23:00'
  action:
    service: homeassistant.turn_on
    entity_id: group.livingroom_lights

- alias: Rain is over
  trigger:
    - platform: state
      entity_id: sensor.weather_precip_intensity
      to: 'None'
  condition:
    - condition: sun
      after: 'sunset'
  action:
    service: homeassistant.turn_off
    entity_id: group.livingroom_lights 
brianjking commented 6 years ago

https://github.com/brianjking/homeassistant-config/commit/509ad26e06aea1e65b8d3bdc28a7b83dc2178cf7