From 2753cce7b2208511a4af07977ea25847ecbc5f33 Mon Sep 17 00:00:00 2001 From: root Date: Thu, 28 Nov 2024 20:57:17 +0100 Subject: [PATCH] small fixes --- .github/workflows/build.yaml | 1 + Makefile | 8 ++++++-- mos.yml | 10 +++------- 3 files changed, 10 insertions(+), 9 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index d7ff2605..c90810a9 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,6 +14,7 @@ jobs: - Shelly1L - Shelly1PM - Shelly2 + - Shelly2PMGen3 - Shelly25 - ShellyColorBulb - ShellyDuo diff --git a/Makefile b/Makefile index bfd8a110..d9a82553 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,7 @@ MAKEFLAGS += --warn-undefined-variables --no-builtin-rules .PHONY: build check-format format release upload \ - Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyUDuo ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3 + Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyUDuo ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3 Shelly2PMGen3 .SUFFIXES: MOS ?= mos @@ -27,7 +27,7 @@ ifneq "$(VERBOSE)$(V)" "00" MOS_BUILD_FLAGS_FINAL += --verbose endif -build: Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3 +build: Shelly1 Shelly1L Shelly1PM Shelly25 Shelly2 ShellyColorBulb ShellyDuo ShellyI3 ShellyPlug ShellyPlugS ShellyPlusPlugS ShellyPlus1 ShellyPlus1PM ShellyPlus2PM ShellyPlusI4 ShellyRGBW2 ShellyVintage ShellyU ShellyU25 ShellyURGBW2 ShellyUNI ShellyPlus1Mini ShellyPlusRGBWPM ShellyMini1Gen3 ShellyMini1PMGen3 Shelly2PMGen3 release: $(MAKE) build CLEAN=1 RELEASE=1 @@ -96,6 +96,10 @@ ShellyPlus1Mini: PLATFORM=esp32c3 ShellyPlus1Mini: build-ShellyPlus1Mini @true +Shelly2PMGen3: PLATFORM=esp32c3 +Shelly2PMGen3: build-Shelly2PMGen3 + @true + ShellyMini1Gen3: PLATFORM=esp32c3 ShellyMini1Gen3: build-ShellyMini1Gen3 @true diff --git a/mos.yml b/mos.yml index e997f1e4..7d99540f 100644 --- a/mos.yml +++ b/mos.yml @@ -736,7 +736,7 @@ conds: - when: build_vars.MODEL == "Shelly2PMGen3" apply: - name: 2PMG3 + name: S2PMG3 sources: - src/DS18XXX - src/DHT @@ -770,18 +770,14 @@ conds: BTN_GPIO: 19 BTN_DOWN: 0 PRODUCT_HW_REV: "??" - STOCK_FW_MODEL: 2PMG3 + STOCK_FW_MODEL: S2PMG3 MAX_NUM_HAP_SESSIONS: 16 RELAY1_GPIO: 5 RELAY2_GPIO: 3 SWITCH1_GPIO: 18 SWITCH2_GPIO: 10 ADC_GPIO: 1 - cdefs: - PRODUCT_HW_REV: "0.1.9" - STOCK_FW_MODEL: Plus2PMG3 - MAX_NUM_HAP_SESSIONS: 16 - SHELLY_HAVE_PM: 1 + SDA_GPIO: 6 config_schema: - ["device.id", "Shelly2PMG3-??????"] - ["shelly.name", "Shelly2PMG3-??????"]