SUPLA / supla-device

Create your own Supla device! This software can be used as a library for Arduino IDE, or can be used directly with ESP8266 RTOS SDK and with ESP IDF. It is also possible to compile and run it on Linux and in FreeRTOS.
GNU General Public License v2.0
28 stars 16 forks source link

Hygrometer - sent values not visible in Supla cloud #17

Closed milanos closed 2 years ago

milanos commented 2 years ago

I create new class based on HygroMeter (hygro_meter.h)class. I see in log sent values HygroMeter2

but In Supla I can see any measurements. I see still "-1" HygroMeter1

if I use the thermometer sensor (thermometer.h), the data is displayed correctly but but shown as a temperature sensor

milanos commented 2 years ago

never mind, I used examples from it: https://forum.supla.org/viewtopic.php?t=8366 and it's work.

milanos commented 2 years ago

never mind, I used examples from it: https://forum.supla.org/viewtopic.php?t=8366 and it's work.

milanos commented 2 years ago

I reopen, because founded solution use function with 2 variables: channel.setNewValue(HUMIDITY_NOT_AVAILABLE,getHumi()); and it works but not entirely correct. It solution send temp and humidity for the humidity sensor only. Supla shows measurement but but it does not allow you to enter the history of measurements.

I'd like use function: channel.setNewValue(getHumi()); but in SUpla clud I see indication= -1, on smartphone I see inicator 1271310,3 :(

klew commented 2 years ago

Humidity only channel uses the same data structure on Supla protocol as humidity+temperature sensor. However server ignores temperature setting and present only humidity value. That's why you have to use: channel.setNewValue(-273, getHumi())

Missing chart for humidity sensor is a known issue. Currently it should be available on Cloud interface (https://github.com/SUPLA/supla-cloud/issues/546) In case of mobile apps, this is still not implemented yet. Here is issue to track it: https://github.com/SUPLA/supla-android/issues/307

milanos commented 2 years ago

OK, thank you. Yes, the effects are the same when using channel.setNewValue(-273, getHumi()) or channel.setNewValue(HUMIDITY_NOT_AVAILABLE,getHumi()) HUMIDITY_NOT_AVAILABLE is constans value set in code.

it remains to wait for the solution of the graph visibility problem