Closed TheCloudWarrior closed 4 years ago
Hi,
The fan reports the temperature in kelvins. Looking at the environmental state you posted, it should match what you are seeing in the app. To convert it to celsius, just subtract 273.15 from the value ( 294.7 - 273.15 = 21.55). Let me know if that helps.
This reminds me that I should add helper functions to the library for easier conversion to celsius and fahrenheit.
Oh dear lord, it never occurred to me it might NOT be in Celsius because my other stuff all defaults to Celsius and doesn't even have a Kelvin option. Thanks!
Glad I can help. I'll close the issue now.
Hi, I have a problem when I'm trying to retrieve a few values using this module. I am retreiving the temperature, humidity, pm2.5 and pm10 and sending it to a SQL database.
When I do the following:
I get:
DysonEnvironmentalSensorV2State(temperature=294.7,humidity=43,particulate_matter_25=36,particulate_matter_10=25,volatile_organic_compounds=4,nitrogen_dioxide=0,p25r=32,p10r=34,sleep_timer=0)
The problem is with the temperature, its nog 29,47 degrees right now. The app gives me 22 degrees. It doesnt seem to be cached data because the values do change slightly:
I think I have the latest version installed:
My device is the Pure Cool Tower
TP04 EU/CH/TR Bk/Nk 310129-01 (Black/Nickel)
It might be I'm doing something wrong or that there is something wrong with data thats being retreived. Please let me know if you need more information.