mirror of
https://github.com/openshwprojects/OpenBK7231T_App.git
synced 2025-10-29 19:43:22 +00:00
EXPERIMENT: allow alternate build permutations (with berry), should not break anything
* Update obk_config.h * Update workflow.yaml * Update obk_config.h * v2 * Update workflow.yaml * test * tr3 * ffs * save fx * Update workflow.yaml * APP NAME FX? * Update workflow.yaml * Update workflow.yaml * Update workflow.yaml * Update workflow.yaml * test * Update obk_config.h * Update win_main.c * Update Makefile * test * Update obk_config_berry.h * test * test * matrix * Update workflow.yaml * Update obk_config.h
This commit is contained in:
parent
9a7447fd4b
commit
64ec573482
80
.github/workflows/workflow.yaml
vendored
80
.github/workflows/workflow.yaml
vendored
@ -110,7 +110,52 @@ jobs:
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
platform: [OpenBK7231T, OpenBK7231N, OpenBK7238, OpenXR809, OpenBL602, OpenW800, OpenW600, OpenLN882H, OpenTR6260, OpenRTL8710A, OpenRTL8710B, OpenRTL87X0C, OpenRTL8720D, OpenECR6600]
|
||||
include:
|
||||
# default for all platforms
|
||||
- platform: OpenBK7231T
|
||||
variant: default
|
||||
- platform: OpenBK7231N
|
||||
variant: default
|
||||
- platform: OpenBK7238
|
||||
variant: berry
|
||||
- platform: OpenXR809
|
||||
variant: default
|
||||
- platform: OpenBL602
|
||||
variant: default
|
||||
- platform: OpenW800
|
||||
variant: default
|
||||
- platform: OpenW600
|
||||
variant: default
|
||||
- platform: OpenLN882H
|
||||
variant: default
|
||||
- platform: OpenTR6260
|
||||
variant: default
|
||||
- platform: OpenRTL8710A
|
||||
variant: default
|
||||
- platform: OpenRTL8710B
|
||||
variant: default
|
||||
- platform: OpenRTL87X0C
|
||||
variant: default
|
||||
- platform: OpenRTL8720D
|
||||
variant: default
|
||||
- platform: OpenECR6600
|
||||
variant: default
|
||||
|
||||
# extras for BK7231T
|
||||
- platform: OpenBK7231T
|
||||
variant: berry
|
||||
- platform: OpenBK7231T
|
||||
variant: tuyaMCU
|
||||
- platform: OpenBK7231T
|
||||
variant: powerMetering
|
||||
|
||||
# extras for BK7231N
|
||||
- platform: OpenBK7231N
|
||||
variant: berry
|
||||
- platform: OpenBK7231N
|
||||
variant: tuyaMCU
|
||||
- platform: OpenBK7231N
|
||||
variant: powerMetering
|
||||
steps:
|
||||
- name: Source checkout
|
||||
uses: actions/checkout@v4
|
||||
@ -127,27 +172,30 @@ jobs:
|
||||
pip3 install configobj
|
||||
pip3 install toml
|
||||
pip3 install fdt
|
||||
- name: Copy config header
|
||||
if: matrix.variant != 'default'
|
||||
run: cp src/configs/obk_config_${{ matrix.variant }}.h src/obk_config.h
|
||||
- run: ls -la
|
||||
- name: Run make
|
||||
run: make APP_VERSION=${{ needs.refs.outputs.version }} APP_NAME=${{ matrix.platform }} ${{ matrix.platform }}
|
||||
run: make APP_VERSION=${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }} APP_NAME=${{ matrix.platform }} VARIANT=${{ matrix.variant }} ${{ matrix.platform }}
|
||||
- name: Save build assets
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}
|
||||
name: ${{ env.APP_NAME }}_${{ needs.refs.outputs.version }}_${{ matrix.platform }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}
|
||||
path: |
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_UA_${{ needs.refs.outputs.version }}.bin
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_UG_${{ needs.refs.outputs.version }}.bin
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_QIO_${{ needs.refs.outputs.version }}.bin
|
||||
output/${{ needs.refs.outputs.version }}/OpenBK7231M_QIO_${{ needs.refs.outputs.version }}.bin
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}.rbl
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}.img
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}.bin
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}.fls
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}_ota.img
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}_gz.img
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}_OTA.bin
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}_OTA.bin.xz
|
||||
output/${{ needs.refs.outputs.version }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}_OTA.bin.xz.ota
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_UA_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.bin
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_UG_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.bin
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_QIO_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.bin
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/OpenBK7231M_QIO_${{ needs.refs.outputs.version }}.bin
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.rbl
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.img
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.bin
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}.fls
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}_ota.img
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}_gz.img
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}_OTA.bin
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}_OTA.bin.xz
|
||||
output/${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}/${{ matrix.platform }}_${{ needs.refs.outputs.version }}${{ matrix.variant != 'default' && '_' || '' }}${{ matrix.variant != 'default' && matrix.variant || '' }}_OTA.bin.xz.ota
|
||||
if-no-files-found: warn
|
||||
|
||||
build_idf:
|
||||
|
||||
420
src/configs/obk_config_berry.h
Normal file
420
src/configs/obk_config_berry.h
Normal file
@ -0,0 +1,420 @@
|
||||
//////////////////////////////////////////////////////
|
||||
// specify which parts of the app we wish to be active
|
||||
//
|
||||
#ifndef OBK_CONFIG_H
|
||||
#define OBK_CONFIG_H
|
||||
|
||||
// Starts with all driver flags undefined
|
||||
|
||||
|
||||
// NOTE:
|
||||
// Defines for HTTP/HTMP (UI) pages: ENABLE_HTTP_*
|
||||
// Defines for drivers from drv_main.c: ENABLE_DRIVER_*
|
||||
// Other defines: ENABLE_* , for example: ENABLE_LED_BASIC
|
||||
|
||||
#define ENABLE_HTTP_MQTT 1
|
||||
#define ENABLE_HTTP_IP 1
|
||||
#define ENABLE_HTTP_WEBAPP 1
|
||||
#define ENABLE_HTTP_NAMES 1
|
||||
#define ENABLE_HTTP_MAC 1
|
||||
#define ENABLE_HTTP_FLAGS 1
|
||||
#define ENABLE_HTTP_STARTUP 1
|
||||
#define ENABLE_HTTP_PING 1
|
||||
#define ENABLE_LED_BASIC 1
|
||||
|
||||
#if PLATFORM_XR809
|
||||
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define OBK_DISABLE_ALL_DRIVERS 1
|
||||
|
||||
#elif PLATFORM_W600
|
||||
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_BMP280 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
#elif PLATFORM_W800
|
||||
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_DRIVER_SHT3X 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_DRIVER_BMP280 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
|
||||
#elif WINDOWS
|
||||
|
||||
#if LINUX
|
||||
|
||||
#else
|
||||
|
||||
#define ENABLE_SDL_WINDOW 1
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#define ENABLE_DRIVER_PIR 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0942SPI 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_TESTPOWER 1
|
||||
#define ENABLE_DRIVER_HT16K33 1
|
||||
#define ENABLE_DRIVER_MAX72XX 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TEST_COMMANDS 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_TEST_DRIVERS 1
|
||||
#define ENABLE_DRIVER_BRIDGE 1
|
||||
#define ENABLE_DRIVER_HTTPBUTTONS 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_PT6523 1
|
||||
#define ENABLE_DRIVER_MAX6675 1
|
||||
#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_SM16703P 1
|
||||
#define ENABLE_DRIVER_PIXELANIM 1
|
||||
#define ENABLE_DRIVER_TMGN 1
|
||||
#define ENABLE_DRIVER_DRAWERS 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_ADCBUTTON 1
|
||||
#define ENABLE_DRIVER_SM15155E 1
|
||||
//#define ENABLE_DRIVER_IR 1
|
||||
//#define ENABLE_DRIVER_IR2 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_DRIVER_WIDGET 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_MCP9808 1
|
||||
#define ENABLE_DRIVER_KP18058 1
|
||||
#define ENABLE_DRIVER_ADCSMOOTHER 1
|
||||
#define ENABLE_DRIVER_SGP 1
|
||||
#define ENABLE_DRIVER_SHIFTREGISTER 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_OBK_BERRY 1
|
||||
|
||||
#elif PLATFORM_BL602
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
// I have enabled drivers on BL602
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_FREEZE 0
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define OBK_OTA_EXTENSION ".bin.xz.ota"
|
||||
//#define ENABLE_I2C 1
|
||||
|
||||
|
||||
#elif PLATFORM_BEKEN
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0942SPI 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
//#define ENABLE_DRIVER_BMP280 1
|
||||
//#define ENABLE_DRIVER_PT6523 1
|
||||
//#define ENABLE_DRIVER_MAX6675 1
|
||||
//#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
//#define ENABLE_DRIVER_HT16K33 1
|
||||
//#define ENABLE_DRIVER_MAX72XX 1
|
||||
//#define ENABLE_DRIVER_ADCBUTTON 1
|
||||
#define ENABLE_I2C 1
|
||||
//#define ENABLE_TEST_COMMANDS 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_BRIDGE 1
|
||||
#define ENABLE_DRIVER_HTTPBUTTONS 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
//#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#if PLATFORM_BK7231N && !PLATFORM_BEKEN_NEW
|
||||
//#define ENABLE_DRIVER_PWM_GROUP 1
|
||||
#define ENABLE_DRIVER_SM16703P 1
|
||||
#define ENABLE_DRIVER_PIXELANIM 1
|
||||
#define ENABLE_DRIVER_SM15155E 1
|
||||
#endif
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_TMGN 0
|
||||
#define ENABLE_DRIVER_DRAWERS 0
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
//#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_IR 1
|
||||
//#define ENABLE_DRIVER_IR2 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_KP18058 1
|
||||
#define ENABLE_DRIVER_ADCSMOOTHER 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
//#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define OBK_OTA_EXTENSION ".rbl"
|
||||
#if PLATFORM_BEKEN_NEW
|
||||
#define NEW_TCP_SERVER 1
|
||||
#endif
|
||||
#define ENABLE_OBK_BERRY 1
|
||||
|
||||
#elif PLATFORM_LN882H
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
//#define OBK_DISABLE_ALL_DRIVERS 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_TEST_COMMANDS 0
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
//#define ENABLE_DRIVER_TMGN 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define OBK_OTA_EXTENSION ".bin"
|
||||
#define OBK_OTA_NAME_EXTENSION "_OTA"
|
||||
|
||||
#elif PLATFORM_ESPIDF
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#elif PLATFORM_TR6260
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#elif PLATFORM_RTL87X0C
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
#elif PLATFORM_RTL8710B || PLATFORM_RTL8710A || PLATFORM_RTL8720D
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_UART_TCP 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
|
||||
#elif PLATFORM_ECR6600
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#else
|
||||
|
||||
//#error "Platform not defined"
|
||||
#warning "Platform not defined"
|
||||
|
||||
#endif
|
||||
|
||||
// if Tasmota DGR driver is enabled,
|
||||
// then also enable HTTP config page for that
|
||||
#if ENABLE_TASMOTADEVICEGROUPS
|
||||
#define ENABLE_HTTP_DGR 1
|
||||
#endif
|
||||
|
||||
// if power metering chip is enabled, also enable backend for that
|
||||
#if ENABLE_DRIVER_BL0937 || ENABLE_DRIVER_BL0942 || ENABLE_DRIVER_BL0942SPI || ENABLE_DRIVER_CSE7766
|
||||
#define ENABLE_BL_SHARED 1
|
||||
//allow use two BL0942 on two ports +940 bytes
|
||||
//#define ENABLE_BL_TWIN 1
|
||||
//allow moving average energy calculation +180 bytes
|
||||
//#define ENABLE_BL_MOVINGAVG 1
|
||||
#endif
|
||||
|
||||
// closing OBK_CONFIG_H
|
||||
#endif
|
||||
|
||||
420
src/configs/obk_config_powerMetering.h
Normal file
420
src/configs/obk_config_powerMetering.h
Normal file
@ -0,0 +1,420 @@
|
||||
//////////////////////////////////////////////////////
|
||||
// specify which parts of the app we wish to be active
|
||||
//
|
||||
#ifndef OBK_CONFIG_H
|
||||
#define OBK_CONFIG_H
|
||||
|
||||
// Starts with all driver flags undefined
|
||||
|
||||
|
||||
// NOTE:
|
||||
// Defines for HTTP/HTMP (UI) pages: ENABLE_HTTP_*
|
||||
// Defines for drivers from drv_main.c: ENABLE_DRIVER_*
|
||||
// Other defines: ENABLE_* , for example: ENABLE_LED_BASIC
|
||||
|
||||
#define ENABLE_HTTP_MQTT 1
|
||||
#define ENABLE_HTTP_IP 1
|
||||
#define ENABLE_HTTP_WEBAPP 1
|
||||
#define ENABLE_HTTP_NAMES 1
|
||||
#define ENABLE_HTTP_MAC 1
|
||||
#define ENABLE_HTTP_FLAGS 1
|
||||
#define ENABLE_HTTP_STARTUP 1
|
||||
#define ENABLE_HTTP_PING 1
|
||||
#define ENABLE_LED_BASIC 1
|
||||
|
||||
#if PLATFORM_XR809
|
||||
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define OBK_DISABLE_ALL_DRIVERS 1
|
||||
|
||||
#elif PLATFORM_W600
|
||||
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_BMP280 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
#elif PLATFORM_W800
|
||||
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_DRIVER_SHT3X 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_DRIVER_BMP280 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
|
||||
#elif WINDOWS
|
||||
|
||||
#if LINUX
|
||||
|
||||
#else
|
||||
|
||||
#define ENABLE_SDL_WINDOW 1
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#define ENABLE_DRIVER_PIR 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0942SPI 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_TESTPOWER 1
|
||||
#define ENABLE_DRIVER_HT16K33 1
|
||||
#define ENABLE_DRIVER_MAX72XX 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TEST_COMMANDS 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_TEST_DRIVERS 1
|
||||
#define ENABLE_DRIVER_BRIDGE 1
|
||||
#define ENABLE_DRIVER_HTTPBUTTONS 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_PT6523 1
|
||||
#define ENABLE_DRIVER_MAX6675 1
|
||||
#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_SM16703P 1
|
||||
#define ENABLE_DRIVER_PIXELANIM 1
|
||||
#define ENABLE_DRIVER_TMGN 1
|
||||
#define ENABLE_DRIVER_DRAWERS 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_ADCBUTTON 1
|
||||
#define ENABLE_DRIVER_SM15155E 1
|
||||
//#define ENABLE_DRIVER_IR 1
|
||||
//#define ENABLE_DRIVER_IR2 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_DRIVER_WIDGET 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_MCP9808 1
|
||||
#define ENABLE_DRIVER_KP18058 1
|
||||
#define ENABLE_DRIVER_ADCSMOOTHER 1
|
||||
#define ENABLE_DRIVER_SGP 1
|
||||
#define ENABLE_DRIVER_SHIFTREGISTER 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_OBK_BERRY 1
|
||||
|
||||
#elif PLATFORM_BL602
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
// I have enabled drivers on BL602
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_FREEZE 0
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define OBK_OTA_EXTENSION ".bin.xz.ota"
|
||||
//#define ENABLE_I2C 1
|
||||
|
||||
|
||||
#elif PLATFORM_BEKEN
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
//#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0942SPI 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
//#define ENABLE_DRIVER_BMP280 1
|
||||
//#define ENABLE_DRIVER_PT6523 1
|
||||
//#define ENABLE_DRIVER_MAX6675 1
|
||||
//#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
//#define ENABLE_DRIVER_TUYAMCU 1
|
||||
//#define ENABLE_DRIVER_HT16K33 1
|
||||
//#define ENABLE_DRIVER_MAX72XX 1
|
||||
//#define ENABLE_DRIVER_ADCBUTTON 1
|
||||
//#define ENABLE_I2C 1
|
||||
//#define ENABLE_TEST_COMMANDS 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_BRIDGE 1
|
||||
#define ENABLE_DRIVER_HTTPBUTTONS 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
//#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
//#define ENABLE_DRIVER_BATTERY 1
|
||||
#if PLATFORM_BK7231N && !PLATFORM_BEKEN_NEW
|
||||
//#define ENABLE_DRIVER_PWM_GROUP 1
|
||||
//#define ENABLE_DRIVER_SM16703P 1
|
||||
//#define ENABLE_DRIVER_PIXELANIM 1
|
||||
//#define ENABLE_DRIVER_SM15155E 1
|
||||
#endif
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
//#define ENABLE_DRIVER_DHT 1
|
||||
//#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_TMGN 0
|
||||
#define ENABLE_DRIVER_DRAWERS 0
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
//#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
//#define ENABLE_DRIVER_IR 1
|
||||
//#define ENABLE_DRIVER_IR2 1
|
||||
//#define ENABLE_DRIVER_DS1820 1
|
||||
//#define ENABLE_DRIVER_CHT83XX 1
|
||||
//#define ENABLE_DRIVER_KP18058 1
|
||||
//#define ENABLE_DRIVER_ADCSMOOTHER 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
//#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define OBK_OTA_EXTENSION ".rbl"
|
||||
#if PLATFORM_BEKEN_NEW
|
||||
#define NEW_TCP_SERVER 1
|
||||
#endif
|
||||
#define ENABLE_OBK_BERRY 1
|
||||
|
||||
#elif PLATFORM_LN882H
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
//#define OBK_DISABLE_ALL_DRIVERS 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_TEST_COMMANDS 0
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
//#define ENABLE_DRIVER_TMGN 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define OBK_OTA_EXTENSION ".bin"
|
||||
#define OBK_OTA_NAME_EXTENSION "_OTA"
|
||||
|
||||
#elif PLATFORM_ESPIDF
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#elif PLATFORM_TR6260
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#elif PLATFORM_RTL87X0C
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
#elif PLATFORM_RTL8710B || PLATFORM_RTL8710A || PLATFORM_RTL8720D
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_UART_TCP 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
|
||||
#elif PLATFORM_ECR6600
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#else
|
||||
|
||||
//#error "Platform not defined"
|
||||
#warning "Platform not defined"
|
||||
|
||||
#endif
|
||||
|
||||
// if Tasmota DGR driver is enabled,
|
||||
// then also enable HTTP config page for that
|
||||
#if ENABLE_TASMOTADEVICEGROUPS
|
||||
#define ENABLE_HTTP_DGR 1
|
||||
#endif
|
||||
|
||||
// if power metering chip is enabled, also enable backend for that
|
||||
#if ENABLE_DRIVER_BL0937 || ENABLE_DRIVER_BL0942 || ENABLE_DRIVER_BL0942SPI || ENABLE_DRIVER_CSE7766
|
||||
#define ENABLE_BL_SHARED 1
|
||||
//allow use two BL0942 on two ports +940 bytes
|
||||
//#define ENABLE_BL_TWIN 1
|
||||
//allow moving average energy calculation +180 bytes
|
||||
//#define ENABLE_BL_MOVINGAVG 1
|
||||
#endif
|
||||
|
||||
// closing OBK_CONFIG_H
|
||||
#endif
|
||||
|
||||
420
src/configs/obk_config_tuyaMCU.h
Normal file
420
src/configs/obk_config_tuyaMCU.h
Normal file
@ -0,0 +1,420 @@
|
||||
//////////////////////////////////////////////////////
|
||||
// specify which parts of the app we wish to be active
|
||||
//
|
||||
#ifndef OBK_CONFIG_H
|
||||
#define OBK_CONFIG_H
|
||||
|
||||
// Starts with all driver flags undefined
|
||||
|
||||
|
||||
// NOTE:
|
||||
// Defines for HTTP/HTMP (UI) pages: ENABLE_HTTP_*
|
||||
// Defines for drivers from drv_main.c: ENABLE_DRIVER_*
|
||||
// Other defines: ENABLE_* , for example: ENABLE_LED_BASIC
|
||||
|
||||
#define ENABLE_HTTP_MQTT 1
|
||||
#define ENABLE_HTTP_IP 1
|
||||
#define ENABLE_HTTP_WEBAPP 1
|
||||
#define ENABLE_HTTP_NAMES 1
|
||||
#define ENABLE_HTTP_MAC 1
|
||||
#define ENABLE_HTTP_FLAGS 1
|
||||
#define ENABLE_HTTP_STARTUP 1
|
||||
#define ENABLE_HTTP_PING 1
|
||||
#define ENABLE_LED_BASIC 1
|
||||
|
||||
#if PLATFORM_XR809
|
||||
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define OBK_DISABLE_ALL_DRIVERS 1
|
||||
|
||||
#elif PLATFORM_W600
|
||||
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_BMP280 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
#elif PLATFORM_W800
|
||||
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_DRIVER_SHT3X 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_DRIVER_BMP280 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
|
||||
#elif WINDOWS
|
||||
|
||||
#if LINUX
|
||||
|
||||
#else
|
||||
|
||||
#define ENABLE_SDL_WINDOW 1
|
||||
|
||||
#endif
|
||||
|
||||
|
||||
#define ENABLE_DRIVER_PIR 1
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0942SPI 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_TESTPOWER 1
|
||||
#define ENABLE_DRIVER_HT16K33 1
|
||||
#define ENABLE_DRIVER_MAX72XX 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TEST_COMMANDS 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_TEST_DRIVERS 1
|
||||
#define ENABLE_DRIVER_BRIDGE 1
|
||||
#define ENABLE_DRIVER_HTTPBUTTONS 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_PT6523 1
|
||||
#define ENABLE_DRIVER_MAX6675 1
|
||||
#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_SM16703P 1
|
||||
#define ENABLE_DRIVER_PIXELANIM 1
|
||||
#define ENABLE_DRIVER_TMGN 1
|
||||
#define ENABLE_DRIVER_DRAWERS 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_ADCBUTTON 1
|
||||
#define ENABLE_DRIVER_SM15155E 1
|
||||
//#define ENABLE_DRIVER_IR 1
|
||||
//#define ENABLE_DRIVER_IR2 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_DRIVER_WIDGET 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define ENABLE_DRIVER_MCP9808 1
|
||||
#define ENABLE_DRIVER_KP18058 1
|
||||
#define ENABLE_DRIVER_ADCSMOOTHER 1
|
||||
#define ENABLE_DRIVER_SGP 1
|
||||
#define ENABLE_DRIVER_SHIFTREGISTER 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_OBK_BERRY 1
|
||||
|
||||
#elif PLATFORM_BL602
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
// I have enabled drivers on BL602
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_FREEZE 0
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define OBK_OTA_EXTENSION ".bin.xz.ota"
|
||||
//#define ENABLE_I2C 1
|
||||
|
||||
|
||||
#elif PLATFORM_BEKEN
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_NTP_SUNRISE_SUNSET 1
|
||||
//#define ENABLE_DRIVER_LED 1
|
||||
//#define ENABLE_DRIVER_BL0937 1
|
||||
//#define ENABLE_DRIVER_BL0942 1
|
||||
//#define ENABLE_DRIVER_BL0942SPI 1
|
||||
//#define ENABLE_DRIVER_CSE7766 1
|
||||
//#define ENABLE_DRIVER_BMP280 1
|
||||
//#define ENABLE_DRIVER_PT6523 1
|
||||
//#define ENABLE_DRIVER_MAX6675 1
|
||||
//#define ENABLE_DRIVER_TEXTSCROLLER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
//#define ENABLE_DRIVER_HT16K33 1
|
||||
//#define ENABLE_DRIVER_MAX72XX 1
|
||||
//#define ENABLE_DRIVER_ADCBUTTON 1
|
||||
//#define ENABLE_I2C 1
|
||||
//#define ENABLE_TEST_COMMANDS 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
//#define ENABLE_DRIVER_BRIDGE 1
|
||||
#define ENABLE_DRIVER_HTTPBUTTONS 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
//#define ENABLE_DRIVER_CHARGINGLIMIT 1
|
||||
//#define ENABLE_DRIVER_BATTERY 1
|
||||
#if PLATFORM_BK7231N && !PLATFORM_BEKEN_NEW
|
||||
//#define ENABLE_DRIVER_PWM_GROUP 1
|
||||
//#define ENABLE_DRIVER_SM16703P 1
|
||||
//#define ENABLE_DRIVER_PIXELANIM 1
|
||||
//#define ENABLE_DRIVER_SM15155E 1
|
||||
#endif
|
||||
// parse things like $CH1 or $hour etc
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
//#define ENABLE_DRIVER_DHT 1
|
||||
//#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_TMGN 0
|
||||
#define ENABLE_DRIVER_DRAWERS 0
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
//#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
//#define ENABLE_DRIVER_IR 1
|
||||
//#define ENABLE_DRIVER_IR2 1
|
||||
//#define ENABLE_DRIVER_DS1820 1
|
||||
//#define ENABLE_DRIVER_CHT83XX 1
|
||||
//#define ENABLE_DRIVER_KP18058 1
|
||||
//#define ENABLE_DRIVER_ADCSMOOTHER 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
//#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
#define OBK_OTA_EXTENSION ".rbl"
|
||||
#if PLATFORM_BEKEN_NEW
|
||||
#define NEW_TCP_SERVER 1
|
||||
#endif
|
||||
#define ENABLE_OBK_BERRY 1
|
||||
|
||||
#elif PLATFORM_LN882H
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
//#define OBK_DISABLE_ALL_DRIVERS 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_TEST_COMMANDS 0
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_OPENWEATHERMAP 1
|
||||
//#define ENABLE_DRIVER_TMGN 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define OBK_OTA_EXTENSION ".bin"
|
||||
#define OBK_OTA_NAME_EXTENSION "_OTA"
|
||||
|
||||
#elif PLATFORM_ESPIDF
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_NTP 1
|
||||
//#define ENABLE_NTP_DST 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BATTERY 1
|
||||
#define ENABLE_DRIVER_CHARTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_DRIVER_HUE 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_DDP 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#elif PLATFORM_TR6260
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#elif PLATFORM_RTL87X0C
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
|
||||
#elif PLATFORM_RTL8710B || PLATFORM_RTL8710A || PLATFORM_RTL8720D
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define NO_CHIP_TEMPERATURE 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_CHT83XX 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
#define ENABLE_DRIVER_CSE7766 1
|
||||
#define ENABLE_DRIVER_UART_TCP 1
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
|
||||
#elif PLATFORM_ECR6600
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_MQTT 1
|
||||
#define ENABLE_LITTLEFS 1
|
||||
#define NEW_TCP_SERVER 1
|
||||
#define ENABLE_EXPAND_CONSTANT 1
|
||||
#define ENABLE_I2C 1
|
||||
#define ENABLE_DRIVER_AHT2X 1
|
||||
#define ENABLE_DRIVER_BMPI2C 1
|
||||
#define ENABLE_DRIVER_DS1820 1
|
||||
#define ENABLE_DRIVER_DHT 1
|
||||
#define ENABLE_DRIVER_LED 1
|
||||
#define ENABLE_DRIVER_WEMO 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_OBK_SCRIPTING 1
|
||||
#define ENABLE_ADVANCED_CHANNELTYPES_DISCOVERY 1
|
||||
#define ENABLE_DRIVER_SSDP 1
|
||||
#define ENABLE_TASMOTA_JSON 1
|
||||
#define ENABLE_TASMOTADEVICEGROUPS 1
|
||||
#define ENABLE_NTP 1
|
||||
#define ENABLE_CALENDAR_EVENTS 1
|
||||
#define ENABLE_DRIVER_TUYAMCU 1
|
||||
#define ENABLE_DRIVER_BL0942 1
|
||||
#define ENABLE_DRIVER_BL0937 1
|
||||
|
||||
#define OBK_OTA_EXTENSION ".img"
|
||||
|
||||
#else
|
||||
|
||||
//#error "Platform not defined"
|
||||
#warning "Platform not defined"
|
||||
|
||||
#endif
|
||||
|
||||
// if Tasmota DGR driver is enabled,
|
||||
// then also enable HTTP config page for that
|
||||
#if ENABLE_TASMOTADEVICEGROUPS
|
||||
#define ENABLE_HTTP_DGR 1
|
||||
#endif
|
||||
|
||||
// if power metering chip is enabled, also enable backend for that
|
||||
#if ENABLE_DRIVER_BL0937 || ENABLE_DRIVER_BL0942 || ENABLE_DRIVER_BL0942SPI || ENABLE_DRIVER_CSE7766
|
||||
#define ENABLE_BL_SHARED 1
|
||||
//allow use two BL0942 on two ports +940 bytes
|
||||
//#define ENABLE_BL_TWIN 1
|
||||
//allow moving average energy calculation +180 bytes
|
||||
//#define ENABLE_BL_MOVINGAVG 1
|
||||
#endif
|
||||
|
||||
// closing OBK_CONFIG_H
|
||||
#endif
|
||||
|
||||
@ -168,7 +168,6 @@
|
||||
|
||||
#elif PLATFORM_BEKEN
|
||||
|
||||
|
||||
#define ENABLE_HA_DISCOVERY 1
|
||||
#define ENABLE_SEND_POSTANDGET 1
|
||||
#define ENABLE_MQTT 1
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user