[BOARD] Add Theengs Plug environment (#2065)

Co-authored-by: Florian <1technophile@users.noreply.github.com>
This commit is contained in:
FlorianandFlorian authored and GitHub committed 2024-09-24 10:11:05 -05:00
1 parent 0d338cc5c5
commit 026fb4a337
2 files changed
+59

No files matched your search

+1
View File
@@ -79,6 +79,7 @@ jobs:
- "theengs-bridge"
- "esp32dev-ble-idf"
- "theengs-bridge-v11"
- "theengs-plug"
- "esp32dev-ble-broker"
runs-on: ubuntu-latest
name: Build with PlatformIO
+58
View File
@@ -126,6 +126,64 @@ build_flags =
custom_description = BLE gateway with external antenna and Ethernet/WiFi connectivity, [user guide](https://tbridge02.theengs.io/)
custom_hardware = Theengs Bridge gateway ethernet
; DISCLAIMER: This is the default environment for Theengs Plug.
; Any modifications to this configuration are not covered by warranty.
; Proceed with caution when making changes.
;
; SAFETY WARNING: Do not modify values related to current limits MAX_CURRENT_ACTUATOR or other
; safety-critical parameters. Doing so may lead to fire hazards or damage to the device.
[env:theengs-plug]
platform = ${com.esp32_platform}
board = esp32dev
board_build.partitions = min_spiffs.csv
extra_scripts = ${com-esp32.extra_scripts}
lib_deps =
${com-esp32.lib_deps}
${libraries.ble}
${libraries.decoder}
${libraries.adafruit_neopixel}
${libraries.rn8209}
build_flags =
${env.build_flags}
${com-esp32.build_flags}
'-DZgatewayBT="BT"'
'-DZsensorRN8209="RN8209"'
'-DRN8209_KU=18570'
'-DRN8209_KIA=265263'
'-DRN8209_EC=26675'
'-DTRIGGER_GPIO=4'
'-DZactuatorONOFF="ONOFF"'
'-DACTUATOR_ON=1'
'-DACTUATOR_OFF=0'
'-DACTUATOR_BUTTON_TRIGGER_LEVEL=0'
'-ACTUATOR_TRIGGER=true'
'-DZsensorGPIOInput="GPIOInput"'
'-DINPUT_GPIO=4'
'-DACTUATOR_ONOFF_GPIO=25'
'-DAttemptBLEConnect=false'
'-DLED_ADDRESSABLE=true'
'-DLED_ADDRESSABLE_PIN1=26'
'-DLED_ADDRESSABLE_PIN2=27'
'-DLED_ADDRESSABLE_NUM=2'
'-DLED_ADDRESSABLE_POWER=16'
'-DLED_ERROR=0'
'-DLED_PROCESSING=0'
'-DLED_BROKER=0'
'-DLED_NETWORK=0'
'-DLED_ACTUATOR_ONOFF=1'
; Maximum current in A DO NOT MODIFY MAX_CURRENT_ACTUATOR
;-----------------------------
'-DMAX_CURRENT_ACTUATOR=15.0'
;-----------------------------
'-DWM_PWD_FROM_MAC=true'
'-DUSE_MAC_AS_GATEWAY_NAME'
'-DDEFAULT_LOW_POWER_MODE=DEACTIVATED'
'-DGATEWAY_MANUFACTURER="Theengs"'
'-DGATEWAY_MODEL="TPLUG01"'
'-UZwebUI="WebUI"' ; Disable WebUI
custom_description = Smart Plug, BLE Gateway and energy monitoring, [user guide](https://tplug01.theengs.io/)
custom_hardware = Theengs Plug
[env:esp32dev-all-test]
platform = ${com.esp32_platform}
board = esp32dev