mirror of
				https://github.com/esphome/esphome.git
				synced 2025-10-30 06:33:51 +00:00 
			
		
		
		
	Add native ESPHome API (#265)
* Esphomeapi * Updates * Remove MQTT from wizard * Add protobuf to requirements * Fix * API Client updates * Dump config on API connect * Old WiFi config migration * Home Assistant state import * Lint
This commit is contained in:
		| @@ -2,7 +2,7 @@ | ||||
| <html lang="en"> | ||||
| <head> | ||||
|   <meta charset="UTF-8"> | ||||
|   <title>esphomeyaml Dashboard</title> | ||||
|   <title>ESPHome Dashboard</title> | ||||
|   <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet"> | ||||
|   <link rel="stylesheet" href="/static/materialize.min.css?v=1"> | ||||
|   <link rel="stylesheet" href="/static/materialize-stepper.min.css?v=1"> | ||||
| @@ -22,7 +22,7 @@ | ||||
| <header> | ||||
| <nav> | ||||
|   <div class="nav-wrapper indigo"> | ||||
|     <a href="#" class="brand-logo left">esphomeyaml Dashboard</a> | ||||
|     <a href="#" class="brand-logo left">ESPHome Dashboard</a> | ||||
|     <div class="select-port-container right" id="select-port-target"> | ||||
|       <select></select> | ||||
|     </div> | ||||
| @@ -33,7 +33,7 @@ | ||||
|   <div class="tap-target-content"> | ||||
|     <h5>Select Upload Port</h5> | ||||
|     <p> | ||||
|       Here you can select where esphomeyaml will attempt to show logs and upload firmwares to. | ||||
|       Here you can select where ESPHome will attempt to show logs and upload firmwares to. | ||||
|       By default, this is "OTA", or Over-The-Air. Note that you might have to restart the Hass.io add-on | ||||
|       for new serial ports to be detected. | ||||
|     </p> | ||||
| @@ -81,7 +81,7 @@ | ||||
|             <li><a class="action-clean-mqtt" data-node="{{ entry.filename }}">Clean MQTT</a></li> | ||||
|             <li><a class="action-clean" data-node="{{ entry.filename }}">Clean Build</a></li> | ||||
|             <li><a class="action-compile" data-node="{{ entry.filename }}">Compile</a></li> | ||||
|             <li><a class="action-hass-config" data-node="{{ entry.filename }}">Home Assistant Configuration</a></li> | ||||
|             <li><a class="action-hass-config" data-node="{{ entry.filename }}">HASS MQTT Configuration</a></li> | ||||
|           </ul> | ||||
|         </div> | ||||
|       </div> | ||||
| @@ -164,8 +164,8 @@ | ||||
|         <div class="step-content"> | ||||
|           <div class="row"> | ||||
|             <p> | ||||
|               Hi there! I'm the esphomeyaml setup wizard and will guide you through setting up | ||||
|               your first ESP8266 or ESP32-powered device using esphomeyaml. | ||||
|               Hi there! I'm the ESPHome setup wizard and will guide you through setting up | ||||
|               your first ESP8266 or ESP32-powered device using ESPHome. | ||||
|             </p> | ||||
|               <a href="https://www.espressif.com/en/products/hardware/esp8266ex/overview" target="_blank">ESP8266s</a> and | ||||
|               their successors (the <a href="https://www.espressif.com/en/products/hardware/esp32/overview" target="_blank">ESP32s</a>) | ||||
| @@ -174,19 +174,19 @@ | ||||
|               such as the <a href="https://esphomelib.com/esphomeyaml/devices/nodemcu_esp8266.html" target="_blank">NodeMCU</a>. | ||||
|             <p> | ||||
|             </p> | ||||
|               <a href="https://esphomelib.com/esphomeyaml/index.html" target="_blank">esphomeyaml</a>, | ||||
|               <a href="https://esphomelib.com/esphomeyaml/index.html" target="_blank">ESPHome</a>, | ||||
|               the tool you're using here, creates custom firmwares for these devices using YAML configuration | ||||
|               files (similar to the ones you might be used to with Home Assistant). | ||||
|             <p> | ||||
|             </p> | ||||
|               This wizard will create a basic YAML configuration file for your "node" (the microcontroller). | ||||
|               Later, you will be able to customize this file and add some of | ||||
|               <a href="https://github.com/OttoWinter/esphomelib" target="_blank">esphomelib's</a> | ||||
|               Later, you will be able to customize this file and add some of ESPHome's | ||||
|               many integrations. | ||||
|             <p> | ||||
|             <p> | ||||
|               First, I need to know what this node should be called. Choose this name wisely, changing this | ||||
|               later makes Over-The-Air Update attempts difficult. | ||||
|               First, I need to know what this node should be called. Choose this name wisely, it should be unique among | ||||
|               all your ESPs. | ||||
|  | ||||
|               Names must be <strong>lowercase</strong> and <strong>must not contain spaces</strong> (allowed characters: <code class="inlinecode">a-z</code>, | ||||
|               <code class="inlinecode">0-9</code> and <code class="inlinecode">_</code>) | ||||
|             </p> | ||||
| @@ -321,73 +321,15 @@ | ||||
|               <label for="wifi_password">WiFi Password</label> | ||||
|             </div> | ||||
|             <p> | ||||
|               Esphomelib automatically sets up an Over-The-Air update server on the node | ||||
|               so that you only need to flash a firmware via USB once. | ||||
|               ESPHome automatically sets up an Over-The-Air update server on the node | ||||
|               so that you only need to flash a firmware via USB once. This password | ||||
|               is also used to connect to the ESP from Home Assistant. | ||||
|  | ||||
|               Optionally, you can set a password for this upload process here: | ||||
|             </p> | ||||
|             <div class="input-field col s12"> | ||||
|               <input id="ota_password" class="validate" name="ota_password" type="password"> | ||||
|               <label for="ota_password">OTA Password</label> | ||||
|             </div> | ||||
|           </div> | ||||
|           <div class="step-actions"> | ||||
|             <button class="waves-effect waves-dark btn indigo next-step">CONTINUE</button> | ||||
|           </div> | ||||
|         </div> | ||||
|       </li> | ||||
|       <li class="step"> | ||||
|         <div class="step-title waves-effect">MQTT</div> | ||||
|         <div class="step-content"> | ||||
|           <div class="row"> | ||||
|             {% if mqtt_config is None %} | ||||
|               <p> | ||||
|                 esphomelib connects to your Home Assistant instance via | ||||
|                 <a href="https://www.home-assistant.io/docs/mqtt/">MQTT</a>. | ||||
|                   If you haven't already, please set up | ||||
|                   MQTT on your Home Assistant server, for example with the | ||||
|                   <a href="https://www.home-assistant.io/addons/mosquitto/">Mosquitto Hass.io Add-on</a>. | ||||
|               </p> | ||||
|               <p> | ||||
|                 When you're done with that, please enter your MQTT broker here. For example | ||||
|                 <code class="inlinecode">192.168.1.100</code>. | ||||
|                 Please also specify the MQTT username and password you wish esphomelib to use | ||||
|                 (leave them empty if you're not using any authentication). | ||||
|               </p> | ||||
|             {% else %} | ||||
|               <p> | ||||
|                 esphomelib connects to your Home Assistant instance via | ||||
|                 <a href="https://www.home-assistant.io/docs/mqtt/">MQTT</a>. In this section you will have | ||||
|                 to tell esphomelib which MQTT "broker" to use. | ||||
|  | ||||
|               </p> | ||||
|               <p> | ||||
|                 It looks like you've already set up MQTT, the values below are taken from your Hass.io MQTT add-on. | ||||
|                 Please confirm they are correct and press CONTINUE. | ||||
|               </p> | ||||
|             {% end %} | ||||
|             <div class="input-field col s12"> | ||||
|               {% if mqtt_config is None %} | ||||
|                 <input id="mqtt_broker" class="validate" type="text" name="broker" required> | ||||
|               {% else %} | ||||
|                 <input id="mqtt_broker" class="validate" type="text" name="broker" value="{{ mqtt_config['host'] }}" required> | ||||
|               {% end %} | ||||
|               <label for="mqtt_broker">MQTT Broker</label> | ||||
|             </div> | ||||
|             <div class="input-field col s6"> | ||||
|               {% if mqtt_config is None %} | ||||
|                 <input id="mqtt_username" class="validate" type="text" name="mqtt_username"> | ||||
|               {% else %} | ||||
|                 <input id="mqtt_username" class="validate" type="text" name="mqtt_username" value="{{ mqtt_config['username'] }}"> | ||||
|               {% end%} | ||||
|               <label for="mqtt_username">MQTT Username</label> | ||||
|             </div> | ||||
|             <div class="input-field col s6"> | ||||
|               {% if mqtt_config is None %} | ||||
|                 <input id="mqtt_password" class="validate" name="mqtt_password" type="password"> | ||||
|               {% else %} | ||||
|                 <input id="mqtt_password" class="validate" name="mqtt_password" type="password" value="{{ mqtt_config['password'] }}"> | ||||
|               {% end %} | ||||
|               <label for="mqtt_password">MQTT Password</label> | ||||
|               <input id="password" class="validate" name="password" type="password"> | ||||
|               <label for="password">Access Password</label> | ||||
|             </div> | ||||
|           </div> | ||||
|           <div class="step-actions"> | ||||
| @@ -399,7 +341,7 @@ | ||||
|         <div class="step-title waves-effect">Done!</div> | ||||
|         <div class="step-content"> | ||||
|           <p> | ||||
|             Hooray! 🎉🎉🎉 You've successfully created your first esphomeyaml configuration file. | ||||
|             Hooray! 🎉🎉🎉 You've successfully created your first ESPHome configuration file. | ||||
|             When you click Submit, I will save this configuration file under | ||||
|             <code class="inlinecode"><HASS_CONFIG_FOLDER>/esphomeyaml/<NAME_OF_NODE>.yaml</code> and | ||||
|             you will be able to edit this file with the | ||||
| @@ -421,7 +363,7 @@ | ||||
|               </a>. | ||||
|             </li> | ||||
|             <li> | ||||
|               See the <a href="https://esphomelib.com/esphomeyaml/index.html" target="_blank">esphomeyaml index</a> | ||||
|               See the <a href="https://esphomelib.com/esphomeyaml/index.html" target="_blank">ESPHome index</a> | ||||
|               for a list of supported sensors/devices. | ||||
|             </li> | ||||
|             <li> | ||||
| @@ -429,8 +371,8 @@ | ||||
|               have time, I would be happy to help with issues and discuss new features. | ||||
|             </li> | ||||
|             <li> | ||||
|               Star <a href="https://github.com/OttoWinter/esphomelib" target="_blank">esphomelib</a> and | ||||
|               <a href="https://github.com/OttoWinter/esphomeyaml" target="_blank">esphomeyaml</a> on GitHub | ||||
|               Star <a href="https://github.com/OttoWinter/esphomelib" target="_blank">ESPHome Core</a> and | ||||
|               <a href="https://github.com/OttoWinter/esphomeyaml" target="_blank">ESPHome</a> on GitHub | ||||
|               if you find this software awesome and report issues using the bug trackers there. | ||||
|             </li> | ||||
|           </ul> | ||||
| @@ -508,7 +450,7 @@ | ||||
|   <div class="tap-target-content"> | ||||
|     <h5>Set up your first Node</h5> | ||||
|     <p> | ||||
|       Huh... It seems like you you don't have any esphomeyaml configuration files yet... | ||||
|       Huh... It seems like you you don't have any ESPHome configuration files yet... | ||||
|       Fortunately, there's a setup wizard that will step you through setting up your first node 🎉 | ||||
|     </p> | ||||
|   </div> | ||||
| @@ -522,7 +464,7 @@ | ||||
|   <div class="footer-copyright"> | ||||
|     <div class="container"> | ||||
|       © 2018 Copyright Otto Winter, Made with <a class="grey-text text-lighten-4" href="https://materializecss.com/" target="_blank">Materialize</a> | ||||
|       <a class="grey-text text-lighten-4 right" href="{{ docs_link }}" target="_blank">esphomeyaml {{ version }} Documentation</a> | ||||
|       <a class="grey-text text-lighten-4 right" href="{{ docs_link }}" target="_blank">ESPHome {{ version }} Documentation</a> | ||||
|     </div> | ||||
|   </div> | ||||
| </footer> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user