prefixkit Ask an engineerAsk Support RU

Zigbee devices Thermostats and radiator valves

SONOFF TP-WGZBA

Zigbee thermostat panel. Works with Zigbee2MQTT with no vendor hub or cloud: it pairs with a Zigbee stick and shows up in Home Assistant.

Vendor
SONOFF
Model
TP-WGZBA
Type
Thermostats and radiator valves
Power
mains: usually a router that extends the mesh
Firmware updates (OTA)
yes, through Zigbee2MQTT

Find it in shops: AliExpress

Links open a search in the shop; some are affiliate links: buying through them costs you nothing extra and supports this site. We do not sell devices or get them from manufacturers.

What it exposes

FeaturePropertyValuesControl
Climateoccupied_heating_setpoint, local_temperature, local_temperature_calibration, system_mode, running_stateheating setpoint, room temperature, local_temperature_calibration, mode, running statesettable
Child lockchild_lock—settable
Open windowopen_window—settable
Open window detectedopen_window_detected—read only
Frost protection temperaturefrost_protection_temperature°C · 5…15settable
Weekly schedule sundayweekly_schedule_sunday—settable
Weekly schedule mondayweekly_schedule_monday—settable
Weekly schedule tuesdayweekly_schedule_tuesday—settable
Weekly schedule wednesdayweekly_schedule_wednesday—settable
Weekly schedule thursdayweekly_schedule_thursday—settable
Weekly schedule fridayweekly_schedule_friday—settable
Weekly schedule saturdayweekly_schedule_saturday—settable
Temporary mode modetemporary_mode_modedisabled, timer, boostsettable
Temporary mode durationtemporary_mode_durationminutes · 1…1440settable
Temporary mode target temperaturetemporary_mode_target_temperature°C · 5…30settable
Temperature sensortemperature_sensor_selectlocal_temperature, remote_temperature, remote_source_offlinesettable
External temperatureexternal_temperature_input°C · 0…99.9settable
Minimum heating start thresholdhysteresis_low°C · -2.6…-0.2settable
Maximum heating stop thresholdhysteresis_high°C · 0…2.6settable
Hydronic underfloor heating relay outputhydronic_underfloor_heating_relay_outputnormally_open_no, normally_closed_ncsettable
Boiler dry contact outputboiler_dry_contact_outputnormally_open_no, normally_closed_ncsettable
NTC temperaturentc_temperature—read only
NTC overheat protectionntc_overheat_protection—settable
NTC overheat protection temperaturentc_overheat_protection_temperature°C · 20…50settable
Radar detectionradar_detection—settable
Radar sensitivityradar_sensitivitylow, medium, highsettable
Radar do not disturbradar_do_not_disturb—settable
Radar do not disturb periodradar_do_not_disturb_period—settable
Standby brightnessstandby_brightness0…8settable
Active brightnessactive_brightness0…8settable
Night modenight_mode—settable
Night mode periodnight_mode_period—settable
Night brightnessnight_brightness0…8settable
Bluetooth pairingbluetooth_pairing—settable
Read temperature control historyread_temperature_control_history—read only
Temperature control historytemperature_control_history—read only
Factory resetfactory_resetresetsettable

MQTT: state and commands

Zigbee2MQTT publishes the device state to zigbee2mqtt/my_device (my_device is the name you give the device). An example message:

{
  "occupied_heating_setpoint": 21,
  "local_temperature": 20.5,
  "system_mode": "heat",
  "child_lock": false,
  "open_window": false,
  "open_window_detected": false,
  "frost_protection_temperature": 10,
  "temporary_mode_mode": "disabled",
  "temporary_mode_duration": 721,
  "temporary_mode_target_temperature": 18,
  "temperature_sensor_select": "local_temperature",
  "external_temperature_input": 50,
  "hysteresis_low": -1,
  "hysteresis_high": 1,
  "linkquality": 120
}

Send commands to zigbee2mqtt/my_device/set:

mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"occupied_heating_setpoint":21.5}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"system_mode":"heat"}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"child_lock":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"open_window":true}'
mosquitto_pub -t zigbee2mqtt/my_device/set -m '{"schedule_active_group":"2"}'

Watch the topics live from the browser: MQTT client.

Home Assistant automation example

Zigbee2MQTT creates Home Assistant entities from the device name. If it is called my_device, an automation in automations.yaml can look like this:

- alias: "Cooler at night"
  mode: single
  triggers:
    - trigger: time
      at: "23:00:00"
  actions:
    - action: climate.set_temperature
      target:
        entity_id: climate.my_device
      data:
        temperature: 18

Check the YAML: YAML checker.

How to pair it

  1. In Zigbee2MQTT click Permit join.
  2. Put the device in pairing mode: usually a long press of the reset button (5–10 s) until the LED blinks; bulbs: switch the power off and on 5–6 times.
  3. Keep the device close to the coordinator or a router while pairing.
  4. Give it a clear name: MQTT topics and Home Assistant entities are built from it.

Exact procedure and model notes: the device page in the Zigbee2MQTT docs. No coordinator yet: coordinator picker.

Similar devices

Idea?