Automation - help needed

I plan to migrate from domoticz. Added switches and sensors and now I’m stuck in automation. My code:

automation:
 - alias: Turn on heater in living room
   trigger:
    platform: time
    after: '14:20:00'
  condition: 
    condition: numeric_state
    entity_id: sensor.netatmo_parter_temperature
    below: 30
  action:
    service: switch.turn_on
    entity_id: switch.gsalon

Are you seeing an error in the logs, or is the automation just not triggering? Have you tried it without the condition in place, just to make sure that the Netatmo is being handled correctly?

Netatmo works fine - sensor data is displayed in groups in default view. Log from console:

16-10-08 15:07:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_off>
16-10-08 15:07:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=turn_on>
16-10-08 15:07:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=toggle>
16-10-08 15:07:52 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=reload_core_config>
16-10-08 15:07:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=persistent_notification, service=create>
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.bootstrap] Home Assistant core initialized
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded history from homeassistant.components.history
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded recorder from homeassistant.components.recorder
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded http from homeassistant.components.http
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded discovery from homeassistant.components.discovery
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded group from homeassistant.components.group
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded updater from homeassistant.components.updater
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded logbook from homeassistant.components.logbook
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded frontend from homeassistant.components.frontend
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded api from homeassistant.components.api
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded automation from homeassistant.components.automation
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded conversation from homeassistant.components.conversation
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded netatmo from homeassistant.components.netatmo
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded sensor from homeassistant.components.sensor
16-10-08 15:07:53 INFO (Thread-1) [homeassistant.loader] Loaded switch from homeassistant.components.switch
16-10-08 15:07:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=recorder>
16-10-08 15:07:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=http>
16-10-08 15:07:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=history>
16-10-08 15:07:53 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=discovery>
16-10-08 15:07:53 INFO (Thread-1) [urllib3.connectionpool] Starting new HTTPS connection (1): pypi.python.org
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=updater>
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=api>
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=frontend>
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=logbook, service=log>
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=logbook>
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=conversation, service=process>
16-10-08 15:07:54 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=conversation>
16-10-08 15:07:55 INFO (ThreadPool Worker 0) [homeassistant.loader] Loaded camera from homeassistant.components.camera
16-10-08 15:07:55 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=netatmo>
16-10-08 15:07:55 INFO (Thread-1) [homeassistant.loader] Loaded sensor.netatmo from homeassistant.components.sensor.netatmo
16-10-08 15:08:10 ERROR (Thread-1) [homeassistant.components.sensor.netatmo] Module name: "Pole" not found
16-10-08 15:08:10 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_sypialnia_temperature, new_state=<state sensor.netatmo_sypialnia_temperature=20.4; friendly_name=Temp., icon=mdi:thermometer, unit_of_measurement=°C @ 2016-10-08T15:08:10.990283+02:00>>
16-10-08 15:08:10 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_sypialnia_humidity, new_state=<state sensor.netatmo_sypialnia_humidity=53; friendly_name=Wilgotność, icon=mdi:water-percent, unit_of_measurement=% @ 2016-10-08T15:08:10.994690+02:00>>
16-10-08 15:08:10 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_sypialnia_co2, new_state=<state sensor.netatmo_sypialnia_co2=1293; friendly_name=CO2, icon=mdi:cloud, unit_of_measurement=ppm @ 2016-10-08T15:08:10.999227+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_sypialnia_battery, new_state=<state sensor.netatmo_sypialnia_battery=Full; friendly_name=Bateria, icon=mdi:battery @ 2016-10-08T15:08:11.003795+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_parter_temperature, new_state=<state sensor.netatmo_parter_temperature=23.1; friendly_name=Temp., icon=mdi:thermometer, unit_of_measurement=°C @ 2016-10-08T15:08:11.008226+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_parter_humidity, new_state=<state sensor.netatmo_parter_humidity=53; friendly_name=Wilgotność, icon=mdi:water-percent, unit_of_measurement=% @ 2016-10-08T15:08:11.012563+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_parter_noise, new_state=<state sensor.netatmo_parter_noise=45; friendly_name=Hałas, icon=mdi:volume-high, unit_of_measurement=dB @ 2016-10-08T15:08:11.017214+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_parter_pressure, new_state=<state sensor.netatmo_parter_pressure=1017.9; friendly_name=Ciśnienie, icon=mdi:gauge, unit_of_measurement=mbar @ 2016-10-08T15:08:11.021651+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=sensor.netatmo_parter_co2, new_state=<state sensor.netatmo_parter_co2=1099; friendly_name=CO2, icon=mdi:cloud, unit_of_measurement=ppm @ 2016-10-08T15:08:11.026495+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=sensor>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: platform=netatmo, service=load_platform.sensor, discovered=>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=camera>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event platform_discovered[L]: platform=netatmo, service=load_platform.camera, discovered=>
16-10-08 15:08:11 INFO (ThreadPool Worker 3) [homeassistant.loader] Loaded camera.netatmo from homeassistant.components.camera.netatmo
16-10-08 15:08:11 INFO (Thread-1) [homeassistant.loader] Loaded switch.rpi_gpio from homeassistant.components.switch.rpi_gpio
16-10-08 15:08:11 INFO (Thread-1) [homeassistant.loader] Loaded rpi_gpio from homeassistant.components.rpi_gpio
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=rpi_gpio>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=switch.glazienka, new_state=<state switch.glazienka=off; friendly_name=Łazienka, icon=mdi:fire @ 2016-10-08T15:08:11.093549+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=switch.gwoda, new_state=<state switch.gwoda=off; friendly_name=Bojler, icon=mdi:water @ 2016-10-08T15:08:11.098236+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=switch.gkuchnia, new_state=<state switch.gkuchnia=off; friendly_name=Kuchnia, icon=mdi:fire @ 2016-10-08T15:08:11.102079+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=switch.gsalon, new_state=<state switch.gsalon=off; friendly_name=Salon, icon=mdi:fire @ 2016-10-08T15:08:11.105750+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.all_switches, new_state=<state group.all_switches=unknown; entity_id=[], auto=True, hidden=True, friendly_name=all switches, order=0 @ 2016-10-08T15:08:11.110609+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state group.all_switches=unknown; entity_id=[], auto=True, hidden=True, friendly_name=all switches, order=0 @ 2016-10-08T15:08:11.110609+02:00>, entity_id=group.all_switches, new_state=None>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.all_switches, new_state=<state group.all_switches=off; entity_id=('switch.glazienka', 'switch.gwoda', 'switch.gsalon', 'switch.gkuchnia'), auto=True, hidden=True, friendly_name=all switches, order=0 @ 2016-10-08T15:08:11.117510+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=turn_off>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=turn_on>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=switch, service=toggle>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=switch>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.default_view, new_state=<state group.default_view=unknown; entity_id=('group.parter', 'group.poddasze', 'group.pole', 'group.grzejniki', 'sensor.sensor_time'), hidden=True, friendly_name=default_view, view=True, order=1 @ 2016-10-08T15:08:11.214729+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.parter, new_state=<state group.parter=unknown; entity_id=('sensor.netatmo_parter_co2', 'sensor.netatmo_parter_humidity', 'sensor.netatmo_parter_noise', 'sensor.netatmo_parter_pressure', 'sensor.netatmo_parter_temperature'), friendly_name=Parter, order=2 @ 2016-10-08T15:08:11.219728+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.pole, new_state=<state group.pole=unknown; entity_id=('sensor.netatmo_pole_battery', 'sensor.netatmo_pole_humidity', 'sensor.netatmo_pole_max_temp', 'sensor.netatmo_pole_min_temp', 'sensor.netatmo_pole_temperature'), friendly_name=Pole, order=3 @ 2016-10-08T15:08:11.224655+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.poddasze, new_state=<state group.poddasze=unknown; entity_id=('sensor.netatmo_sypialnia_battery', 'sensor.netatmo_sypialnia_co2', 'sensor.netatmo_sypialnia_humidity', 'sensor.netatmo_sypialnia_temperature'), friendly_name=Góra, order=4 @ 2016-10-08T15:08:11.229646+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=group.grzejniki, new_state=<state group.grzejniki=off; entity_id=('switch.glazienka', 'switch.gkuchnia', 'switch.gsalon', 'switch.gwoda'), friendly_name=Grzejniki, order=5 @ 2016-10-08T15:08:11.234827+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=<state group.default_view=unknown; entity_id=('group.parter', 'group.poddasze', 'group.pole', 'group.grzejniki', 'sensor.sensor_time'), hidden=True, friendly_name=default_view, view=True, order=1 @ 2016-10-08T15:08:11.214729+02:00>, entity_id=group.default_view, new_state=<state group.default_view=off; entity_id=('group.parter', 'group.poddasze', 'group.pole', 'group.grzejniki', 'sensor.sensor_time'), hidden=True, friendly_name=default_view, view=True, order=1 @ 2016-10-08T15:08:11.238029+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=group, service=reload>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=group>
16-10-08 15:08:11 INFO (Thread-1) [homeassistant.loader] Loaded automation.time from homeassistant.components.automation.time
16-10-08 15:08:11 INFO (Thread-1) [homeassistant.components.automation] Initialized rule Turn on heater in living room
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event state_changed[L]: old_state=None, entity_id=automation.turn_on_heater_in_living_room, new_state=<state automation.turn_on_heater_in_living_room=on; last_triggered=None, friendly_name=Turn on heater in living room @ 2016-10-08T15:08:11.431346+02:00>>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=trigger>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=reload>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_on>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=turn_off>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=automation, service=toggle>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event component_loaded[L]: component=automation>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Starting Home Assistant (11 threads)
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Starting Home Assistant core loop
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event homeassistant_start[L]>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=stop>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Bus:Handling <Event service_registered[L]: domain=homeassistant, service=restart>
16-10-08 15:08:11 INFO (MainThread) [homeassistant.core] Timer:starting
16-10-08 15:08:11 INFO (Thread-4) [netdisco.service] Scanning
16-10-08 15:08:15 INFO (CP Server Thread-5) [homeassistant.components.http] Serving /api/stream to 192.168.1.108 (auth: True)
16-10-08 15:08:15 INFO (CP Server Thread-6) [homeassistant.components.http] Serving /api/bootstrap to 192.168.1.108 (auth: True)
16-10-08 15:08:16 ERROR (ThreadPool Worker 3) [homeassistant.components.camera] Error while setting up platform netatmo
Traceback (most recent call last):
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py", line 107, in _setup_platform
    discovery_info)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/netatmo.py", line 45, in setup_platform
    for camera_name in data.get_camera_names():
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/netatmo.py", line 103, in get_camera_names
    self.update()
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/util/__init__.py", line 296, in wrapper
    result = method(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/camera/netatmo.py", line 117, in update
    self.welcomedata = lnetatmo.WelcomeData(self.auth)
  File "/home/pi/.homeassistant/deps/lnetatmo.py", line 291, in __init__
    if not self.homes : raise NoDevice("No camera available")
lnetatmo.NoDevice: No camera available
16-10-08 15:08:32 INFO (Thread-4) [urllib3.connectionpool] Starting new HTTP connection (1): 192.168.1.108

If you copied the code 1:1 then it’s the leading spaces. As it’s here on the forum they are not correct

After fix - not works:

automation:
  - alias: Turn on heater in living room
    trigger:
      platform: time
      after: '14:20:00'
    action:
      service: switch.turn_on
      entity_id: switch.gsalon

I still think it is a layout/formatting issue. Try chaining ’ to "

automation:
  - alias: Turn on heater in living room
    trigger:
      platform: time
      after: "14:20:00"
    action:
      - service: switch.turn_on
        entity_id: switch.gsalon

Is that the only automation you have in your automation: section?
If yes…try this (quoting the alias):

automation:
  - alias: "Turn on heater in living room"
    trigger:
      platform: time
      after: "14:20:00"
    action:
      - service: switch.turn_on
        entity_id: switch.gsalon

Still not works :frowning:

I installed it on domoticz raspbian. Domoticz service is stopped. Maybe I should do clean install?

But switching it on webpage turns on this heater.

It’s the only automation.

I’ve simular issue with V 0.30…
With 0.28.2 work perfect!
Codesnipper try ti install V 0.28.2

Clean install with all in one installer, downgraded to 0.28.2. Still not works :frowning:

My config file:

homeassistant:
# Name of the location where Home Assistant is running
  name: Dom
# Location required to calculate the time the sun rises and sets
  latitude: 52.2333
  longitude: 21.0167
# Impacts weather/sunrise data (altitude above sea level in meters)
  elevation: 112
# metric for Metric, imperial for Imperial
  unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
  time_zone: Europe/Warsaw
# Show links to resources in log and frontend

  customize:
    sensor.netatmo_parter_co2:
      friendly_name: CO2
    sensor.netatmo_parter_humidity:
      friendly_name: Wilgotność
    sensor.netatmo_parter_noise:
      friendly_name: Hałas
    sensor.netatmo_parter_pressure:
      friendly_name: Ciśnienie
    sensor.netatmo_parter_temperature:
      friendly_name: Temp.
    sensor.netatmo_pole_battery:
      friendly_name: Bateria
    sensor.netatmo_pole_humidity:
      friendly_name: Wilgotność
    sensor.netatmo_pole_max_temp:
      friendly_name: Max Temp.
    sensor.netatmo_pole_min_temp:
      friendly_name: Min Temp.
    sensor.netatmo_pole_temperature:
      friendly_name: Temp.
    sensor.netatmo_sypialnia_battery:
      friendly_name: Bateria
    sensor.netatmo_sypialnia_co2:
      friendly_name: CO2
    sensor.netatmo_sypialnia_humidity:
      friendly_name: Wilgotność
    sensor.netatmo_sypialnia_temperature:
      friendly_name: Temp.
    switch.glazienka:
      icon: mdi:fire
      friendly_name: Łazienka
    switch.gsalon:
      icon: mdi:fire
      friendly_name: Salon
    switch.gkuchnia:
      icon: mdi:fire
      friendly_name: Kuchnia
    switch.gwoda:
      icon: mdi:water
      friendly_name: Bojler

switch:
  platform: rpi_gpio
  ports:
    12: gkuchnia
    21: gsalon
    19: gwoda
    16: glazienka
  invert_logic: true

netatmo:
  api_key: 
  secret_key: 
  username: 
  password: 

sensor:
  platform: netatmo
  station: Dom
  modules:
    Parter:
      - temperature
      - humidity
      - noise
      - pressure
      - co2
    Sypialnia:
      - temperature
      - humidity
      - co2
      - battery_vp
    Pole:
      - temperature
      - battery_vp
      - min_temp
      - max_temp
      - humidity

group:
  default_view:
    view: yes
    entities:
      - group.parter
      - group.poddasze
      - group.pole
      - group.grzejniki
      - sensor.sensor_time
      
  parter:
    name: Parter
    entities:
      - sensor.netatmo_parter_co2
      - sensor.netatmo_parter_humidity
      - sensor.netatmo_parter_noise
      - sensor.netatmo_parter_pressure
      - sensor.netatmo_parter_temperature
  pole:
    name: Pole
    entities:
      - sensor.netatmo_pole_battery
      - sensor.netatmo_pole_humidity
      - sensor.netatmo_pole_max_temp
      - sensor.netatmo_pole_min_temp
      - sensor.netatmo_pole_temperature
  poddasze:
    name: Góra
    entities:
      - sensor.netatmo_sypialnia_battery
      - sensor.netatmo_sypialnia_co2
      - sensor.netatmo_sypialnia_humidity
      - sensor.netatmo_sypialnia_temperature
  grzejniki:
    name: Grzejniki
    entities:
      - switch.glazienka
      - switch.gkuchnia
      - switch.gsalon
      - switch.gwoda

automation:
  - alias: "Turn on heater in living room"
    trigger:
      platform: time
      after: "10:20:00"
    action:
      - service: switch.turn_on
        entity_id: switch.gsalon

http:
  # Uncomment this to add a password (recommended!)
  # api_password: PASSWORD

# Checks for available updates
updater:

# Discover some devices automatically
discovery:

# Allows you to issue voice commands from the frontend in enabled browsers
conversation:

# Enables support for tracking state changes over time.
history:

# View all events in a logbook
logbook:

This works perfect:

automation:
  - alias: "Turn on heater in living room"
    trigger:
      platform: time
      hours: 19
      minutes: 13
      seconds: 30
    action:
      - service: switch.turn_on
        entity_id: switch.gsalon

My adventure with HS will be short, I guess :frowning:

I have recently started with HA and have found a few things frustration to me and I am sure a lot of other new people. What has helped me a lot was finding other users setup files and learning by using there setup files.this is a nice looking config file. look at the file you will notice how its spaced out. some other config files don’t have sensors, lights,etc in there config files. They have them in folders and then add includes into the config file. I have had issues and even asked questions. this was a response from one of the posts. very good information the gitter is also a great place to go and ask questions thats where I learned that the way you use the include will define how and where you use - hyphen in you yaml files. I am by no means the greatest at this. But once you start getting help from this great community something will click and it will make sense. I can’t explain how it happens you will get an ah ha moment.

Heh, simple as is:

When you want test this setting, you have to set time in future. Example:

When is 13:00:00 and you set the after: "12:00:00" it won’t work, but if you set after: "13:05:00" and wait to that time, trigger works.

Classic :laughing:

True with triggers, not with conditions.