# Is there any way to force a Zigbee device to report over MQTT

**URL:** <https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825>\
**Category:** Dashboard\
**Created:** [26 January 2021 21:02 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825 "2021-01-26T21:02:06Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![Markus667](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Markus667](https://discourse.nodered.org/u/Markus667)\
**Post date:** [27 January 2021 20:52 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825/22 "2021-01-27T20:52:03Z")

</div>

I have access via SSH, but normally I don't need it.  
This MQTT Explorer is also very nice. THX for the hint.  
When I look at the MQTT Explorer, I can see that the most values are not retained.  
I found a command for Tasmota Sensor "SensorRetain"  
So I will try if this is working.

@markost  
I am not sure if the state Reachable true says what we think.  
I testet a Temp sensor witch is not reporting for round about 3 Days, I think it is out of Range because a new connection failed a few times and in the Zigbee Map there is no wire between the sensor and the bridge.  
When I try the ZBStatus3 on the sensor, it says always Reachable true, but it do not report.

---

<div class="post-metadata">

**Author:** ![markost](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@markost](https://discourse.nodered.org/u/markost)\
**Post date:** [27 January 2021 21:02 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825/23 "2021-01-27T21:02:20Z")

</div>

What sensor you have? If you reboot Z2T and send command Reachable is true or false?

---

<div class="post-metadata">

**Author:** ![Markus667](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Markus667](https://discourse.nodered.org/u/Markus667)\
**Post date:** [27 January 2021 21:06 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825/24 "2021-01-27T21:06:45Z")

</div>

This was the result I testet around midday. The last seen Value very high, as you can see.

```auto
12:23:40 MQT: stat/tasmota_zigbee-1/RESULT = {"ZbStatus3":
[{"Device":"0x4DC8","Name":"ZTempKinderzimmer","IEEEAddr":"0x00124B00226AE41D",
"ModelId":"TH01","Manufacturer":"eWeLink","Endpoints":[1],"Config":["T01"],"Temperature":15.49,"Humidity":65.99,"Reachable":true,
"BatteryPercentage":100,"LastSeen":67139,"LastSeenEpoch":1611679481,"LinkQuality":0}]}

```

It is a Sonoff SNZB Device

---

<div class="post-metadata">

**Author:** ![markost](https://avatars.discourse-cdn.com/v4/letter/m/3d9bf3/32.png) [@markost](https://discourse.nodered.org/u/markost)\
**Post date:** [28 January 2021 11:03 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825/25 "2021-01-28T11:03:28Z")

</div>

I tested the following:  
-Aqara sensor connected to Z2T, sends data correctly ...  
-to the ZBStatus3 command, returns the data value, however the state "Reachable": true **remains unchanged** even if the battery is removed from the sensor!  
Of course, the data then are not instantaneous but last recorded.

The only information that could be used as an indication that the sensor is alive is "LastSeen": xx (seconds).

---

<div class="post-metadata">

**Author:** ![Markus667](https://avatars.discourse-cdn.com/v4/letter/m/b9e5f3/32.png) [@Markus667](https://discourse.nodered.org/u/Markus667)\
**Post date:** [1 February 2021 20:44 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825/26 "2021-02-01T20:44:53Z")

</div>

Hey again,

I think I can solve the Problem with the Option "SensorRetain 1" on the Tasmota Zigbee Device.

THX to all of you.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [15 February 2021 20:45 UTC](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825/27 "2021-02-15T20:45:48Z")

</div>

Closed on 15 February 2021 20:45 UTC

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.

[Previous page](https://discourse.nodered.org/t/is-there-any-way-to-force-a-zigbee-device-to-report-over-mqtt/39825.md?page=1)
