Repository navigation
Practical Guide (English)
Note: This is an independent, practical guide from a user's perspective. Follow the steps described here at your own responsibility.
Author: @PiiCii58 with help from ChatGPT
- Installed ViCare Smart Home system with:
- ViCare Vitoconnect OPTO2 (connects the devices to the ViCare cloud)
- ViCare Smart Thermostat(s)
- ViCare Smart Climate Sensor(s)
- ViCare app
- For the approach described and tested here, a Zigbee adapter with an EFR32MG21 radio chip was used, for example an SMLIGHT SLZB-06MU with PoE or USB.
- Computer for the sniffing process, for example a MacBook
- Home Assistant installation, here on a Raspberry Pi 5
- Installed ViLocal Home Assistant app
- Operational MQTT broker and configured MQTT integration
Experience: The SMLIGHT SLZB-06U with a CC2652P radio chip is not suitable for the use case described here with ember-sniff.
- Prepare the Zigbee adapter 1.1 Firmware update
- Prepare the terminal application
- Prepare the sniffing process 3.1 Determine the thermostat's install code 3.2 Determine the matching link key for the thermostat
- Determine the network key for the ViCare network 4.1 Set environment variables in the terminal 4.2 Reset the ViCare Smart Thermostat to factory settings 4.3 Start the sniffing process 4.4 Pair the thermostat 4.5 Analyze the communication log
- Configure the ViLocal app in Home Assistant 5.1 Requirements 5.2 Enter the network key 5.3 Configure Zigbee reception 5.4 Configure the MQTT connection 5.5 Manually register ViCare components 5.6 Advanced settings 5.7 Determine the PAN ID of the ViCare Zigbee network
- Start ViLocal and receive values
Additional field report: Troubleshooting: ASH disconnects and unsuccessful channel switching attempts
SMLIGHT SLZB-06MU (Zigbee SoC: EFR32MG21 and Core SoC: ESP32) Determine the IP address of the Zigbee adapter, for example http://192.168.xxx.xxx .
WARNING: The adapter must be equipped with an EFR32MG21 radio chip. (for example SMLIGHT SLZB-06MU). WARNING: The Zigbee adapter must not be integrated into Home Assistant.
In the sidebar, select Settings and Tools > Firmware update and update the firmware for both options.
- SLZB OS update (v3.3.5.dev1)
- EFR32MG21 update for ZigBee Coordinator (20250220)
Perform a reboot of the adapter.
For the sniffing process, a MacBook with macOS Tahoe version 26.6 was used.
Install node.js from https://nodejs.org/en/download and test the version
node -vResult: for example v24.18.1
Install or update npm
sudo npm install -g npm@latestnpm -vResult: for example v12.0.2
npx (Node Package eXecute) is a tool for running Node.js packages without permanently installing them on the computer first. npx is part of npm.
npx -vResult: for example v12.0.2
If an error occurs during installation, you may be instructed to change the owner:
sudo chown -R "$(id -u)":"$(id -g)" "$HOME/.npm"The applications zbtk and ember-sniff are executed via npx and therefore do not need to be installed on the computer.
It is best to choose a thermostat near the computer for the sniffing process (for example the thermostat in the study).
The Zigbee installation code (install code) is a factory-generated secret key, usually represented as a hexadecimal value or QR code, that ensures a secure first-time connection for Zigbee 3.0 devices.
The install code is contained in a QR code printed on the thermostat.
- Remove the thermostat cover and scan the printed QR code with a smartphone camera
- The scanned QR code consists of 2 parts, for example
11ZEUID:0011223344556677$ZBIC:INSTALL_CODE$
The link key derived from the install code is used to enable a device to join the Zigbee network securely. During this join process, the gateway transmits the shared network key. The link key is no longer required later for normal network communication.
The link key decrypts the join process of a new device (here: ViCare Smart Thermostat) with the ViCare gateway (here: Vitoconnect OPTO2). The link key is calculated from the install code using the zbtk application. The link key is NOT used permanently within the Zigbee network. Its sole purpose is to decrypt the one-time join process of a new thermostat.
During this join process, the ViCare gateway transmits the actual Zigbee network key. This network key is later entered into ViLocal.
Validate the install code in the terminal with the following command:
npx zbtk ic validate INSTALL_CODEThe correct install code is confirmed with true.
WARNING: Replace INSTALL_CODE and LINK_KEY completely with the values determined earlier.
npm notice run npx
npm notice run 'zbtk' ic validate
INSTALL_CODE
trueCalculate the link key with
npx zbtk ic link INSTALL_CODEThe following link key is calculated
npm notice run npx
npm notice run 'zbtk' ic link
INSTALL_CODE
LINK_KEYThe Zigbee network key is the central shared security key of an entire Zigbee network. It is also 128 bits long and is used by all devices to encrypt all traffic within the network.
Ember-Sniff is a command-line tool (CLI) that allows EmberZNet-based adapters to capture (sniff) ZigBee network traffic (IEEE 802.15.4 at 2.4 GHz).
ZBTK stands for ZigBee Toolkit for Node.js, a programmable software interface and command line tool (CLI) for analyzing and handling the ZigBee protocol. ZBTK expects environment variables when running.
WARNING: Every time the terminal application is reopened, the environment variables must be set again. For every sniffing process, the thermostat must be reset to factory settings.
The network key is transmitted by the ViCare gateway during the pairing process for a new thermostat. The goal is to capture this transmission and extract the network key from it.
ChatGPT was used as support to carry out the approach described in the ViLocal documentation. This was very useful and time-saving when developing the procedure described here, especially for analyzing error messages and communication captures. In the end, many failed attempts were necessary to reach the goal. The experiences described here may help avoid some pitfalls in advance.
Viessmann does not disclose which ZigBee channel is used. So you will likely need to determine experimentally on which channel ViCare communication is taking place.
The sniffing process was enabled for channels 11 - 26 for about 10 seconds each. Cleartext communication was found on channels 11, 20, and 25.
An existing Bosch Zigbee network on channel 11 (confirmed in the Smart Home Controller Zigbee settings) could be clearly identified by repeatedly triggering Bosch window sensors.
By starting several calibration processes on the thermostat (pressing the button), channel 20 was then identified as the ViCare network. ChatGPT analyzed the logs within seconds.
WARNING: It is important to perform the thermostat reset procedure carefully, otherwise the gateway apparently still knows the device data and does not perform pairing.
If successful, you receive a message concerning Captured Transport Key. At last, the network key could be determined.
------------------------------------------------------------
Captured Transport Key <networkKey>
Key was automatically added to pre-configured key list
------------------------------------------------------------
4.1 Set environment variables in the terminal 4.2 Reset the ViCare Smart Thermostat to factory settings 4.3 Start the sniffing process 4.4 Pair the thermostat 4.5 Analyze the communication log
Link key:
export ZBTK_CRYPTO_PKS=LINK_KEYexport ZBTK_CAP_PASS_NO_EUI=1Confirm that the environment variables are set
echo $ZBTK_CRYPTO_PKSecho $ZBTK_CAP_PASS_NO_EUI- Remove the cover: Press the locking tab and pull the radiator thermostat cover off.
- Remove a battery: Briefly remove one of the batteries and press operating button A. This is the button directly below the display.
- Keep the button pressed: Keep button A pressed while reinserting the battery.
-
Wait 5 seconds:
Keep operating button A pressed for at least 5 seconds until all symbols light up and
- -appears on the display. Installation mode is then active. - Finish: Release the button and slide the cover back onto the thermostat.
To find out on which channel ViCare communication takes place, each channel from 11 to 26 was logged for about 10 seconds.
npx ember-sniff \
-vv \
-p tcp://192.168.xxx.xxx:6638 \
-c 20 \
| npx zbtk cap --log packetWARNING: Stop the sniffer with Ctrl-C Ctrl-Z only pauses the process.
The terminal log can be exported under the Shell menu.
Optionally, if the communication should be written to a file, the following command sequence can be started (here for channel 20).
npx ember-sniff \
-p tcp://192.168.xxx.xxx:6638 \
-c 20 \
| npx zbtk cap --log packet \
> ~/Desktop/vicare_join.log- Perform a factory reset
- Pair it: add the thermostat as a new component in the ViCare app
- Run calibration by pressing the button for several seconds until the motor noise becomes audible.
- After about 30 seconds, stop data collection with
Ctrl-C.
- In the Terminal app, use Shell > Export Text to save the capture for analysis.
- Search for
Transportin the file.
If successful, the transport key or network key can be found in the recorded communication log.
------------------------------------------------------------
Captured Transport Key <networkKey>
Key was automatically added to pre-configured key list
------------------------------------------------------------
This clears the hardest hurdle.
The configuration of the ViLocal app is intentionally simple. This section describes the procedure in detail.
In addition, the ViLocal Home Assistant app, an MQTT broker, and the MQTT integration in Home Assistant must be installed and operational. Installation of the ViLocal app is described in the official project documentation.
5.1 Requirements 5.2 Enter the network key 5.3 Configure ZigBee reception 5.4 Configure the MQTT connection 5.5 Manually register ViCare components 5.6 Advanced settings 5.7 Determine the PAN ID of the ViCare Zigbee network
Before starting configuration, the following parameters must be available:
- the determined network key
- the Zigbee channel of the ViCare network
- IP address and port of the ZigBee coordinator (here: SLZB-06MU)
- credentials of the MQTT user
- serial numbers of the thermostats and climate sensors, including their name assignments
- optionally the PAN ID of the ViCare ZigBee network
Enter the detected transport key.

