Hello to all.
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.
Is there an easy way to solve the problem ?