en:instructions_sw
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:instructions_sw [2023/01/29 21:54] – external edit 127.0.0.1 | en:instructions_sw [2025/03/21 13:56] (current) – HomeAssistant ESPHome_Builder added 84.248.112.152 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Software installation manual ====== | ====== Software installation manual ====== | ||
- | MitsuRunner source code can be downloaded here: https:// | + | The MitsuRunner source code can be downloaded here: https:// |
- | English instructions are coming | + | ====== ESPHome Installation Guide (Windows) ====== |
+ | Install ESPHome Development Environment on a Windows Machine | ||
+ | * ESPHome uses Python, so download and install if necessary from https:// | ||
+ | * Open the Windows " | ||
+ | Additional instructions | ||
+ | ⇒ ESPHome will be installed (you can ignore any WARNINGs that may occur during installation). Now the development environment is on your machine, and you can close the " | ||
+ | |||
+ | Test your assembled device with the " | ||
+ | |||
+ | * Save the " | ||
+ | * Edit the file with your home network' | ||
+ | * Ensure that the pin configurations for temperature sensors and relay control match your wiring | ||
+ | |||
+ | * Connect your assembled device to your Windows machine via USB | ||
+ | * Open the Windows Command Prompt, navigate to the " | ||
+ | If the compilation is successful, the program will ask for the upload method (USB or OTI). Choose USB. ⇒ the code will be uploaded to the device via USB. | ||
+ | |||
+ | !! If the upload fails, make sure that the USB driver for WeMos_D1 is installed on your Windows machine. | ||
+ | |||
+ | After installing HW_check, check: | ||
+ | |||
+ | * The relay clicks (0.5 sec ON every 5 sec) | ||
+ | * The computer screen displays a log showing: | ||
+ | * The device is connected to your home network | ||
+ | * DS18B20 temperature sensor IDs - make a note of these, you will need them later - and the measured temperatures | ||
+ | * Also, test the OTI update by entering " | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== ESPHome Installation Guide (Linux) ====== | ||
+ | As a Linux user, you probably know how to find the instructions yourself on the internet ;) | ||
+ | |||
+ | Instructions for installing ESPHome: https:// | ||
+ | Check the other instructions above. | ||
+ | |||
+ | ---- | ||
+ | |||
+ | ====== MitsuRunner Software Installation Guide ====== | ||
+ | Download Mitsurunner from https:// | ||
+ | |||
+ | Edit // | ||
+ | |||
+ | Some examples: | ||
+ | |||
+ | **a) mitsu_conf.yaml for Wemos-Mitsurunner with IoT-Guru** | ||
+ | <<: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - constants.h | ||
+ | - state.h | ||
+ | **b) mitsu_conf.yaml for Sonoff_Elite-Mitsurunner with HomeAssistant** | ||
+ | <<: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - constants.h | ||
+ | - state.h | ||
+ | **c) mitsu_conf.yaml for Wemos-Mitsurunner without WiFi-connention** | ||
+ | <<: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - constants.h | ||
+ | - state.h | ||
+ | |||
+ | **Update the parameters to the files you are using** | ||
+ | Detailed instructions for updating the parameters in each file. | ||
+ | |||
+ | **1.platform_wemos.yaml / platform_elite.yaml** | ||
+ | | ||
+ | *Used GPIO pins (DS18B20 1-wire and relay control) | ||
+ | *When using HomeAssistant, | ||
+ | *Add a comment “#” to the beginning of the “level: INFO” line for more detailed trace data, this may be helpful during the Mitsurunner installation process | ||
+ | |||
+ | **2.secrets.yaml / screts_sa.yaml** | ||
+ | | ||
+ | | ||
+ | |||
+ | **3.mqtt_Guru.yaml / mqtt_local.yaml** | ||
+ | | ||
+ | | ||
+ | |||
+ | **4. constants.h** | ||
+ | |||
+ | file defines the operating parameters of Mitsurunner (timers, temperature limits). Usually the default values work well, but you can also modify those if necessary. | ||
+ | |||
+ | =========================================== | ||
+ | |||
+ | ==== Compiling, downloading and testing the program with ESPTool ==== | ||
+ | * Connect Mitsurunner with a USB cable, compile code and install binar to the device with the command < | ||
+ | program starts, trace-log is printed on the screen. From trace-log check: | ||
+ | |||
+ | * Mitsurunner is connected to your home network | ||
+ | * The temperatures of the DS18B20 sensors are correct | ||
+ | * Mitsurunner is connected to the MQTT server (if MQTT is enabled) | ||
+ | * The information you have specified is updated to the MQTT server | ||
+ | * If you use IoT-Guru without a USB connection, the trace-log will not be printed on the screen. However, you can see the log by going to the Mitsurunner IP address in a browser. | ||
+ | |||
+ | ====Compiling, | ||
+ | |||
+ | Mitsurunner software can also be compiled and uploaded with // | ||
+ | There are several ways to do this, one straightforward way is described below. Mitsurunner program created in this way can be uploaded as OTA over the version created with ESPTool without USB upload. | ||
+ | |||
+ | 1) Create a new directory **mitsu** in the **HomeAssistant/ | ||
+ | |||
+ | 2) Copy the files defined in **mitsu_conf.yaml** directory to the **HomeAssistant/ | ||
+ | |||
+ | 3) Edit **mitsu_conf.yaml** file by specifying the directory where the files are located. | ||
+ | |||
+ | <<: | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | | ||
+ | - mitsu/ | ||
+ | - mitsu/ | ||
+ | |||
+ | 4) Add the **mitsu_conf.yaml** file you edited to the **HomeAssistant/ | ||
+ | |||
+ | 5) Open // | ||
+ | Select **edit**, you will see the contents of the " | ||
+ | |||
+ | 6) Compile the code by selecting **install** --> **Manual download** --> a window will open where you can see the progress of the compilation. | ||
+ | If/when the translation goes without errors, save the generated **mitsurunner.bin** file and close the window | ||
+ | |||
+ | 7) Select // | ||
+ | * select **install** again in the upper right corner | ||
+ | * select **Plug into this computer** | ||
+ | * select **Open ESPHome Web** | ||
+ | * select **Connect** | ||
+ | * select **USB port** | ||
+ | * select **Establish connection** | ||
+ | * select **Install** | ||
+ | * select the previously saved **mitsurunner.bin** file | ||
+ | * select **Install** | ||
+ | |||
+ | Mitsurunner software is now downloaded and Mitsurunner should work. By selecting ESPHome/ | ||
+ | |||
+ | You can do the following downloads via OTA connection | ||
+ | ESPHome/ |
en/instructions_sw.1675022042.txt.gz · Last modified: 2023/01/29 21:54 by 127.0.0.1