[RELEASE] Tuya Zigbee Metering Plug (w/ healthStatus)

The popular TR energy monitoring plug is now available in EU :

THIRDREALITY Zigbee Smart steckdose mit Stromverbrauch (Typ F)

model : 3RSPE01044BZ (different than the US model!)

Amazon .de : (link)


( I couldn't find UK and AU sockets)

([RELEASE] Tuya Zigbee Metering Plug (w/ healthStatus)) driver.

  • endpointId: 01
  • application: 4F
  • firmwareMT: 1233-D3A6-10013050
  • inClusters: 0000,FF03,0003,0004,0005,0006,0B04,0702
  • manufacturer: Third Reality, Inc
  • model: 3RSPE01044BZ
  • outClusters: 0019
  • softwareBuild: v1.00.79


Now supported in dev.branch version 1.9.5 2024-05-16



My 20A outlet is working fine for the last 5 days:
( _TZ3000_okaz9tjs)

I hope it doesn't break.


I am using this particular device for measuring and switching power to my car's charger.
I want to be able to follow how much energy (kw) it has used in each session (live)
Your driver reports the cumulative energy value. It does not reset at the beginning of each session.
Would it be possible to add a feature to report an additional value which resets at the beginning of each session (triggered by "on" event) ?

Also, I would like to be able to set starting energy point with a custom command.
I tried adding this function:

def setEnergy( energy )
    def energyDouble = safeToDouble( energy ).round(6)
    energyEvent( energyDouble, isDigital=true )
    if (settings?.logEnable) log.debug "setEnergy() : state.lastEnergyRaw = ${state.lastEnergyRaw} new energy = ${energyDouble}"
    def now = FormattedDateTimeFromUnix( now() )
    state.lastResetDate = now
    state.lastEnergyCost = 0.0
    state.lastResetEnergy = state.lastEnergyRaw
    state.lastHourlyEnergy = state.lastEnergyRaw
    energyEvent( energyDouble, isDigital=true )
    hourlyEnergyEvent( energyDouble, isDigital=true )

    if (settings?.txtEnable) log.info "${device.displayName} Energy (total:${state.lastEnergyRaw} kWh) was reset on ${state.lastResetDate}"

It sets the energy for less than a second but then resets to previous value.
how can I achieve this ?

I just removed one of the problematic Tuya plugs that was connected to my cable modem. It had been fine for months then went offline this morning. They usually connect once I add them again, but are as reliable as a drunk roofer.

I have 8 of these in the drawer of stuff too good to throw away. Not sure why I am keeping them.

There is already a command 'Reset Energy' :

You could use the command in a RM5 rule to reset the cumulative energy value when the switch is turned on. Have you already tried this?