[DOCKER] Update CubeOS 2.12.0 to CubeOS 2.13.1

CUBE OS v2.13.1 Now Officially Released!

This release expands Zigbee and Matter Bridge compatibility, adds Dongle-PP10 support and OTA updates for the CUBE image for Mac, and improves eWeLink-linked device syncing, backups, scenes, and device stability. Please take a moment to read through the notes before updating to this version.

What’s New

1.New Device Support

  • Added support for SONOFF MINI-ZB1GS single-channel Zigbee smart switch.
  • Added support for SONOFF SNZB-09P Zigbee indoor siren.
  • Added support for SONOFF TRV-ZBT Zigbee/Bluetooth dual-mode thermostatic radiator valve.

2. Expanded Zigbee Device Support

  • Added support for the following Zigbee device types:

    • Water Valve
    • Flow Sensor
    • Rain Sensor
    • Soil Sensor
    • Air Purifier

3. Matter Bridge Enhancements

  • Added support for syncing the following Zigbee device types to Matter-enabled platforms via Matter Bridge:

    • Flow Sensor
    • Rain Sensor
    • Soil Sensor
    • Air Purifier
  • Now supports syncing energy metering data from connected Zigbee devices to Matter-enabled platforms, including total energy exported and consumed.

4. Enhanced eWeLink-linked Device Sync Support

  • SONOFF WS01TPE-E Matter-over-Wi-Fi smart wall socket with energy monitoring can now be synced to eWeLink CUBE via either the eWeLink Smart Home Add-on or the built-in “Add eWeLink-linked Devices” feature.

5. Zigbee Dongle Enhancements

  • Added automatic detection and firmware flashing support for Dongle-PP10, including compatibility with three Zigbee firmware baud rates.
  • Added support for Dongle-PP10 as a Zigbee Router, including removal and correct identification in the device list and Zigbee network topology.

6. System and Feature Improvements

  • Added OTA upgrade support for Mac images, allowing upgrades without re-downloading or reconfiguring while keeping device bindings and scene data.
  • Added imperial gallon as a volume unit option for smart water valves.
  • Downloaded backup files now use the same file names shown in the system backup list.
  • Optimized scene configuration for SONOFF THR316D temperature and humidity monitoring switch, allowing temperature to be set as a scene trigger even when it’s switched “off”.

Bug Fixes

  1. Fixed two issues with Automatic Backups: edited schedule times were displayed incorrectly, and more than one automatic backup task could be created.
  2. Fixed the confirm button remaining inactive after entering a temperature threshold for SONOFF SAWF-08P.
  3. Fixed an issue where restarting CUBE could create duplicate IKEA DIRIGERA devices on Matter-enabled platforms and leave them unresponsive.
  4. Fixed an issue where temperature data from SONOFF SNZB-02WD did not update after the device was synced using “Add eWeLink-linked Devices”.
  5. Fixed an issue where a SONOFF THR316D synced using “Add eWeLink-linked Devices” could not be used as both a trigger and an action in the same scene.
  6. Fixed an issue where room assignments, accessory names, scenes, and automations for SONOFF TRVs in Apple Home could be lost after a CUBE restart.
  7. Fixed an issue where backup could not be created when running CUBE in Docker environments.
  8. Fixed camera stream interruptions when running CUBE in Docker on Raspberry Pi 5.
  9. Fixed an issue where the measured values or statuses of some sensor devices were displayed as “unknown” or “–”.

Guide to updating CubeOS in Docker, during the update the smart home won’t work.

Commands:

  1. sudo docker stop cubeos
  2. sudo docker rm cubeos
  3. reboot
  4. sudo docker pull https://ghcr.io/ewelinkcube/cube-os:2.13.1

I had to give the reboot command because the Raspberry Pi couldn’t start docker pull.

If everything is fine, it looks like this:

:~ $ sudo docker pull https://ghcr.io/ewelinkcube/cube-os:2.13.1
2.13.1: Pulling from ewelinkcube/cube-os
8c5385ef5e67: Pull complete
8602eec3e5bc: Pull complete
c1007aec7d0b: Pull complete
908ad03feea4: Download complete
Digest: sha256:0e17b29e9933d88d9191e402101030511f80abb8750b7f399a449d0b2de494b2
Status: Downloaded newer image for https://ghcr.io/ewelinkcube/cube-os:2.13.1
https://ghcr.io/ewelinkcube/cube-os:2.13.1

For a new Docker launch on xxx, enter the account name where the CubeOS data is.

docker run -d
–name cubeos
–privileged
–net=host
–restart=unless-stopped
-v /home/xxx/data:/data
-v /run/dbus/system_bus_socket:/host_dbus/system_bus_socket:ro
https://ghcr.io/ewelinkcube/cube-os:2.13.1

If it started successfully, it will look like this output when you run the command sudo docker ps

~ $ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
ee624486c5a7 https://ghcr.io/ewelinkcube/cube-os:2.13.1 “/sbin/init” 3 minutes ago Up 3 minutes cubeos
~ $

An example of an htop output when Docker is running successfully, RAM usage is over 1 GB.

ARM64 and X86 images? I have a RISC V Spacemit K3 if you want to beta test it on RISC V (Milk V Jupiter 2). I went to the GitHub page earlier and only saw precompiled bina so couldn’t compile my own. If someone there has an interest is RISC V (and now it seems okay for desktop use rather than being experimental I can tell them if it works on RISC V (K3 anyway). If you doubt RISC V is viable yet just watch a few videos of the latest versions. The pace with which it is coming on is amazing. Plus it isn’t sanctioned. The main negative at present seems to be the energy use at rest otherwise it’d be suitable for iHost type stuff.

Hi, I’m just an ordinary user, and I have zero influence on the development of CubeOS. I create these posts to show less tech-savvy users how to perform the upgrade.