Configure where ViLocal gets the data from.
-
Capture Source:
Select
embersniff.

-
Interface/Path:
Enter the IP address of the ZigBee coordinator in the network and append the default TCP port
6638for network-based Zigbee coordinator adapters. For exampletcp://192.168.xxx.xxx:6638.

-
Channel:
Enter the detected ZigBee channel on which the ViCare components are transmitting.
For example
20.

-
Broker URL:
In the installation described here, the Mosquitto Broker is operated as a Home Assistant app. Therefore, the IP address of the Home Assistant system is used and extended with the default unencrypted port
1883for the MQTT protocol (Message Queuing Telemetry Transport). For examplemqtt://192.168.xxx.xxx:1883.

-
Username / Password:
Enter the username and password configured in the Mosquitto Broker.
For example username
mqtt-vilocal.

-
Topic: Topic defines the MQTT base topic, an address or channel under which ViLocal publishes the received device data. The default value
ViLocalcan be kept unchanged. -
Discovery Prefix: For automatic entity discovery by Home Assistant, the default value
homeassistantis typically used. The value should only be changed if a different discovery prefix has intentionally been configured in the MQTT system.
Manual registration of ViCare components is recommended because this ensures that only known ViCare components are published and meaningful device names can be assigned from the start. For a simple basic configuration, only the serial number and name need to be entered. The remaining fields are optional and can initially stay empty. The serial number of a ViCare component can be found in the ViCare app under Settings > Thermostats or Climate Sensors.

