Using Sonoff SNZB-02 with Raspbee2, DeConz and OpenHab3 - Battery status gives Null

  • Platform information:
    • Hardware: Raspberry Pi4
    • OS: Raspian Bullseye
    • Java Runtime Environment:
    • openHAB version: 3

Hello community.
I use some Sonoff SNZB-02 Door/Window sensors and they work like expected.
I’ve created all equipment from the thing without any modification at all.
The only equipment i can’t get information from is the battery status ( charge ).
It always reports Null.
I now Sonoff is something special in the OH universe and there are some reported problems with their sensors.
But is that missing battery charge status a fixable problem or do i have to life without that information?

Thank you for your help.

Are you using the zigbee binding or using zigbee2mqtt?
I am using snzb-02 with zigbee2mqtt with no issues.

Here is one of my configs:

UID: mqtt:topic:mqttbroker:0bc8c6461a
label: Zigbee door back sensor
thingTypeUID: mqtt:topic
configuration:
  payloadNotAvailable: offline
  payloadAvailable: online
  transformationPattern: JSONPATH:$.state
  availabilityTopic: zigbee2mqtt/door-back/availability
bridgeUID: mqtt:broker:mqttbroker
location: Kitchen small deck
channels:
  - id: zigbeedoorback
    channelTypeUID: mqtt:contact
    label: Zigbee door back
    description: ""
    configuration:
      stateTopic: zigbee2mqtt/door-back
      transformationPattern: JSONPATH:$.contact
      off: "true"
      on: "false"
  - id: zigbeedoorbackbattery
    channelTypeUID: mqtt:number
    label: Zigbee door back battery
    description: ""
    configuration:
      stateTopic: zigbee2mqtt/door-back
      transformationPattern: JSONPATH:$.battery
      unit: "%"

I’m not aware of any issues with them and use their PIR movement, push button, and temp and humidity sensors. All are the cr2450 battery versions and have used them for over two years now. I also have there mains zigbee switches that use neutral and active around as routers and they also work fine.

I must admit I have not setup the battery channels on mine so keen to know what your referring to. Also they now have a newer range that uses a CR2477 battery and have not tried them yet.priced up the newer batteries and they cost twice as much to buy, but appear on paper to last twice as long probably due to the newer hardware design on top of the bigger cell size.

I use an ember chipset coordinator and the zigbee binding so it may be your different binding and hardware choice.