I have a little Problem with my Zigbee Devices.
First I want to explain what I did.
I am running a Raspi with Home Assistant and I am using Node Red for my Sensors.
I flashed a Sonoff Zigbee device and connected a Sonoff Temp sensor.
Then I made a Gauge to show Temp and Humid on my Dashboard.
MQTT IN --> JSON --> 2x Gauge
This is working, but sometimes the Zigbee Temp sensor is reporting only one Value, the temp or the humid. When the humid is reporting over Mqtt the temp gauge ist showing 0.
When the temp is reporting, the humid gauge is showing 0.
I think this is because when one value is missing the gauge is automatically showing the value zero.
Can anybody help me with this Problem ?
My first solution is to place a function in between with an if loop, when there is no value take the previous value. But this is not working.
Add debug nodes showing what is going to the gauges and I imagine it will be clear what is happening.
Also have a debug showing what is going into the Switch node. Give the debug nodes names so it is clear which is which.
I don't think so, when I named my devices I always get an ZbReceived message.
I think this depends on the IN Node.
I took Mqtt in: tele/tasmota_zigbee-1/SENSOR