diff --git a/ConfigSettings.h b/ConfigSettings.h index ec70191..7ec90a2 100644 --- a/ConfigSettings.h +++ b/ConfigSettings.h @@ -3,7 +3,7 @@ #ifndef configsettings_h #define configsettings_h -#define FW_VERSION "v1.6.1" +#define FW_VERSION "v1.6.2" enum DeviceStatus { DS_OK = 0, DS_ERROR = 1, diff --git a/SomfyController.ino.esp32.bin b/SomfyController.ino.esp32.bin index cf2fa87..e11a236 100644 Binary files a/SomfyController.ino.esp32.bin and b/SomfyController.ino.esp32.bin differ diff --git a/SomfyController.littlefs.bin b/SomfyController.littlefs.bin index 721982a..2d5e4da 100644 Binary files a/SomfyController.littlefs.bin and b/SomfyController.littlefs.bin differ diff --git a/data/appversion b/data/appversion index 2eda823..308b6fa 100644 --- a/data/appversion +++ b/data/appversion @@ -1 +1 @@ -1.6.1 \ No newline at end of file +1.6.2 \ No newline at end of file diff --git a/data/icons.css b/data/icons.css index cb057bd..2338b90 100644 --- a/data/icons.css +++ b/data/icons.css @@ -690,3 +690,29 @@ i.icss-x { transform: translate(-50%, -50%) rotate(225deg) } +i.icss-awning { + width: 1.1em; + height: .75em; + background-color: transparent; + border-width: 0 0; + margin: .2em 0 .07em; +} + + i.icss-awning:before { + width: 1.1em; + height: .2em; + border-bottom: .1em solid transparent; + box-shadow: inset 0 1em, 0 0em 0 -.1em; + top: -.1em; + left: -.09em; + } + + i.icss-awning:after { + width: calc(100% - 0.1em); + height: var(--shade-position, 0%); + left: -.04em; + top: 0.025em; + border-bottom: solid 0.045em gray; + background-image: repeating-linear-gradient(90deg, var(--shade-color, currentColor), var(--shade-color, currentColor) calc(25% - 4px), black calc(25% - 2px), var(--shade-color, currentColor) calc(25% - 2px)); + background-color: rgba(71, 212, 255, 0); + } diff --git a/data/index.html b/data/index.html index 30be104..3170297 100644 --- a/data/index.html +++ b/data/index.html @@ -3,10 +3,10 @@ - - + + - +
diff --git a/data/index.js b/data/index.js index 064560e..fa66693 100644 --- a/data/index.js +++ b/data/index.js @@ -378,7 +378,7 @@ async function reopenSocket() { await initSockets(); } class General { - appVersion = 'v1.6.1'; + appVersion = 'v1.6.2'; reloadApp = false; async init() { this.setAppVersion(); @@ -1062,8 +1062,11 @@ class Somfy { case 1: divCtl += ' icss-window-blind'; break; + case 3: + divCtl += ' icss-awning'; + break; default: - divCtl += ' icss-window-shade' + divCtl += ' icss-window-shade'; break; } divCtl += `" data-shadeid="${shade.shadeId}" style="--shade-position:${shade.position}%;vertical-align: top;">`; @@ -1493,6 +1496,10 @@ class Somfy { ico.classList.remove('icss-window-shade'); ico.classList.add('icss-window-blind'); break; + case 3: + ico.classList.remove('icss-window-shade'); + ico.classList.add('icss-awning'); + break; } let tilt = ico.parentElement.querySelector('i.icss-window-tilt'); tilt.style.display = shade.tiltType !== 0 ? '' : 'none';