Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTA fail #699

Closed
Uakkauakkafo opened this issue Aug 25, 2019 · 1 comment
Closed

OTA fail #699

Uakkauakkafo opened this issue Aug 25, 2019 · 1 comment

Comments

@Uakkauakkafo
Copy link

hello,
I have a fail during OTA:

Traceback (most recent call last):
  File "/usr/local/bin/esphomeyaml", line 11, in <module>
    sys.exit(main())
  File "/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py", line 505, in main
    return run_esphomeyaml(sys.argv)
  File "/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py", line 495, in run_esphomeyaml
    return POST_CONFIG_ACTIONS[args.command](args, config)
  File "/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py", line 310, in command_run
    exit_code = upload_program(config, args, port)
  File "/usr/local/lib/python2.7/dist-packages/esphomeyaml/__main__.py", line 199, in upload_program
    res = espota2.run_ota(host, remote_port, password, CORE.firmware_bin)
  File "/usr/local/lib/python2.7/dist-packages/esphomeyaml/espota2.py", line 281, in run_ota
    return run_ota_impl_(remote_host, remote_port, password, filename)
  File "/usr/local/lib/python2.7/dist-packages/esphomeyaml/espota2.py", line 266, in run_ota_impl_
    file_handle = open(filename, 'rb')
IOError: [Errno 2] No such file or directory: u'config/esp32_dth11/.pioenvs/esp32_dth11/firmware.bin'

this is my file:

esphomeyaml:
  name: esp32_dth11
  platform: ESP32
  board: esp32doit-devkit-v1

wifi:
  ssid: 'mySSID'
  password: 'myPWD'

# Enable logging
logger:

# Enable Home Assistant API
api:

ota:

sensor:
  - platform: dht
    pin: 15
    model: DHT22
    temperature:
      name: "Temperatura Studio"
    humidity:
      name: "Umidità Studio"
    update_interval: 60s

switch:
  - platform: gpio
    pin: 23
    name: "Green Light"
    id: led1
  - platform: gpio
    pin: 22
    name: "Blue Light"
    id: led2
  - platform: gpio
    pin: 21
    name: "Red Light"
    id: led3

USB flash work, but via OTA not.

I have "esphome" and "esphomeyaml" installed on a Raspberry Pi 3B+ with Raspbian.
I Run Home Assistant on another Raspberry.

I have also another problem and I don't know if is linked:

I use "esphomeyaml" and flash via USB, all works, I'm also able to link the all in Home Assistant and use it.

If I use "esphome" I had that issue:

~ $ esphome ESP32_DTH11.yaml run
Traceback (most recent call last):
  File "/usr/local/bin/esphome", line 7, in <module>
    from esphome.__main__ import main
  File "/usr/local/lib/python2.7/dist-packages/esphome/__main__.py", line 10, in <module>
    from esphome import const, writer, yaml_util
  File "/usr/local/lib/python2.7/dist-packages/esphome/writer.py", line 7, in <module>
    from esphome.config import iter_components
  File "/usr/local/lib/python2.7/dist-packages/esphome/config.py", line 15, in <module>
    from esphome import core, core_config, yaml_util
  File "/usr/local/lib/python2.7/dist-packages/esphome/core_config.py", line 6, in <module>
    import esphome.config_validation as cv
  File "/usr/local/lib/python2.7/dist-packages/esphome/config_validation.py", line 1242, in <module>
    Optional(CONF_COMMAND_TOPIC): All(requires_component('mqtt'), subscribe_topic),
  File "/usr/local/lib/python2.7/dist-packages/esphome/voluptuous_schema.py", line 198, in extend
    ret = super(_Schema, self).extend(schema, extra=extra)
  File "/usr/local/lib/python2.7/dist-packages/voluptuous/schema_builder.py", line 782, in extend
    return result_cls(result, required=result_required, extra=result_extra)
TypeError: __init__() got an unexpected keyword argument 'required'

Thanks for your support

@close-issue-app
Copy link

#430

@esphome esphome locked and limited conversation to collaborators Oct 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant