Skip to content

Read the MQTT update method from "t" in setconfig - #1326

Merged
gskjold merged 1 commit into
mainfrom
fix/setconfig-state-update-key
Dec 4, 2026
Merged

gskjold merged 1 commit into
mainfrom
fix/setconfig-state-update-key

Conversation

@gskjold

@gskjold gskjold commented Nov 23, 2026

Copy link
Copy Markdown
Member

Why

setconfig over MQTT checks whether q.t (the update method) is present, but then reads q.s. That key holds the SSL object, so it converts to false. As a result, sending {"action":"setconfig","config":{"q":{"t":1}}} to switch to interval updates leaves the device on real time instead.

getconfig and /configuration.json emit the update method as q.t (AmsJsonGenerator::generateConfigurationJson).

Changes

  • Read q.t instead of q.s.

Verification

  • pio run for esp8266dev, esp32dev and esp32s2dev.
  • Not tested against a broker.

🤖 Generated with Claude Code

setconfig checked for "q.t" (the update method, as getconfig and
/configuration.json emit it) but read "q.s", which is the SSL object. Setting
the update method to interval over MQTT therefore switched it to real time.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown

🔧 PR Build Artifacts

Version: 578840c

All environments built successfully. Download the zip files:

Artifacts expire after 7 days. View workflow run

@gskjold gskjold added this to the v2.6.1 milestone Nov 26, 2026
@gskjold
gskjold merged commit 68ebb3a into main Dec 4, 2026
8 checks passed
@gskjold
gskjold deleted the fix/setconfig-state-update-key branch December 4, 2026 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant