Skip to content

Commit

Permalink
suuport for +1pmmini
Browse files Browse the repository at this point in the history
  • Loading branch information
markirb committed Nov 14, 2024
1 parent 7356a43 commit 05dcd50
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 9 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
- ShellyPlusPlugS
- ShellyPlusRGBWPM
- ShellyPlus1Mini
- ShellyPlus1PMMini
- ShellyMini1Gen3
- ShellyMini1PMGen3
- ShellyRGBW2
Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,10 @@ ShellyPlusI4: PLATFORM=esp32
ShellyPlusI4: build-ShellyPlusI4
@true

ShellyPlus1PMMini: PLATFORM=esp32c3
ShellyPlus1PMMini: build-ShellyPlus1PMMini
@true

ShellyPlus1Mini: PLATFORM=esp32c3
ShellyPlus1Mini: build-ShellyPlus1Mini
@true
Expand Down
19 changes: 10 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@ Reverting to stock firmware is also possible [see here](https://github.com/mongo

### Plus devices

| |[+1]|[+1Mini]|[+1PM]|[+2PM]|+i4 [AC]/[DC]|[+Plug S]
|- |- |- |- |- |- |-
|Switch & Co.<sup>1</sup> |✓ |✓ |✓ |✓ |✗ |✓
|Stateless Input<sup>2</sup> |✓ |✓ |✓ |✓ |✓ |✗
|Sensors<sup>3</sup> |✓ |✗ |✓ |✓ |✓ |✗
|Garage door opener |✓ |✓ |✓ |✓ |✗ |✗
|Roller shutter mode |✗ |✗ |✗ |✓ |✗ |✗
|Power measurement |✗ |✗ |✓ |✓ |✗ |✓
|Temperature/Humidity measurement<sup>4</sup>|✓ |✗ |✓ |✓ |✓ |✗
| |[+1]|[+1Mini]|[+1PMMini]|[+1PM]|[+2PM]|+i4 [AC]/[DC]|[+Plug S]
|- |- |- |- |- |- |- |-
|Switch & Co.<sup>1</sup> |✓ |✓ |✓ |✓ |✓ |✗ |✓
|Stateless Input<sup>2</sup> |✓ |✓ |✓ |✓ |✓ |✓ |✗
|Sensors<sup>3</sup> |✓ |✗ |✗ |✓ |✓ |✓ |✗
|Garage door opener |✓ |✓ |✓ |✓ |✓ |✗ |✗
|Roller shutter mode |✗ |✗ |✗ |✗ |✓ |✗ |✗
|Power measurement |✗ |✗ |- |✓ |✓ |✗ |✓
|Temperature/Humidity measurement<sup>4</sup>|✓ |✗ |✗ |✓ |✓ |✓ |✗

### Light Controllers

Expand Down Expand Up @@ -180,6 +180,7 @@ This firmware is free software and is distributed under [Apache 2.0 license](LIC
[1]: https://www.shelly.cloud/en/products/shop/1xs1
[+1]: https://www.shelly.cloud/en/products/shop/shelly-plus-1
[+1Mini]: https://www.shelly.cloud/en/products/shop/shelly-plus-1-mini
[+1PMMini]: https://www.shelly.cloud/en/products/shop/shelly-plus-1pm-mini
[Mini1G3]: https://www.shelly.cloud/en/products/shop/shelly-1-mini-gen-3
[Mini1PMG3]: https://www.shelly.cloud/en/products/shop/shelly-1-pm-mini-gen3
[+1PM]: https://www.shelly.cloud/en/products/shop/shelly-plus-1-pm-2-pack/shelly-plus-1-pm
Expand Down
39 changes: 39 additions & 0 deletions mos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -695,6 +695,45 @@ conds:
- ["sw4", "sw", {title: "SW4 settings"}]
- ["sw4.name", "Shelly SW4"]

- when: build_vars.MODEL == "ShellyPlus1PMMini"
apply:
name: Plus1PMMini
sources:
- src/ShellyMini1PMGen3
libs:
- location: https://github.com/mongoose-os-libs/mongoose
build_vars:
MGOS_ROOT_FS_SIZE: 0x60000
APP_SLOT_SIZE: 0x190000
ESP_IDF_EXTRA_PARTITION: "aux,0x55,0x00,0x3f0000,48K"
ESP_IDF_EXTRA_PARTITION_2: "shelly,data,0x88,0x3fc000,16K,encrypted"
ESP_IDF_SDKCONFIG_OPTS: >
${build_vars.ESP_IDF_SDKCONFIG_OPTS}
CONFIG_FREERTOS_UNICORE=y
CONFIG_ESPTOOLPY_FLASHMODE_DIO=y
CONFIG_PARTITION_TABLE_CUSTOM_FILENAME=\"../esp32xx/partitions_mgos.csv\"
CONFIG_PARTITION_TABLE_FILENAME=\"../esp32xx/partitions_mgos.csv\"
cdefs:
LED_GPIO: 0
LED_ON: 0
BTN_GPIO: 1
BTN_DOWN: 0
PRODUCT_HW_REV: "0.1.0"
STOCK_FW_MODEL: Plus1PMMini
MAX_NUM_HAP_SESSIONS: 16
config_schema:
- ["device.id", "ShellyPlus1PMMini-??????"]
- ["shelly.name", "ShellyPlus1PMMini-??????"]
- ["wifi.ap.ssid", "ShellyPlus1PMMini-??????"]
- ["sw1", "sw", {title: "SW1 settings"}]
- ["sw1.name", "Shelly SW"]
- ["in1", "in", {title: "Input 1 settings"}]
- ["in1.ssw.name", "Shelly SSW1"]
- ["in1.sensor.name", "Shelly S1"]
- ["gdo1", "gdo", {title: "GDO1 settings"}]
- ["gdo1.name", "Garage Door"]
- ["gdo1.open_sensor_mode", 2]

- when: build_vars.MODEL == "ShellyMini1PMGen3"
apply:
name: Mini1PMG3
Expand Down

0 comments on commit 05dcd50

Please sign in to comment.