diff --git a/esphomeyaml/dashboard/templates/index.html b/esphomeyaml/dashboard/templates/index.html index 21c93c1b73..d8b90146dc 100644 --- a/esphomeyaml/dashboard/templates/index.html +++ b/esphomeyaml/dashboard/templates/index.html @@ -387,25 +387,97 @@

Great! Now I need to know what type of microcontroller you're using so that I can compile firmware for them. - Please choose either ESP32 or ESP8266 (use ESP8266 for Sonoff devices). + Please choose the board you're using below. If you're not sure you can also use similar ones + or even the "Generic" option. In most cases that will work too.

- + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - -
-

- I'm also going to need to know which type of board you're using. Please go to - ESP32 boards or - ESP8266 boards, - find your board and enter it here. For example, enter nodemcuv2 - for ESP8266 NodeMCU boards. Note: Use esp01_1m for Sonoff devices. -

-
- -
diff --git a/esphomeyaml/storage_json.py b/esphomeyaml/storage_json.py index 630163768f..e8655db69c 100644 --- a/esphomeyaml/storage_json.py +++ b/esphomeyaml/storage_json.py @@ -94,7 +94,7 @@ class StorageJSON(object): esphomelib_version=None, src_version=1, arduino_version=None, - address=None, + address=address, esp_platform=esp_platform, board=board, build_path=None, diff --git a/esphomeyaml/wizard.py b/esphomeyaml/wizard.py index 3ba72afbea..0cb7653059 100644 --- a/esphomeyaml/wizard.py +++ b/esphomeyaml/wizard.py @@ -84,11 +84,14 @@ def wizard_file(**kwargs): def wizard_write(path, **kwargs): + name = kwargs['name'] + board = kwargs['board'] + if 'platform' not in kwargs: + kwargs['platform'] = 'ESP8266' if board in ESP32_BOARD_PINS else 'ESP32' + platform = kwargs['platform'] + with codecs.open(path, 'w') as f_handle: f_handle.write(wizard_file(**kwargs)) - name = kwargs['name'] - platform = kwargs['platform'] - board = kwargs['board'] storage = StorageJSON.from_wizard(name, name + '.local', platform, board) storage_path = ext_storage_path(os.path.dirname(path), os.path.basename(path)) storage.save(storage_path)