- Serial Number: Unique identification of the thermostat or a climate sensor.
-
Name:
The Name field may contain a readable name including umlauts. If Entity ID is left empty, ViLocal automatically generates a technical name from it. If you want a specific spelling, for example
guest_room, enter it explicitly underEntity ID.
By entering the serial number and a name, for example Living room right, the resulting sensor for room temperature becomes sensor.vilocal_thermostat_living_room_right_temperature.
Similarly for climate sensors, for example
sensor.vilocal_climate_sensor_living_room_temperature.

-
Entity ID:
Desired name component of the Home Assistant entities.
This produces a sensor name in the following form, for example
sensor.vilocal_thermostat_<entity_id>_temperature.

- Suggested Area: Suggested Home Assistant area

- Climate Sensor: If a climate sensor is assigned to a thermostat, the thermostat device created in Home Assistant uses the climate sensor's measured values instead of the thermostat's internal measured values.
If the climate sensor should also appear as an independent device with its own entities, it must additionally be registered under Climate Sensors.
Finish entering each ViCare component with the Add switch.
-
Publish Unknown Devices:
The
Publish Unknown Devicesoption is more suitable for troubleshooting or for identifying still-unknown devices.

-
Retain State:
An MQTT retained state (or retained message) is a message that an MQTT broker stores permanently until a newer message arrives for the same topic.
When Retain State is enabled, the MQTT broker stores the last published state for each topic. After a restart, Home Assistant can therefore immediately restore the last known value. Without Retain, some entities may initially show
unknownuntil ViLocal receives and publishes the corresponding attribute again.

-
Filter PAN-ID: A PAN ID (Personal Area Network Identifier) is a unique identifier used to distinguish one local radio network, such as Zigbee or Thread, from other nearby networks. This is useful, for example, if other ZigBee networks are also transmitting on the same channel. Instructions for determining the
PAN-IDare provided below. -
Buffer Format: This setting defines the format in which binary values are published over MQTT. Supported formats include hexadecimal and Base64. In the configuration described here, the default value
hexcan be kept unchanged.

