Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio

#1 Post by JR01 » 27 Oct 2020, 21:31

Hi all clever peeps !

I want to build a custom, small image for ESP8266 "Sonoff IoT WiFi Development Board" with only:
1) CONTROLLERS - "Home Assistant (openHAB) MQTT" (is this still the right mqtt Controller for generic MQTT?)
2) PLUGINS: a) Switch, b) "Generic - System Info", c) "Generic - Dummy"

I want to do it on vscode, according to https://espeasy.readthedocs.io/en/lates ... th-vs-code ...

I need to edit

Code: Select all

../source/tools/pio/pre_custom_esp82xx.py
to add (whilst commenting other plugins & controllers out):
# "CONTROLLER_SET_ALL",
"USES_C005", # Openhab MQTT
"USES_P001", # Switch
"USES_P033", # Dummy

..Then go to platformio icon, then to Project Tasks env:custom:ESP8266_1M > Build.

Does this sound about right to only build with the controllers & plug-ins I want?
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

User avatar
ThomasB
Normal user
Posts: 1064
Joined: 17 Jun 2018, 20:41
Location: USA

Re: Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio

#2 Post by ThomasB » 28 Oct 2020, 02:29

Does this sound about right to only build with the controllers & plug-ins I want?
Yes, your general workflow sounds legit.

BTW, "USES_P026" is needed to add the System Info plugin.

- Thomas

TD-er
Core team member
Posts: 8644
Joined: 01 Sep 2017, 22:13
Location: the Netherlands
Contact:

Re: Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio

#3 Post by TD-er » 28 Oct 2020, 09:32

Maybe also set the PLUGIN_SET_NONE to make sure it doesn't enable PLUGIN_SET_STABLE by default.

JR01
Normal user
Posts: 260
Joined: 14 Feb 2016, 21:04
Location: South Africa

Re: Build custom ESP8685_1M with C005, P001, P033 ... with vscode & platformio

#4 Post by JR01 » 28 Oct 2020, 15:10

Thank you all.
-----------
IOTPLAY. Tinkerer, my projects are @ http://GitHub.com/IoTPlay, and blog https://iotplay.org. Using RPi, Node-Red, ESP8266 to prove Industry 4.0 concepts.

Post Reply

Who is online

Users browsing this forum: No registered users and 32 guests