Add SHELLY PLUS 1 board with support of relay, switch, BT gateway (#1349)
So that you know, the overtemperature protection is not implemented in the firmware.
This commit is contained in:
1 parent
8a767cf4b8
commit
31ffdf1e2b
9 files changed
+65
-19
No files matched your search
@@ -61,6 +61,7 @@ extra_configs =
|
||||
;default_envs = tinypico-ble
|
||||
;default_envs = ttgo-lora32-v1-868
|
||||
;default_envs = ttgo-lora32-v1-915
|
||||
;default_envs = shelly-plus1
|
||||
;default_envs = ttgo-t-beam
|
||||
;default_envs = heltec-wifi-lora-32-868
|
||||
;default_envs = heltec-wifi-lora-32-915
|
||||
@@ -159,6 +160,7 @@ monitor_speed = 115200
|
||||
esp8266_platform = espressif8266@3.2.0
|
||||
esp32_platform = espressif32@3.5.0
|
||||
esp32_c3_s3_platform = espressif32@5.2.0
|
||||
esp32_solo_platform = https://github.com/tasmota/platform-espressif32/releases/download/v.2.0.5/platform-espressif32-v.2.0.5.zip
|
||||
atmelavr_platform = atmelavr@3.3.0
|
||||
|
||||
[com-esp]
|
||||
@@ -1020,6 +1022,37 @@ build_flags =
|
||||
'-DTimeLedON=0.1'
|
||||
'-DLED_SEND_RECEIVE_ON=1'
|
||||
|
||||
[env:shelly-plus1]
|
||||
platform = ${com.esp32_solo_platform}
|
||||
board = esp32-solo1
|
||||
board_build.partitions = min_spiffs.csv
|
||||
lib_deps =
|
||||
${com-esp.lib_deps}
|
||||
${libraries.ble}
|
||||
${libraries.wifimanager32}
|
||||
${libraries.decoder}
|
||||
build_flags =
|
||||
${env.build_flags}
|
||||
${com-esp.build_flags}
|
||||
'-DZgatewayBT="BT"'
|
||||
'-DTimeBtwRead=100'
|
||||
'-DScan_duration=3000'
|
||||
'-DTRIGGER_GPIO=25'
|
||||
'-DZactuatorONOFF="ONOFF"'
|
||||
'-DACTUATOR_ON=1'
|
||||
'-DACTUATOR_OFF=0'
|
||||
'-ACTUATOR_TRIGGER=true'
|
||||
'-DZsensorGPIOInput="GPIOInput"'
|
||||
'-DINPUT_GPIO=4'
|
||||
'-DGPIO_INPUT_TYPE=INPUT'
|
||||
'-DACTUATOR_ONOFF_GPIO=26'
|
||||
'-DZsensorADC="ADC"'
|
||||
'-DADC_GPIO=32'
|
||||
'-DUSE_MAC_AS_GATEWAY_NAME'
|
||||
'-DFRAMEWORK_ARDUINO_SOLO1'
|
||||
'-DGATEWAY_MANUFACTURER="Shelly"'
|
||||
'-DGATEWAY_MODEL="SPLUS1"'
|
||||
|
||||
[env:nodemcuv2-all-test]
|
||||
platform = ${com.esp8266_platform}
|
||||
board = nodemcuv2
|
||||
@@ -1324,6 +1357,7 @@ build_flags =
|
||||
'-DACTUATOR_ON=0'
|
||||
'-DACTUATOR_ONOFF_DEFAULT=ACTUATOR_ON'
|
||||
'-DACTUATOR_BUTTON_TRIGGER_LEVEL=0'
|
||||
'-ACTUATOR_TRIGGER=true'
|
||||
'-DGateway_Name="OpenMQTTGateway_SONOFF_RELAY"'
|
||||
board_build.flash_mode = dout
|
||||
|
||||
@@ -1344,6 +1378,7 @@ build_flags =
|
||||
'-DACTUATOR_ON=0'
|
||||
'-DACTUATOR_ONOFF_DEFAULT=ACTUATOR_ON'
|
||||
'-DACTUATOR_BUTTON_TRIGGER_LEVEL=0'
|
||||
'-ACTUATOR_TRIGGER=true'
|
||||
'-DRF_RECEIVER_GPIO=4'
|
||||
'-DZgatewayRF="RF"'
|
||||
'-DGateway_Name="OpenMQTTGateway_SONOFF_BASIC_RFR3"'
|
||||
|
||||
Reference in new issue
Block a user