When i try to add the following to the YAML (switch):
on_press:
then:
switch.toggle: "${plug_name}_Relay"
i get compliation errors, can't figure out why:
INFO Reading configuration...
WARNING The esphomeyaml section has been renamed to esphome in 1.11.0. Please replace 'esphomeyaml:' in your configuration with 'esphome:'.
INFO Detected timezone 'CET' with UTC offset 1 and daylight savings time from 03/31/19 02:00:00 to 10/27/19 03:00:00
Failed config
Operating environment/Installation (Hass.io/Docker/pip/etc.):
Hass.io on CentOS 7 with the latests stable release of addon ESPHome ESP (ESP32/ESP8266, Board/Sonoff):
esp8285 Affected component:
https://esphome.io/components/binary_sensor/index.html
Description of problem:
When i try to add the following to the YAML (switch): on_press: then:
INFO Reading configuration... WARNING The esphomeyaml section has been renamed to esphome in 1.11.0. Please replace 'esphomeyaml:' in your configuration with 'esphome:'. INFO Detected timezone 'CET' with UTC offset 1 and daylight savings time from 03/31/19 02:00:00 to 10/27/19 03:00:00 Failed config
binary_sensor.gpio: platform: gpio pin: number: 3 inverted: True name: energy_2_button on_press:
then: [source /config/esphome/energy_2.yaml:49]
switch.toggle:
Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information and things you've tried:
Been adjusting the config, tried the direct name instead of the template but still won't validate.