Commit Graph

63 Commits

Author SHA1 Message Date
stefanbode ccd76b26ed
Re-enable shutter report on teleperiod (#22586)
* Reactivate shutter report on teleperiod

* Reactivate shutter report on teleperiod
2024-12-04 11:43:51 +01:00
Theo Arends 038e62b72c Small shutter refactors 2024-11-29 17:00:31 +01:00
Theo Arends 043d80809b Fix shutter slider user control 2024-11-11 17:09:07 +01:00
Theo Arends fd7554d96e Reduce minimal by 1k 2024-11-10 16:28:25 +01:00
Theo Arends 7e3f093dc9 Change GUI ajax updating buttons/sliders/shutters 2024-11-10 11:46:52 +01:00
Theo Arends a836e841ad Re-enable shuttershow regression from last PR 2024-11-08 23:53:29 +01:00
Theo Arends c2091d7082 Fix FUNC_COMMAND linked list command buffer corruption by shutter driver 2024-11-08 23:26:46 +01:00
stefanbode fd37801d53
Optimized behavior to publish shutter data with sensor request (#22353)
* avoid shutter sensor data published ever

* avoid shutter data report on sensor trigger
2024-10-24 10:06:04 +02:00
stefanbode 05e59b048e
Fix remaining issues on shutterinvert (#22120)
found another place where the invert was not reported correctly
2024-09-10 14:48:51 +02:00
stefanbode 744e50acf7
Fix missing HOLD on shutterbutton (#22108)
#21986
2024-09-08 16:50:37 +02:00
Theo Arends 4f62a0deab Refactor to TimeReacged() 2024-08-18 12:46:23 +02:00
Theo Arends c0eb28dae9 Harden shutter timeouts 2024-08-16 11:53:58 +02:00
stefanbode 6d2647fd5f
fix potential overflow on uptime 2nd try (#21966)
* fix potential overflow

* fix potential overflow

* fix overflow on millis()

* fix overflow on millis()

* Update xdrv_27_shutter.ino

---------

Co-authored-by: Theo Arends <11044339+arendst@users.noreply.github.com>
2024-08-15 14:28:10 +02:00
stefanbode 851f11dcdd
fix potential overflow on uptime (#21965)
* fix potential overflow

* fix potential overflow

* fix potential overflow

* fix potential overflow
2024-08-15 10:08:54 +02:00
stefanbode d18925897a
MQTT fix on inverted shutter (#21663)
* MQTT fix on inverted shutter

* MQTT fix on inverted shutter
2024-06-21 16:35:05 +02:00
Norbert Richter 9026b95f45
Prevent shutter MQTT broadcast with activated ShutterLock (#20827) 2024-02-29 13:16:33 +01:00
stefanbode ae01d4ccd5
Support for 3 pulse relay shutters OPEN/CLOSE/STOP (#20758)
* new option on dedicated STOP relay.

* added new stoprelay shutter

* fix

* new option stoprelay

* fix
2024-02-23 22:54:39 +01:00
stefanbode c7894181b7
fix issue on inverted shutters with commands comming with shutterposition (#20752)
* fix INVERTED bug

fix shutterposition xxx commands do not work on inverted shutter

* fix INVERTED bug

* fix INVERTED bug

shutterposition UP/DOWN/... commands did not work as expected on inverted shutter
2024-02-18 12:36:03 +01:00
stefanbode 8223777e4f
Improve init behavior (#20548)
Ensure filesystem init is executed after so80 1. The shutter command will check for proper init and if not done will do it.
2024-01-20 17:29:50 +01:00
stefanbode c705c8f89c
Fixed DIV/0 (#20524) 2024-01-17 10:03:42 +01:00
Theo Arends c15ad066d0 Sync shutter drivers 2024-01-16 16:40:57 +01:00
Theo Arends 21c7edcb50 Add display of active drivers using command ``status 4`` 2023-12-27 22:03:56 +01:00
stefanbode dd9e2a7409
regression of MAX_SHUTTERS for stepper motors (#20019)
maximize on 4 stepper shutters due to limits in number of counter
2023-11-14 17:54:01 +01:00
stefanbode b83516970f
fix #19911 tilt position is not restored with command: shutterposition 0,-45 (#19916)
* fix shutterposition 0,-45 does not keep tilt

allow , on different config settings

* fix shutterposition 0,-45 does not maintain tilt

allow , on different config settings.
2023-11-03 16:01:57 +01:00
stefanbode 2e95f45458
continuous improvement (#19897)
- servo fix on movement during operation. position did not behave as expected if position change before stop
- enhanced minimum change on stepper shutter depending on motordelay
2023-11-01 14:15:52 +01:00
stefanbode 24927f17c9
enhancement servo shutter (#19888)
allow on servo also very small changes of position. need to do similar with steppers later
2023-10-31 20:41:41 +01:00
stefanbode 8540ee37fc
fix on servo and ESp32 (#19878)
servo did not react same on ESP32 than ESP8266. Changed to TASMOTA pwmapply  capabilities
2023-10-30 14:48:32 +01:00
stefanbode d5f506b1e3
reverted back some function and fix frequency storage (#19791)
* optimize disc write delay during shutter movement

changed to dynamic write delay to ensure no disc write on multiple shutter movement with stepper shutters.

* optimize disc write delay

ensure disc write will be postponed until all shutters stopped

* reverted back to simple version

* removed duplicate obsolete compiler options
2023-10-18 23:41:52 +02:00
stefanbode 2daaa367ff
stepper shutter channel fix (#19784) 2023-10-18 11:29:35 +02:00
stefanbode 124fbf8dcb
fix shutterfrequency change on mutiple channels (#19737)
* fix shutterfrequency change on mutiple channels

* LEDC channel management for stepper shutter

LEDC channels dynamically assigned to ensure up to 16 shutters can be defined. Number of simultaneous moving shutters is limited by number of LEDC channels.

* bugfix  >=
2023-10-15 18:40:26 +02:00
stefanbode dade00bf59
Fix shutterfrequency esp32 (#19717) 2023-10-11 17:12:07 +02:00
stefanbode 540acdc638
smaller fixes (#19621)
* position report during moverment

during moving the teleperiod will now report the actual position

* fix error on inverted shutter
2023-09-29 17:46:41 +02:00
stefanbode 955d2d86dd
fix JSON Bug (#19607) 2023-09-27 16:05:32 +02:00
stefanbode 0f6b59f67e
fix #16560 (#19589)
shutter reacted on QUAD press with HOLD event. Fixed
2023-09-25 09:25:45 +02:00
stefanbode 7a75eb7021
Improvement in shuttersetup (#19565)
* Improvement in shuttersetup

- reduce call of energy to 10x a sec.
- stop detection more rigid to avoid wrong messages
- more accurate calculation of duration

* fix energy hickup on autosetup
2023-09-22 08:38:01 +02:00
stefanbode f7775b5194
cosmetic changes only (#19468)
- reorder functions alphabetically
- reformat equations for better reading following guidelines
- adding comment for understanding
2023-09-06 16:52:40 +02:00
stefanbode 3cb63bcb67
Enable multipress events on buttons (#19465) 2023-09-06 09:37:29 +02:00
stefanbode 1ea12583d1
Fix migration error to filesystem settings (#19454) 2023-09-04 21:36:45 +02:00
stefanbode d1e85635e3
fix inverted shutter inconsistencies (#19374)
* inverted shutter fix on overflow

* fix inverted_shutter > 9

fix on inverted shutter at esp32.
fix tilt behavior on inverted shutter

* fix tilt behavior on inverted shutter
2023-08-24 12:39:42 +02:00
stefanbode ca14dc5507
Shutter ESP32 fixes (#19362)
* fix esp32 shutter

* fix shutterinvert+shutterbutton
2023-08-22 09:21:30 +02:00
stefanbode 7927c989c4
fix shutterinvert (#19341)
* fix shutterinvert

* fix shutterinvert
2023-08-18 09:02:17 +02:00
stefanbode 959d105413
Change shutterbutton hold behavior with grouptopic (#19263)
* skip stop on hold if grouptopic

If shutterbutton is defined with a grouptopic send on HOLD, there is no stop on releasing the button. All shutters will move to defined position

* do not stop on hold release if group submitt

If mqtt broadcast is defined on hold then release the hold button will not anymore stop the local shutter. All shutter will move to defined position
2023-08-05 14:51:56 +02:00
stefanbode 6572f0ed39
Fixing SHUTTERINVERT issues (#19243)
* fix wrong inverted shutter

* fix inverted shutter for esp32
2023-08-03 11:55:20 +02:00
Theo Arends 5b6a25a7a0 Fix driver config backup and restore
Fix driver config backup and restore (#18295)
2023-07-12 10:52:58 +02:00
Theo Arends 889e6ea54d Fix driver config restore 2023-07-11 16:12:04 +02:00
Theo Arends f726c904ab Enable ESP32 shutter driver
Enable ESP32 shutter driver (#18295)
2023-07-08 17:21:06 +02:00
stefanbode 156a3551b0
Repair SHUTTER Shelly 2.5 with manual relay change on switches (#18877)
* Repair manual relay change

* Repair manual relay change
2023-06-14 16:14:10 +02:00
stefanbode 0e3b32e848
Readded up/down/open/close commands (#18864)
* Update xdrv_27_shutter.ino

* fix shutterposition with up/down/open/close
2023-06-12 19:09:19 +02:00
stefanbode a76ebaae48
Shutter continuous improvement (#18701)
* Update xdrv_27_esp32_shutter.ino

* Update xdrv_27_shutter.ino

* Update xdrv_01_9_webserver.ino

* Update xdrv_12_discovery.ino

* shutterinvert

removed slider display to driver
fix wrong invert display

* codereduction+refactor slider

removed webui slider into driver
optimized code

* update slide, fix invert shutters

- refactor sliders into driver
- fix percent calculation on iverted shutters

* fix on realpercent if inverted shutter

* fix ShutterPercentToRealPosition

fix on inverted shutter

* added shutter to bootloop reset

* bugfix integration

* bugfix
2023-05-21 12:25:11 +02:00
stefanbode 25e55ae073
#18548 fix shuttersetup (#18586)
- code optimization
- shuttersetup reluctant on relay to energy measure relation
2023-05-06 15:46:29 +02:00