-
Unwrap layers:
This field can specify which outer protocol layers must be removed before Zigbee decoding, for example
eth,ip4,udp, orzep. When using ember-sniff with the SLZB-06MU, ViLocal already receives direct IEEE-802.15.4 packets. Therefore this field remains empty in the configuration described here.

-
Additional Capture CLI Arguments
Additional command-line parameters for ember-sniff can be entered here.
For example,
-v,-vv, or-vvvfor different logging levels. In the ViLocal version tested here,-ggcan be used for so-called graceful restarts if communication is interrupted because of an error between ember-sniff and the ZigBee coordinator, for example when heavy traffic disrupts communication. Here, "graceful restart" means that ViLocal automatically and cleanly restarts the interrupted ember-sniff capture process instead of leaving the entire ViLocal app permanently stopped.
WARNING: After all ViCare components have been entered, scroll all the way down and save the configuration with the Save switch, then Restart ViLocal.

Starting with version 1.5.2 of the ViLocal Home Assistant app, ViLocal can display the received Zigbee PAN IDs in the log.
- Open Advanced Settings in the ViLocal configuration.
- Initially leave the
PAN-IDfilter field empty. - Set
Log Leveltoinfo. - Save the configuration.
- Restart ViLocal.
- Look in the ViLocal log for the following message
Received data from a new network / PAN-ID: xxxx


