Skip to content

Commit b0de8dc

Browse files
authored
Update README.md
1 parent 4ee9bfc commit b0de8dc

File tree

1 file changed

+30
-14
lines changed

1 file changed

+30
-14
lines changed

README.md

+30-14
Original file line numberDiff line numberDiff line change
@@ -57,31 +57,30 @@ Notes:
5757

5858
## MQTT topics
5959

60-
| MQTT topic | Function |
61-
| ------------------------------------ | --------------------------------------------------------------------------------------------- |
62-
| LedStrip/LED1/rgb/json_status | JSON status messages are published to this topic about the RGB strip |
63-
| LedStrip/LED1/rgb/json_set | Set RGB strip using JSON messages |
64-
| LedStrip/LED1/white/json_status | JSON status messages are published to this topic about the dual white strip |
65-
| LedStrip/LED1/white/json_set | Set dual white strip using JSON messages |
66-
| LedStrip/LED1/combined/json_status | JSON status messages are published to this topic about both the RGB and dual white strip |
67-
| LedStrip/LED1/combined/json_set | Set both the RGB and dual white strip using JSON messages |
68-
| LedStrip/LED1/settings/json_status | Get additional global settings in JSON format on this topic |
69-
| LedStrip/LED1/settings/json_set | Set additional global settings using JSON messages |
70-
| LedStrip/LED1/active | Topic to receive the ESP_ID at the start of the module |
60+
| MQTT topic | Function |
61+
| ----------------------------------------- | ------------------------------------------------------------------------------------- |
62+
| LedStrip/LED1/rgb/json_status | JSON status messages are published to this topic about the RGB strip |
63+
| LedStrip/LED1/rgb/json_set | Set RGB strip using JSON messages |
64+
| LedStrip/LED1/white/json_status | JSON status messages are published to this topic about the dual white strip |
65+
| LedStrip/LED1/white/json_set | Set dual white strip using JSON messages |
66+
| LedStrip/LED1/combined/json_status | JSON status messages are published to this topic about both the RGB and dual white strip |
67+
| LedStrip/LED1/combined/json_set | Set both the RGB and dual white strip using JSON messages |
68+
| LedStrip/LED1/settings/json_status | Get additional global settings in JSON format on this topic |
69+
| LedStrip/LED1/settings/json_set | Set additional global settings using JSON messages |
70+
| LedStrip/LED1/active | Topic to receive the ESP_ID at the start of the module |
7171

7272

7373
## Flashing the H801
7474

7575
1. Open the Config.h file and configure your WIFI credentials, MQTT Broker credentials and OTA credentials.
76-
1. As of today I am not sure if OTA works, however it is highly recommended to change the username and password to something else for security.
76+
1. It is highly recommended to change the username and password to something else for security.
7777
1. Open the case and solder 6 Jumers on the board. Four are needed for the serial connection (GND, 3.3V, RX und TX) and two are needed for the Jumper (J1 and J2) to enter the flash mode.
78-
1. Download Arduino IDE (in my case 1.8.5) and prepare the IDE by opening the preferences window.
78+
1. Download Arduino IDE (in my case 1.8.10) and prepare the IDE by opening the preferences window.
7979
1. Enter ```http://arduino.esp8266.com/stable/package_esp8266com_index.json``` into additional board manager URLs field.
8080
1. Open boards manager from tools > board menu and install esp8266 platform
8181
1. Install following new library using the library manager. ("Sketch" menu and then include library > Manage Libraries).
8282
1. PubSubClient
8383
1. ArduinoJson
84-
1. ArduinoOTA
8584
1. ESP8266WiFi
8685
1. IMORTANT: the PubSubClient only allows for a max of 128 bytes by default in a mqtt message. Therefore the MQTT_MAX_PACKET_SIZE needs to be changed for the PubSubClient.h
8786
1. open the PubSubClient.h file (default location: documents/Arduino/libraries/PubSubclient/src/PubSubClient.h)
@@ -111,6 +110,23 @@ If the connection to the MQTT fails it will blink with the red LED 10 times. It
111110

112111
![alt text](https://raw.githubusercontent.com/starkillerOG/h801-mqtt-json/master/pictures/flashing_h801.jpg)
113112

113+
## Subsequent OTA updates of the H801
114+
After you have completed the initial flash of the H801 as described above, you will be able to flash the H801 Over The Air (OTA) using the wifi-connection.
115+
1. If the H801 is connected to your wifi you schould be able to open a webbrowser on a PC and go to: "http://opa_update_h801_[Module_Name]/firmware" where [Module_Name] is specified in the Config.h file (default: LED1).
116+
1. It will ask for credentials if you browse to that web-page, these are the credentials specified in the Config.h file (OTA_username, OTA_password). After filling in the credentials you should see two buttons: "Choose File" and "Update".
117+
1. Open the latest h801-mqtt-json.ino file that you dowload from this github project with Arduino IDE.
118+
1. Select following in the menu tools:
119+
1. Board: Generic ESP8266 Module
120+
1. Flash Mode: DIO
121+
1. Flash Frequency: 40MHz
122+
1. CPU Frequency: 80 MHz
123+
1. Flash Size: 1M (64K SPIFFS)
124+
1. Upload Speed: 115200
125+
1. In the top bar select "Sketch" --> "Export Compiled Binary", after it completes there schould be a .bin file in the folder where you saved the h801-mqtt-json.ino file.
126+
1. Upload this .bin file to your H801 using first the "Choose File" and then the "Update" button of step 2.
127+
1. Done, the H801 should now update and restart with the new firmware version.
128+
129+
114130
## Home assistant example configuration
115131

116132
```yaml

0 commit comments

Comments
 (0)