Commit Graph
10725 Commits
Author SHA1 Message Date
Cursor AgentandProddy 515eb2a16b fix: run message/sendmail shunting-yard synchronously to avoid main-loop deadlock
command_message() and command_sendmail() handed their value to
WebSchedulerService via raw_value and busy-waited up to 2s for the
scheduler loop (running in a separate task) to compute it. After the
scheduler was moved to run synchronously in the main loop, any caller
running in the main loop (MQTT-triggered commands, scheduler-triggered
commands) deadlocks: the loop that would compute raw_value cannot run
while the caller is blocking inside it. The 2s wait then times out and
system/message fails entirely (sendmail sends the un-computed body).

Compute the value directly with compute() instead, which restores
correct behaviour for all callers.

Co-authored-by: Proddy <proddy@users.noreply.github.com>
2026-06-13 06:59:43 +00:00
Proddy 497d7cf7f3 Merge branch 'emsesp:dev' into commands 2026-06-12 16:41:38 +02:00
Proddy ea5be9508e Merge pull request #3114 from proddy/commands
Commands
2026-06-12 16:41:25 +02:00
proddy f5c15f83b4 fix bug when comparing dev releases 2026-06-12 16:29:35 +02:00
proddy e3bec544be version test 2026-06-12 16:29:26 +02:00
proddy 27eadcb875 add tests for version upgrades 2026-06-12 16:29:17 +02:00
proddy 31de3ffc82 package update 2026-06-12 16:27:39 +02:00
proddy 7664d50d69 one command function, to save on heap 2026-06-10 22:06:46 +02:00
proddy 5357f633d3 package update 2026-06-10 22:06:30 +02:00
proddy 0406ee0529 Scheduler to sync, Commands to async 2026-06-09 23:04:41 +02:00
proddy 423515ec37 remove EMSESP_SCHEDULER_* 2026-06-09 23:00:49 +02:00
proddy 9426ae9df6 fix mDNS restart after a reset 2026-06-09 23:00:32 +02:00
proddy b1944601ef scheduler loop is no longer async 2026-06-09 23:00:13 +02:00
proddy c4cc6a9386 fix missing translations, and order 2026-06-09 22:50:39 +02:00
proddy ad48f0010f package update 2026-06-09 22:50:25 +02:00
proddy d5e3571e17 Scheduler show 'at startup' 2026-06-09 20:30:32 +02:00
proddy cb6e452864 revert WiFi.disconnect 2026-06-09 20:30:12 +02:00
proddy c3ff4422c8 ESPAsyncWebServer @ 3.11.1 2026-06-09 20:29:35 +02:00
proddy 1ce691500f package update 2026-06-09 20:29:23 +02:00
proddy 05b1eaf175 add test 2026-06-09 20:29:07 +02:00
proddy 4f2215b126 button formatting 2026-06-08 22:48:46 +02:00
proddy 2cb7677098 implement migration to new Commands/Scheduler 2026-06-08 22:35:07 +02:00
proddy dc096a9856 load Commands first before Scheduler 2026-06-08 22:34:50 +02:00
proddy 8496a911da remove colors 2026-06-08 22:34:27 +02:00
proddy 4bff05a1c6 have to save before executing 2026-06-08 21:22:59 +02:00
proddy ff90662be1 green execute button 2026-06-08 21:04:19 +02:00
proddy 8fb69826f9 comments 2026-06-08 20:54:43 +02:00
proddy 7d94dc7cf0 update tests 2026-06-08 20:48:22 +02:00
proddy f93b5290ff add comment 2026-06-08 20:48:09 +02:00
proddy 88d7124874 update 2026-06-08 20:47:54 +02:00
proddy 7ee6dcf0e0 call commands can override value 2026-06-08 20:44:21 +02:00
proddy 9370ae69ec cleanup 2026-06-08 20:44:09 +02:00
proddy afee7246c6 prevent STA warning 2026-06-08 20:44:00 +02:00
proddy 2102180c46 add commands to system backup 2026-06-08 20:43:42 +02:00
proddy 064548316e dont show unused json elements 2026-06-08 20:43:27 +02:00
proddy e53aaffd4d add comment 2026-06-08 20:43:11 +02:00
proddy 0d14601385 optimize 2026-06-08 20:43:03 +02:00
proddy 96e3fdc323 use EMSdevice::DeviceType::SYSTEM 2026-06-08 20:42:42 +02:00
proddy fd359ab9ed optional value when calling commands 2026-06-08 20:42:08 +02:00
proddy 192357f4f3 3.9.0-dev.12 2026-06-08 20:41:47 +02:00
proddy 223700a1a8 update 2026-06-08 20:41:39 +02:00
proddy 643744d8d9 formatting 2026-06-08 20:41:31 +02:00
proddy 4085a96145 formatting 2026-06-08 20:41:21 +02:00
proddy ba7ea60af5 typo 2026-06-08 20:41:11 +02:00
proddy ecf416dc0a formatting 2026-06-08 20:41:05 +02:00
proddy 8a45e79071 updates 2026-06-08 10:03:32 +02:00
proddy 5c4dfcb9ae first try 2026-06-07 18:26:35 +02:00
Proddy f4cee54042 Merge pull request #3109 from proddy/core3
Core3 updates #3
2026-06-07 17:14:05 +02:00
Proddy 6e9049c82b Merge branch 'emsesp:core3' into core3 2026-06-07 17:09:02 +02:00
Proddy 4498d853b0 Merge pull request #3113 from MichaelDvP/core3
merge dev changes into Core3
2026-06-07 17:08:35 +02:00