The PAN ID consists of four hexadecimal characters, including leading zeros if present.
Then enter the detected PAN ID under Filter PAN-ID, save the configuration, and restart ViLocal again. The startup log should then contain a line such as:
PAN ID xxxx filter set
After that, ViLocal processes only telegrams from this Zigbee network. However, the PAN ID filter does not reduce radio traffic and therefore does not necessarily prevent problems caused by high channel load.
If several Zigbee networks are present on the same channel, ViLocal displays multiple PAN IDs. In that case:
- Enter one of the displayed PAN IDs as the filter.
- Save and restart ViLocal.
- Change the setpoint on a ViCare thermostat.
- Check whether the changed value is then received again via MQTT or in Home Assistant.
- If no update occurs, repeat the test with the next displayed PAN ID.
When Retain State is enabled, the mere presence of old values does not prove that the PAN ID is correct. What matters is whether a new thermostat change is received with a current timestamp.
To avoid confusing old values stored by Retain State with newly received data, the ViLocal branch can be deleted in MQTT Explorer before testing.
To do this, select only the ViLocal branch in MQTT Explorer and click the trash icon.
WARNING: The homeassistant branch must not be deleted completely because it may also contain MQTT discovery data for other devices.
Then start ViLocal with the PAN ID being tested and change the setpoint on a ViCare thermostat. If new values are then published under ViLocal, this is an indication that the correct PAN ID was selected.
After successful identification, the log level can be set back to warn or to the desired value.
ViLocal does not actively poll the ViCare components, but passively listens to their Zigbee communication. Therefore the values do not appear immediately after startup.
After starting the ViLocal app, it takes quite some time before values for the entities become visible in Home Assistant's MQTT integration.
WARNING: Restarting the ViCare communication module generates additional Zigbee communication and can therefore accelerate the initial reception of data. However, there is no guarantee that all values will be transmitted immediately.
With a centrally located installation of the SLZB-06MU ZigBee coordinator and optimal reception, the values appear after some time in the Home Assistant MQTT integration under Settings > Devices & Services > MQTT.
At first, often only individual values are shown. Temperature values usually appear relatively quickly. Other information, such as the heating setpoint or battery status, may only arrive after a change or after a longer waiting period.
In the following example, the measured room temperature (Temperature) for the living room is already present, but the heating setpoint is still missing.
You can check here whether the desired values have arrived or whether something is still missing.
Because there is a lot of third-party communication in the installation documented here, a dashboard was created for the many tests that displays the data in a table.
The table clearly shows that some values are still missing.
In this configuration, communication between the ViLocal app and the SLZB-06MU ZigBee coordinator was repeatedly interrupted by ASH errors (Asynchronous Serial Host Interface).
To rule out a hardware defect, a second SLZB-06MU was purchased, but it did not improve the situation.
The attempts described below were carried out with the new adapter.
ember-sniff was started with the -vvv parameter.
[2026-08-15T02:22:46.653Z] zh:ember:uart:ash: Received ERROR from adapter, with code=ERROR_EXCEEDED_MAXIMUM_ACK_TIMEOUT_COUNT.
[2026-08-15T02:22:46.655Z] zh:ember:uart:ash: ASH disconnected | Adapter status: ASH_NCP_FATAL_ERROR
[2026-08-15T02:22:46.655Z] zh:ember:ezsp: Fatal error, status=ASH_NCP_FATAL_ERROR. Last Frame: [FRAME: ID=138:"MFGLIB_INTERNAL_SET_CHANNEL" Seq=5 Len=9]
[2026-08-15T02:22:46.656Z] ember-sniff: Adapter needs restarting: status=ASH_NCP_FATAL_ERROR
In addition, there were repeated decryption errors caused by traffic that apparently could not be assigned to ViCare communication. Example:
Malformed packet! 09d8d5ffffffffc7fccfce21c5af2720fe15cd650000ffffffffffadcdc5c7074056cb8f3a125341339cf7a73e56b2b555e64a717768b3becaa424525c5163ea34eb6283f7e7ef1429360f481da434d5505b Error: Met undefined tag value undefined at choice
at ...
The ViLocal developer then suggested finding a new ViCare channel. Since Viessmann does not allow channel configuration through the app, this was to be attempted by resetting and reconfiguring the ViCare gateway Vitoconnect.
-
All ViCare components are powered down
- Remove batteries from ViCare thermostats (12) and climate sensors (2)
- Disconnect the Ubisys repeater (1)
- Unplug the Vitoconnect Opto2 gateway
-
Identify existing ZigBee channels
- See chapter 4.
-
Reset the ZigBee coordinator after a disconnect:
- If a connection error such as ECONNRESET or an adapter error such as ASH_NCP_FATAL_ERROR occurred and the capture process was not restored automatically, the adapter was restarted via the web interface or briefly disconnected from the power supply.
zh:ember:uart:ash: Port Error: read ECONNRESET
All channels from 11 - 26 were scanned in the terminal for about 30 seconds each. That means the ViLocal app was not active. Each scan was terminated with Ctrl-C.
The log files were analyzed by ChatGPT and the results were discussed with the developer.
All ViCare components are powered down.
Log:
11: Communication found and assigned to the configured Bosch SHC channel.
20: During the 30 seconds, no communication occurred at the time of the test. Over longer observation periods, the interference traffic was not evenly distributed throughout the day.
25: Unknown communication found
All other channels showed no radio traffic.
The ViCare gateway was started and a single thermostat was registered.
Result: The transport key for ViCare was found again on channel 20.
The Bosch SHC central unit was switched to ZigBee channel 20 in the hope that the gateway would choose a channel with less radio traffic.
Result: The transport key for ViCare was found again on channel 20.
There were further attempts; the ViCare channel was repeatedly channel 20.
At this point, the ViLocal app was started again. One by one, additional ViCare components were integrated and communication was logged for several hours.
Unfortunately, it turned out that the previously observed errors also occurred with only a small number of components, and ViLocal stopped after some time.
Another variation of the tests was to change the location of
- the gateway and
- the ZigBee coordinator.
For the gateway, a central installation location in the middle of the ground floor was found relatively quickly, where all ViCare components, including those in the basement and on the upper floor, achieved sufficient signal strength of more than 28%.
For the ZigBee coordinator, this was not quite as simple because of the availability of a LAN connection. Although a direct LAN connection to the router is available on every floor, it is always at the edge of the building. At the most central point on the ground floor, the ZigBee coordinator was able to receive all ViCare components well. In the basement, directly on the same switch as the Home Assistant host, and on the upper floor, there were occasional components that were not received. However, near the Home Assistant host, the number of errors was lower.
Ultimately, the optimal installation location for the ZigBee coordinator has not yet been found.
The ViLocal developer implemented the following improvements at short notice:
- Due to
Graceful Restart, a crash ofember-sniffno longer necessarily causes a permanent standstill of the ViLocal app. The capture process is restarted automatically. -
Retain Stateallows the MQTT broker to store the last published states and deliver them again to Home Assistant after a restart. - With the PAN ID filter, ViLocal processes only telegrams from the selected Zigbee network.
As a result, the ViLocal app no longer remains permanently stopped after a disconnect.
In the environment examined here, however, comparatively frequent connection disconnects between ember-sniff and the Zigbee coordinator still occur.
For rarely transmitted values such as the heating setpoint or battery status, these interruptions may still remain problematic depending on usage.