Development build of EMS-ESP v3.10.0-dev.9a
Changes since 3.10.0-dev.8
Added
- boiler and thermostat
errorcodefrom telegram 0xBF (the currently active fault, e.g." --(5141)"/"A11(3221)"), so heat pumps withoutservicecodeshow locking alarms while they are active #3475 - Logavent HRV156/HRV176:
ventbalance(writable volume flow balance for the exhaust fan, 90–110 %),level1pct/level2pct/level4pct(writable level percentages),ventoutrpm/ventinrpmandventoutvoltage/ventinvoltage(fan rpm and 0–10 V control voltage) #3478 - "Support the project" link on the Help page to tip EMS-ESP on Ko-fi, which replaces the PayPal donation link in the README
Fixed
- Rx and Tx telegram queues are locked so the UART task and the main loop no longer race on the same
std::deque, which could crash inshared_ptrteardown when the Rx queue was full (more likely with a virtual RC100H and heavy bus traffic) #3483 - MQTT with TLS left the TCP socket open after a failed TLS handshake, so the client waited until the broker closed it before it could retry and could stay disconnected #3482
lastcodeon heat pumps (0xC6/0xC2/0xC0) only read the first history record and ranked open faults by start time against finished ones by end time, so an active locking fault in a later record (e.g. 5141 after a finished 5140) was missed; the first three records are read and open faults are preferred #3475boiler/lastcodeshowed(32000)for history records not at offset 0, because the fault number was read with an absolute telegram index that failed for the 2nd/3rd record;thermostat/lastcodeon BC400 showed finished faults as- nowbecause that device does not set the 0x80 year bit used on the heat pump #3475- BC400/UI800 heatpump operating mode (
0x0470) no longer drops “Always cooling”. The values areoff/auto/heating/cooling(MyBuderus Idle / Automatic / Always heating / Always cooling; value 0 disables both).summerandwinterstill write asoffandheating#3470 #3230 - after a restart,
summermodecould briefly publishsummerthenwinterwhen the first RC300Monitor (0x02A5) fragment arrived at offset 20 before offset 0.summermodeis now left unpublished until the status byte is known #3471 - heat pump
hpin1opt–hpin4optcould publish wrong digits after a restart (and leave them stuck when0x0486has holes). Options are initialized empty, only'0'/'1'are treated as known, and MQTT is updated only when that input’s bytes are in the fragment. A follow-up also restores publishing of all-zero options (hpin2opt/hpin4opt), which the first fix had skipped #3476
Changed
- Web UI i18n: typesafe-i18n
baseLocaleis English again (was Polish so call sites could pass case indexes for PL). A few English strings use dummy{{…}}plurals for that; the build no longer rewrites generatedi18n-util.tsfrompltoen#695 - on WLW176i/BC400-style heat pumps, locking alarms (e.g. 5141, 6257) clear with
boiler/reset message; H-warnings withboiler/reset hp_error#3475 #2933
Full v3.10.0 changelog so far
[3.10.0]
This release is primarlity a security hardening one with a new UI frontend. Please read the Breaking Changes below carefully before upgrading.
Breaking Changes
A full list of breaking changes can be found in this discussion
- Make a System Backup before upgrading (Settings > Download/Upload). Passwords are stored hashed after the upgrade and older versions can't read them, so going back to 3.8.x or 3.9.x needs this backup. Without it, see Going back to an older version.
- Factory passwords must be changed. After signing in with a factory password, an admin must set a new admin password before the Web UI can be used. If no WiFi network is set yet, a new access point password is needed too. Integrations using API keys keep working in the meantime.
- Every
/apicall needs an API key, also reads, and access tokens are replaced by API keys. Reading values without a token now gets HTTP 401. After the upgrade, create an API key in Security > API Keys for each integration, such as Home Assistant REST sensors, Prometheus, dashboards and scripts, including ones that only read, and send it asAuthorization: Bearer <key>. MQTT isn't affected. Pick "Read" for integrations that only read values, "Read and Write" for ones that change settings or values. The key icon in Manage Users is gone. To read a value in a browser, open the/apiaddress and sign in with your EMS-ESP user when the browser asks; this only reads. Integrations that can't send a key in a header, such as the ioBroker ems-esp adapter (7.0.8 and older), can have it in the address instead: set the EMS-ESP address tohttp://iobroker:emsesp_...@<ip>with a "Read and Write" key. - Web UI sign-ins expire after 30 days, and changing a user's password signs that user out on all browsers.
- Some
/apicalls need a "Read and Write" API key: changing settings (for examplesystem/mqtt/enabled) and reading the definitions of named Commands (/api/commands/...). - "Bypass Access Token authorization on API calls" is removed. Give each integration that called
/apiwithout a token an API key: "Read" to read values and run Commands that guests may run, "Read and Write" to change values, for example to set a temperature. - Guest users have less access. Only admins can open or change the Scheduler, Commands, Custom Entities and Modules, rename devices or change entity customizations. New Commands can't be run by guests until "Guests may run this command" is ticked; Commands from before the upgrade keep guest access. Entries made before the upgrade are kept, and Scheduler entries run with admin rights, so after upgrading check the Scheduler and Commands and delete any entry you didn't create, especially if guests or the API bypass were used.
- The live System Log needs a login, also for tools that read
/es/logdirectly. - Tokens and API keys are only accepted in the
Authorizationheader. A token in the URL (?access_token=...) no longer works on/api,/restor/es/log. SendAuthorization: Bearer <key>instead, for examplecurl -H "Authorization: Bearer emsesp_..." http://ems-esp.local/api/boiler. - Telnet changes. Log in with a Web UI user: admin users get admin rights,
suno longer works over telnet. At most 2 sessions at a time. On new installs telnet is off, turn it on in Application Settings if you use it. - The Super User password is gone. On the serial console,
suasks for the username and password of a Web UI admin user. Thepasswdcommand and the Super User password field in Security settings are removed. - Backups leave out passwords by default. To move settings to a new device, tick "Include passwords and keys" when making the System Backup, and keep that file safe.
- MQTT
infotopic:IPv6 addressis now an array, andIPv4 DNS Serveris replaced by aDNS Serverarray. Update any automations that read these fields. - New installs have no
guestuser. A fresh install or factory reset only createsadmin. Add a view-only user in the setup screen or under Security > Users. Existing users are kept when upgrading. - Web pages on other addresses need CORS to use
/api. A browser request to/apifrom a page on another address (for example a home-made dashboard) is refused with 403, unless CORS is enabled with that page's address as the origin, for examplehttp://homeassistant.local:8123. Home Assistant's integration, Node-RED, scripts andcurlare not affected.*still works but shows a warning. - Opening the Web UI by another name needs that name allowed. The IP address, the hostname and
<hostname>.localalways work. If you open EMS-ESP in a browser by another name, for exampleems-esp.fritz.boxor through a reverse proxy, open it once by its IP address and add the name under Network Settings > Allowed host names. Home Assistant, Node-RED and scripts are not affected. - Only admins can pass their own value to a custom Command. Guests and "Read" API keys can still run guest-allowed Commands, but only with the value stored in the Command. Values sent by non-admins (for example to
system/message) can no longer fetch a{"url":...}; use an admin sign-in or a "Read and Write" API key, or store the URL in the Command or Schedule itself. - Firmware that isn't an official EMS-ESP build asks before it installs. Official releases and development builds are signed by EMS-ESP and install as before. Any other firmware, such as your own or a community build, or a filesystem image (
*littlefs.bin), is stopped when uploaded in the Web UI, installed from a URL or uploaded in the Recovery, with "This is not an official EMS-ESP build"; click "Install anyway" to install it. The Version page then shows "Custom build". Flashing over USB isn't affected. Scripts that upload to/rest/uploadFileget HTTP 412 for such a file and can add?custom=1to install it anyway (scripts/upload.pyandscripts/upload_cli.pydo). - Firmware, user and security changes ask for your password again. Before uploading or installing firmware, switching the firmware partition, restoring a backup, downloading a backup with passwords, a factory reset, changing users or passwords, creating or revoking API keys, or turning on CORS, allowed host names or telnet, the Web UI asks for your password; it isn't asked again for 5 minutes. Scripts that do these with a Web UI sign-in token get HTTP 428 and must first send the password to
POST /rest/confirmPasswordwith{"password":"..."}, or use an API key where one is accepted (API keys and MQTT aren't affected). Firmware can only be installed from a URL of an EMS-ESP release on GitHub (https://github.com/emsesp/EMS-ESP32/releases/...); for other files, upload them instead. - Values outside their range are refused. A write with a number below the entity's minimum or above its maximum (including a custom min/max set in Customizations) is now refused with
out of rangeinstead of being sent to the boiler or thermostat. Check automations that write values. In read-only mode, raw write telegrams (sendcommands) are no longer sent either; only raw read requests are. Turning read-only mode off asks for your password. - Repeated and frequent writes are limited. Writing the same value to the same entity again within a minute is skipped (the caller still gets OK), and more than 10 writes a minute to one entity, or 120 to all entities together, log a warning. Automations that write on every update keep working but send less to the boiler. This write protection is set in Application Settings next to read-only mode: the number of writes a minute, and whether writes over the limit are refused (HTTP 429, an MQTT error response or Modbus "server device busy"). Turning write protection off asks for your password.
- MQTT no longer runs system commands by default, and ignores retained commands. A new MQTT setting, "Commands received over MQTT", chooses between "Off, only read values", "Change values and run Commands" (the default) and "Everything, also system commands". Home Assistant only changes values, so it keeps working. Automations that publish to
system/...topics, for examplesystem/restart,system/sendorsystem/mqtt/enabled, get "system commands over MQTT are turned off" until "Everything" is chosen, which asks for your password. A factory reset (system/format) and erasing the crash dump (system/coredump) are never accepted over MQTT. Commands published with the retain flag are ignored with a warning in the log, because the broker would send them again on every reconnect; publish them without retain.
Added
- boiler and thermostat
errorcodefrom telegram 0xBF (the currently active fault, e.g." --(5141)"/"A11(3221)"), so heat pumps withoutservicecodeshow locking alarms while they are active #3475 - Logavent HRV156/HRV176:
ventbalance(writable volume flow balance for the exhaust fan, 90–110 %),level1pct/level2pct/level4pct(writable level percentages),ventoutrpm/ventinrpmandventoutvoltage/ventinvoltage(fan rpm and 0–10 V control voltage) #3478 - "Support the project" link on the Help page to tip EMS-ESP on Ko-fi, which replaces the PayPal donation link in the README
- firmware rollback: a newly installed firmware is only kept once it has run for 2 minutes or is restarted from EMS-ESP. If it crashes or loses power before then, the device goes back to the previous firmware, or to the Recovery if there is none. Needs the bootloader of 3.10.0, which only a flash over USB installs, a firmware upload keeps the existing bootloader
- after a crash, a summary of the core dump (task, PC and backtrace) is logged at boot and shown as
coredumpin/api/system/info.call system coredumperases it. Admins can download the full dump in Settings > Download/Upload, and the Recovery dashboard shows the summary with a download button. Seedocs/Crash-Dumps.mdfor how to decode it - console on the System Log page: admins can run console commands such as
show valuesfrom the WebUI and see their output - the LED flashes white while the Recovery is running, using the LED GPIO and type from the Application Settings (also when the LED is set to hidden)
- uploading a settings file only changes the settings it contains, so a partial file can be used to change a few settings and keep the rest
- mock server test page
/rest/mockData(e.g. http://localhost:3080/rest/mockData) to switch scenarios at runtime without restarting: the current, stable and dev versions, offline, official or custom build, DEBUG, the installed and online Recovery version, and the board's flash size (4MB, 16MB or 32MB) and PSRAM. It has presets for common cases and can sign in as admin or guest. Values can also be set in the URL, like?flash=4MB&psram=false, and?resetgoes back to the defaults - heat pumps with an EEBUS gateway (e.g. WLW176i/WLW186i):
eebuspowerlimit(writable, 0 to 65535 W, 65535 is no limit, written to the gateway at 0x4B, telegram 0x4D8) andeebuslimitactive, on while the compressor is held back by the limit (telegram 0x4A2) #3416 - RC300/RC310 pool circuit on a MM100:
poolmode(off/on/auto) andpoolflowtemp, both writable (telegram 0x67B) #3420 - EMS devices that EMS-ESP polls and that send nothing for 5 minutes are reported offline: logged, published retained as
online/offlinetoems-esp/status/<device>_<id>(e.g.ems-esp/status/thermostat_10), and shown asonlineandlastSeen(seconds) per device in/api/system/info. In Home Assistant the device's entities become unavailable and each device gets a "status" connectivity sensor - test build flag
EMSESP_OWN_IDENTITY: when another device reads the version (0x02) or name (0x01) from EMS-ESP's bus ID, it answers like a real EMS device instead of with an empty telegram: a fixed productID (EMSESP_OWN_PRODUCT_ID, default 250) with the EMS-ESP version, a serial number made from the MAC address and the name "EMS-ESP". The K30RF reads these from every device on the bus about every 13 hours, and on Bosch heat pumps a full re-sync of the UI800 often followed within minutes, ending in A21/A91 errors and HomeCom dropping out. Off by default #3094 - heating settings backup and restore: Settings > Download/Upload saves the writable heating settings of the EMS devices you pick (for example set temperatures, heating curves and switch times) to a file with your own file name and an optional note. Enums are stored by name and the temperature unit is recorded, so a file still restores after an update. Commands, values not read from the bus yet and entities set to write-disabled in Customizations are left out. Restoring writes nothing when the file is opened: it shows the note and which devices match, lists the values that differ from the device now, lets you untick values, asks for confirmation and then writes them one by one through the API, so read-only mode, write-disabled entities, min/max and the write limits still apply, with a result per value. Devices are matched by type and device ID, a different product or another temperature unit is refused. "All Values" moved to a separate Data Export section, as it can't be uploaded. New
heatingbackupexport type inPOST /rest/action#2707 - MQTT status shows the base topic, since when the connection is up and the reason and time of the last lost connection.
/rest/mqttStatushas newhost,port,base,connected_for,last_disconnect_agoandlast_disconnect_reasonfields - every table in the Web UI with column headers can be sorted by clicking a header (ascending, descending, back to the original order); on phones the headers are buttons above the list
/rest/systemStatushas newnetwork_ip,mqtt_host,mqtt_port,log_errors,log_warnings(since boot),heap_sizeandreset_reasonfields for the Status overview; the last restart reason (for example software restart, crash, watchdog or brownout) is shown on the Status overview and in a new "Power and reset" card on the Hardware page- Modbus register map version at address 2 of the system unit (input register). It goes up whenever an existing register is moved or removed, so a Modbus client can check it and stop instead of using wrong registers.
scripts/modbus_register_diff.pylists the moved, removed and new registers between two releases #3454 - Modbus registers for pool devices (unit ID 21), which had none #3454
- the short summary on the Help page, to paste into an issue or chat, also shows the Tx mode, EMS-ESP's bus ID, the bus quality and Tx failures, and lists every EMS device with its type, device ID and product ID.
/rest/systemStatushas newbus_idandtx_modefields for it - Simplified Chinese translation (zh-CN) by HJ
Fixed
- Rx and Tx telegram queues are locked so the UART task and the main loop no longer race on the same
std::deque, which could crash inshared_ptrteardown when the Rx queue was full (more likely with a virtual RC100H and heavy bus traffic) #3483 - MQTT with TLS left the TCP socket open after a failed TLS handshake, so the client waited until the broker closed it before it could retry and could stay disconnected #3482
lastcodeon heat pumps (0xC6/0xC2/0xC0) only read the first history record and ranked open faults by start time against finished ones by end time, so an active locking fault in a later record (e.g. 5141 after a finished 5140) was missed; the first three records are read and open faults are preferred #3475boiler/lastcodeshowed(32000)for history records not at offset 0, because the fault number was read with an absolute telegram index that failed for the 2nd/3rd record;thermostat/lastcodeon BC400 showed finished faults as- nowbecause that device does not set the 0x80 year bit used on the heat pump #3475- BC400/UI800 heatpump operating mode (
0x0470) no longer drops “Always cooling”. The values areoff/auto/heating/cooling(MyBuderus Idle / Automatic / Always heating / Always cooling; value 0 disables both).summerandwinterstill write asoffandheating#3470 #3230 - after a restart,
summermodecould briefly publishsummerthenwinterwhen the first RC300Monitor (0x02A5) fragment arrived at offset 20 before offset 0.summermodeis now left unpublished until the status byte is known #3471 - heat pump
hpin1opt–hpin4optcould publish wrong digits after a restart (and leave them stuck when0x0486has holes). Options are initialized empty, only'0'/'1'are treated as known, and MQTT is updated only when that input’s bytes are in the fragment. A follow-up also restores publishing of all-zero options (hpin2opt/hpin4opt), which the first fix had skipped #3476 - writes waiting on the EMS bus were sent newest first, so a later setting could be applied before an earlier one. With DHW temperatures that depend on each other, the heat pump was left on the wrong stop temperature. Writes still go out before queued reads, and in the order they were received #3464
- use-after-free in
Command::callwhen a command registers new commands while running (e.g.system/test) #3398 - large numbers in analog sensor values (e.g. pulse counters above 1 million), custom entities and API/MQTT writes could be cut off or lose digits #3367
- with no EMS bus attached (e.g. only powered over USB), noise on the Rx line was taken for a bus: a single random byte matching our poll marked the bus as connected, after which every noise frame was logged as
Incomplete RxorInvalid sourceand counted as an error. A noise frame passing the CRC could also set the wrong EMS bus type. A poll to our bus id is now only trusted when the 3 telegrams before it all had a valid CRC, the bus type is taken from the poll, and nothing is processed before then - RC300/RC310
nofrostmodemissingoffstate #3311 - SRC/MX300 wireless room thermostats:
seltempandmodewere written to the cooling settings on systems without a heatpump, so the change was ignored (since 3.9.0) #3414 - Home Assistant entities of analog sensors disappeared after an MQTT reconnect or "Refresh MQTT" and only came back after a restart or saving a sensor (since 3.9.0) #3422
- thermostat switchtimes: setting one in JSON with
"day":"all"cleared that slot and reported success, it's now refused #3434 - custom entities on the EMS bus: a write of the value shown when the list was last saved was reported as done but never sent, until a restart #3431
- custom entities on the EMS bus: a write no longer publishes the previous value over MQTT, and an "on change" schedule no longer runs before the device has stored the value. Both happen when the read-back arrives #3431
- writable number custom entities on the EMS bus had no min/max, so Home Assistant limited them to 1-100. They now get the full range of their type times the factor (e.g. 0 to 65535 for
uint16), shown in Home Assistant, the Web UI and the API, and writes outside it are refused #3416 - custom entities on the EMS bus: after a write, MQTT and Home Assistant could show the old value until the next "Other" publish interval. The new value is now published as soon as the write is confirmed #3416
uint8custom entities with a value of 128 or more were shown as negative numbers in MQTT and the API (e.g. 200 as -56), the Web UI was correct- RC300 firmware 11.x
dhw/chargeduration: writes above 255 minutes are refused, because the thermostat set them to 15 minutes. Longer durations can only be set on the thermostat itself #3318 - Factor for setting wwDiffTemp #3456
- crash on setting thermostat switchonoptimisation for RC30 #3452
- Modbus register offsets moved whenever an entity was added to a device, so a PLC or SCADA system silently read or wrote a different entity after an update (for example boiler
burnmaxpowerwent from 260 in 3.8.x to 267 in 3.9.1). Offsets are now kept between versions: 3.10.0 uses the 3.9.1 offsets, new entities are added at the end of their block, and the offsets of removed entities are never reused, a read or write there returns an error. Development builds of 3.10.0 before this fix used other offsets #3454
Changed
- Web UI i18n: typesafe-i18n
baseLocaleis English again (was Polish so call sites could pass case indexes for PL). A few English strings use dummy{{…}}plurals for that; the build no longer rewrites generatedi18n-util.tsfrompltoen#695 - on WLW176i/BC400-style heat pumps, locking alarms (e.g. 5141, 6257) clear with
boiler/reset message; H-warnings withboiler/reset hp_error#3475 #2933 - security: Web UI sign-in tokens are signed with a random key that is unique to each device, so existing access tokens stop working after the upgrade. Admins see a notice in the WebUI until it is closed. Changing an admin password replaces the key, which signs everyone out
- security: Web UI sign-ins expire after 30 days (once the clock is set by NTP), and changing a user's password, or removing the user, signs that user out everywhere #3353
- security: API keys replace the per-user access tokens for
/api. Admins create them in Security > API Keys with a name and "Read" or "Read and Write" access, and can revoke each one. A key is shown once when created and only stored as a hash. Read keys act like a guest user, Read and Write keys like an admin, and keys only work on/api, not for the Web UI #3354 - security: an admin who signs in while factory passwords are in use must set a new admin password first, plus an access point password if no WiFi network is set #3357
- security: a fresh install or factory reset no longer creates the
guestuser #3357 - security: a warning is shown while the access point still uses the factory password #3359
- security: firmware is signed by EMS-ESP (ECDSA P-256) in CI by
scripts/sign_firmware.py. A Web UI upload, install from URL or Recovery upload of anything else, including filesystem images, is stopped and the Web UI asks before installing it as a custom build (?custom=1on/rest/uploadFile,customon theuploadURLaction). An official upload shows "Official build", and the Version page and the system info show whether the running firmware is an official or a custom build. Recovery 1.1.0 #3369 - security: only firmware built by this repository's GitHub Actions is signed, after approval by a maintainer;
SECURITY.mdexplains what is checked #3370 - security: changes to the firmware, the users and the security settings from the Web UI need the password entered again, which counts for 5 minutes for that sign-in only and is kept in memory. Installing from a URL only accepts EMS-ESP releases on GitHub over HTTPS, also after redirects.
scripts/upload.pyandscripts/upload_cli.pyenter the password again before uploading #3371 - security: writes check the entity's min and max, read-only mode also blocks raw write telegrams and turning it off needs the password, and the log line for each write says where it came from (Web UI, API, MQTT, Modbus, console or a custom command) with the user and IP address #3372
- security: a write of the value already sent to the same entity within 55 seconds is skipped, so a value repeated every minute (a 1 minute Scheduler timer or a heartbeat) is still sent, and more than 10 writes a minute to one entity or 120 to all entities log a warning or, if chosen, are refused with HTTP 429. Writes from the Web UI, API, MQTT, Modbus, Scheduler and Commands all count; raw
sendtelegrams count towards the total. The per-entity checks cover the 16 entities written most recently./api/system/infoshowswritesSkippedandwritesLimited#3372 - security: MQTT over TLS can check the broker with a CA certificate or with the SHA-1 fingerprint of the broker's own certificate (for self-signed certificates), chosen in the MQTT settings. Without a check the settings page and the log warn that the broker isn't checked #3373
- security: "Commands received over MQTT" setting: off (only reads), values and Commands (default) or everything. MQTT never runs a factory reset or erases the crash dump, and retained commands are ignored so a retained
system/restartcan't restart the gateway on every reconnect./api/system/infoshows it asmqttCommands - security: a factory reset (Web UI, command, button or Recovery) now erases the whole filesystem partition before the restart, so old passwords and keys can't be read back from the flash. It also erases the crash dump, which holds a copy of the memory. Do a factory reset before selling or giving away a gateway #3378
- security:
SECURITY.mddescribes how to report a vulnerability, which versions get security fixes, how fixes are published and the security model #3380 - security: the command parser and expression evaluator are fuzzed with AddressSanitizer and UBSan on every pull request (
pio run -e native-fuzz -t exec). It found an unmatched)in an expression corrupting memory, an integer overflow in number parsing and a%in a command value being read as a log format, all fixed #3368 - security: hardened parsing of API, MQTT and expression input: large numbers,
%by zero, very long numbers or hex values and oversized request bodies no longer crash the device. Request bodies are only read after the login check #3367 - security: custom Commands run by guests use the stored value only, and URL fetches in values only work in text saved by an admin (Commands, Schedules, Custom Entities) or sent by an admin #3366
- security: browsers can only open the device by its IP address, hostname,
<hostname>.localor a name added under Network Settings > Allowed host names, against DNS rebinding. Requests from Home Assistant, scripts and through the access point are not checked #3364 - security: the Web UI is served with
Content-Security-Policy,X-Content-Type-Options: nosniffandReferrer-Policy: no-referrerheaders #3365 - security: CORS needs an explicit origin,
Access-Control-Allow-Credentialsis no longer sent, and/apirefuses browser requests from other sites unless their origin is allowed by the CORS setting #3361 - security: tokens and API keys are only accepted in the
Authorization: Bearerheader, no longer as anaccess_tokenURL parameter, so they don't end up in browser history or server logs #3363 - security: changing settings through
/api(for examplesystem/mqtt/enabled) needs a "Read and Write" API key - security: the "Bypass Access Token authorization on API calls" setting is removed, use a "Read" or "Read and Write" API key instead #3360
- security: every
/apicall needs a sign-in token or an API key, also reads of values,system/infoand metrics. Calls without one get HTTP 401 #3360 - security: opening an
/apiaddress in a browser asks for a sign-in (HTTP Basic). It only reads values, also for admins: changing values and running Commands need an API key. An API key also works as the password, with any username, for tools that only support Basic, for examplehttp://user:emsesp_...@ems-esp.local/api/boiler. The key keeps its rights there, except in a browser, where it only reads. Failed sign-ins count towards the sign-in lockout, and a correct one is remembered for 5 minutes, in memory only - security: reading the definitions of named Commands through
/api(/api/commands/values,/info,/entitiesor/api/commands/<name>/value) needs a "Read and Write" API key. Integrations that read these without one get "authentication failed". Calling a command by name still runs it - security: only admins can open or change the Scheduler, Commands, Custom Entities and Modules, rename devices or change entity customizations and log settings, or use admin actions such as exports and partition switching. Guests can still view the log
- security: each Command has a "Guests may run this command" option. Commands created before 3.10.0 keep guest access, new ones start without it. It applies to the WebUI and
/api - security: the live System Log needs a login
- security: the Super User password is removed. On the serial console
suasks for a Web UI admin user's username and password,passwdis removed. The consolereadcommand needs admin - security: telnet asks for a Web UI user's login, admin users get admin rights and
suis only on the serial console. At most 2 telnet sessions, closed after 10 minutes idle. Telnet is off on new installs (upgrades keep their setting) and the Web UI shows a notice while it's on. Telnet is not encrypted, so use the Web UI or serial for admin work, or a VPN #3358 - security: repeated failed logins to the Web UI, telnet, serial
suand the recovery firmware are slowed down, per source address and for all sources together. The Web UI sign-in answers HTTP 429 while locked out #3362 - security: to go back to 3.8.x or 3.9.x after upgrading, restore a System Backup made before the upgrade, as older versions can't read the hashed passwords. Without that backup, the FAQ explains how to sign in with the serial console
- security: user passwords are stored hashed (PBKDF2-SHA256), existing passwords are converted on the first boot. The Web UI and
show usersno longer show stored passwords; leave a password field empty to keep the current one #3355 - security: settings exports and System Backups leave out passwords and keys, unless an admin ticks "Include passwords and keys". Restoring keeps the passwords already on the device; a restored user with no password can't log in until an admin sets one #3356
- the entity language list in Application Settings only shows the languages included in the firmware, for example only English and German on 4MB boards.
/rest/systemStatusreturns them aslanguages - the security changes use less internal memory: their caches and limits are smaller and need no heap for locking, password and API key hashes are kept in PSRAM on boards that have it,
X-Content-Type-OptionsandReferrer-Policyare only sent with the Web UI files, the unused space in the Web API route list is freed after startup, and the official build check runs once at boot - CI release workflows sign the firmware in a separate job after the builds, so build tools and libraries never have the signing key
- fewer repeated requests on the EMS bus: a device that sends several unknown telegrams is asked for its version only once in 5 seconds, and a device that drops out of the bus device list and comes back is no longer asked for its name again if it's already known #3094
- a write that isn't acknowledged straight away (for example because the boiler already polled the next device) is no longer logged as an error, as it is retried. The error is only logged when all retries fail #3438
- new Web UI design, the same pages and addresses with a new look: a fixed side menu on desktop, a menu button on tablets and phones, breadcrumbs, cards instead of long tables on phones, a save bar for unsaved changes on every settings and list page, and larger touch targets. The Dashboard shows a card per device, Devices keeps the selected device in the address (
/devices?device=<id>), Firmware moved to Settings > Firmware (/status/versionstill works), and Help has a "Reporting a problem" section that copies a short system summary - the Web UI no longer uses MUI, Emotion, react-table-library or react-icons. Icons are built-in SVGs, nothing is loaded from the internet. The translations of each language are stored without repeating the text IDs, which are kept once for all languages. The Web UI takes 24% less flash than in the previous release (about 268 KB instead of 352 KB) and the Recovery Web UI 66% less (47 KB instead of 137 KB)
Commits (37)
dd5d448a7pkg update (proddy)9be03195fbump mobizt/ESP_SSLClient (proddy)179de95e4hpin*opt: publish all-zero options again after hole fix #3476 (proddy)e2dd3a9aclock Rx/Tx telegram queues against UART/loop races #3483 (proddy)d40175545update (proddy)2439e834cadd back trace and all (proddy)b34941a4cui changes (proddy)e4e4097abmove gpios to analog section (proddy)d43ee77feen is standard language (proddy)87a4654b9make 'en' the standard language (proddy)7eff16ab1workaround for #3300 # (proddy)e5f032c82lastcode: fix fault number on offset records and BC400 open-fault check #3475 (proddy)2034903b5formatting (proddy)ae6b93e45pkg update (proddy)b5a379450add custom (proddy)2f6a9dc5ahendrikmuhs/ccache-action@v1.2.26 (proddy)7200315dcfeat(interface): disable auto-refresh polling in hosted demo build (proddy)1d46469d1chore: update generated files for v3.10.0-dev.9 (proddy)a5b4de1d1updates (proddy)87b73c536Show heat-pump active faults from 0xBF and fix lastcode missing open locking alarms #3475 (proddy)a082049dfchore: update generated files for v3.10.0-dev.9 (proddy)7dad423f9translation updates (proddy)f3b1f8b1bName BC400/UI800 heatpump operating mode off/auto/heating/cooling (proddy)9af71734dfeat(interface): pause polling in hosted demo when tab is hidden or idle (proddy)e1b77653eboard profile (proddy)75691b326chore: update generated files for v3.10.0-dev.9 (proddy)42f2c9617donations (proddy)086d5fa31#3478 (proddy)4b37f33d8fixes Inconsistent hpin?opt values across restarts Fixes #3476 (proddy)508025e7fbus id 0x48 can no longer be used (proddy)2f1c56fadtext change (proddy)dc8e116cdchore: update generated files for v3.10.0-dev.9 (proddy)697856658#3470 (proddy)854bf918a#3471 (proddy)4c09b3faa#3471 (proddy)18aac1094auto-formatting (proddy)c867558433.10.0-dev.9 (proddy)