You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Breaking Changes
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 example system/restart, system/send or system/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.
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 /api call 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 as Authorization: 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 /api address 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 to http://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 /api calls need a "Read and Write" API key: changing settings (for example system/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 /api without 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/log directly.
Tokens and API keys are only accepted in the Authorization header. A token in the URL (?access_token=...) no longer works on /api, /rest or /es/log. Send Authorization: Bearer <key> instead, for example curl -H "Authorization: Bearer emsesp_..." http://ems-esp.local/api/boiler.
Telnet changes. Log in with a Web UI user: admin users get admin rights, su no 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, su asks for the username and password of a Web UI admin user. The passwd command 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 info topic:IPv6 address is now an array, and IPv4 DNS Server is replaced by a DNS Server array. Update any automations that read these fields.
New installs have no guest user. A fresh install or factory reset only creates admin. 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 /api from 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 example http://homeassistant.local:8123. Home Assistant's integration, Node-RED, scripts and curl are 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>.local always work. If you open EMS-ESP in a browser by another name, for example ems-esp.fritz.box or 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/uploadFile get HTTP 412 for such a file and can add ?custom=1 to install it anyway (scripts/upload.py and scripts/upload_cli.py do).
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/confirmPassword with {"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 range instead of being sent to the boiler or thermostat. Check automations that write values. In read-only mode, raw write telegrams (send commands) 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.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This discussion contains a list of breaking changes for version 3.10.0.
This release is primarily a security hardening one, following the changes listed in #3232
See also the upgrade notes to this version https://docs.emsesp.org/FAQ#upgrading-to-310x
Important
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.
Breaking Changes
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./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./apicalls need a "Read and Write" API key: changing settings (for examplesystem/mqtt/enabled) and reading the definitions of named Commands (/api/commands/...)./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./es/logdirectly.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.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.suasks for the username and password of a Web UI admin user. Thepasswdcommand and the Super User password field in Security settings are removed.infotopic:IPv6 addressis now an array, andIPv4 DNS Serveris replaced by aDNS Serverarray. Update any automations that read these fields.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./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.<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.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.*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).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.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.All reactions