Someone please help this noob!

  - data: {}
    service: switch.turn_on
  alias: New Automation
  condition:
  - condition: state
    entity_id: zwave.ge_unknown_type4f50_id3032
    state: switch.turn_on
  id: '1514986100160'
  trigger:
  - event: sunset
    platform: sun
- action: []
  alias: ''
  condition: []
  id: '1515058004218'
  trigger: []

try this one

automation:
  trigger:
    platform: sun
    event: sunset
    offset: "-00:45:00"
  condition:
    condition: state
    entity_id: group.all_devices
    state: home
  action:
    service: homeassistant.turn_on
    entity_id: group.living_room_lights

Above example will wait for the sunset from sun platform and have to be 45 mins after sunset. Have to match the condition that group all devices are at home. To perform action turn on all group of light in the living room.

automation:
  trigger:
    platform: sun
    event: sunset
    offset: "-00:04:00"
  condition: []
    condition: state
    entity_id: switch.ge_unknown_type4f50_id3032_switch
    state: switch.turn_on
  action:
    service: switch.turn_on
    entity_id: zwave.ge_unknown_type4f50_id3032

yeap still turning on all lights
automation:
  trigger:
    platform: sun
    event: sunset
    offset: "-00:04:00"
  condition: 
    condition: state
    entity_id: switch.ge_unknown_type4f50_id3032_switch
    state: off
  action:
    service: switch.turn_on
    entity_id: zwave.ge_unknown_type4f50_id3032

try this one. this will turn on zwave switch 4 mins after sunset. condition if the zwave switch is off.

``
2018-01-04 04:33:15 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: expected a dictionary. Got OrderedDict([(‘homeassistant’, OrderedDict([(‘name’, ‘Boone Grove’), (‘latitude’, 41.353684), (‘longitude’, -87.133932), (‘elevation’, 715), (‘unit_system’, ‘imperial’), (‘time_zone’, ‘America/Chicago’), (‘customize’, OrderedDict([(‘zwave._’, OrderedDict([(‘friendly_name’, ’ outlet’)])), (‘switch.switch_2’, OrderedDict([(‘friendly_name’, ‘bedroom’)])), (‘switch.switch’, OrderedDict([(‘friendly_name’, ‘outlet’)])), (‘zwave.ecolink_doorwindow_sensor’, OrderedDict([(‘friendly_name’, 'driveway do… (See ?, line ?). Please check the docs at https://home-assistant.io/components/automation/
2018-01-04 04:33:15 WARNING (MainThread) [homeassistant.components.group] Group ‘all_automations’ doesn’t exist!

2018-01-04 04:33:15 WARNING (MainThread) [homeassistant.components.group] Group ‘all_automations’ doesn’t exist!

automation:
  trigger:
    platform: sun
    event: sunset
    offset: "-00:04:00"
  condition: 
    condition: state
    entity_id: <== put the entityy_id of the siwtch
    state: off
  action:
    service: switch.turn_on
    entity_id: <=== put the entity_id of the switch

I don’t know your switch name. You have to put the right entity_id

No luck so far? I am also after a solution to this apparently simple one (to others)!
Cheers,

Did you get the weather to work yet?

Nope. Still on motion sensor!

ok so the trick is to add all sensors: under one group like so.

indent preformatted text by 4 spaces
sensor:

  • platform: yweather
    monitored_conditions:

    • weather
    • weather_current
    • temp_min
    • temp_max
    • wind_speed
    • pressure
    • visibility
    • humidity
    • temperature
  • platform: yweather
    forecast: 1
    name: yw_day1
    monitored_conditions:

    • weather
    • temp_min
    • temp_max
  • platform: yweather
    forecast: 2
    name: yw_day2
    monitored_conditions:

    • weather
    • temp_min
    • temp_max
  • platform: yweather
    forecast: 3
    name: yw_day3
    monitored_conditions:

    • weather
    • temp_min
    • temp_max
  • platform: ‘darksky’
    api_key: api key
    monitored_conditions:

    • summary
    • icon
    • nearest_storm_distance
  • platform: moon

1 Like

Your config is missing a line right at the top.

Add

homeassistant:

to the first line before the name: Boone Grove

1 Like