argaar / comfortable-environment-card

A card to display the Heat Index and Discomfort Index (aka Thom Index)
MIT License
52 stars 18 forks source link

Difference with Thermal Confort integration #57

Open Percherie opened 1 month ago

Percherie commented 1 month ago

Hello,

I use Thermal Confort integration: https://github.com/dolezsa/thermal_comfort I need it to control PLCs and scripts based on values. Your superb interface doesn't allow me to retrieve values, so I use it for consultation.

But I can't find the same values with your card. Can you tell me the index that should correspond with Thermal Confort? There may be a different calculation method between the two solutions.

Percherie commented 1 month ago

Hi found my issues on Thermal Confort : https://github.com/dolezsa/thermal_comfort/issues/371

argaar commented 4 weeks ago

Hi, the DI is calculated here: https://github.com/argaar/comfortable-environment-card/blob/main/src/comfortable-environment-card.ts#L127 while the Heat Index formula is here https://github.com/argaar/comfortable-environment-card/blob/main/src/comfortable-environment-card.ts#L74 in the function you can found further references to the source

As far as I can see, the thermal comfort integration seems to use a similar formula https://github.com/dolezsa/thermal_comfort/blob/master/custom_components/thermal_comfort/sensor.py#L970

I've installed Thermal Comfort, and while it seems to not return a numeric value with the description, I've found that the results are the same as my calculations

image

Left is DI of one of my room, on the right (thermal comfort) I've the same output (as string)

Percherie commented 3 weeks ago

Thank you for taking the time to reply

At home I have slight discrepancies between the two. I reported an anomaly to Thermal Confort when we used C° instead of F°. They corrected it months ago but it may be incomplete.

I live in the south of France near the Mediterranean and in practice the DI doesn't quite reflect what it feels like when it's 35°C with 62% humidity. In practice, when walking quietly in town, the "Dew Point" corresponds perfectly to how it feels. It's less alarmist and the operating range is wider. large

This is off topic, but after my holiday I'll report back... In the meantime, if you wish, can you study the use of the Dew Point?

igorsantos07 commented 6 days ago

~Sorry to... drop... from absolutely nowhere, but isn't "dew point" simply the index at which plants would show... dew? Like air water condensing on the leaves, or on a car?~ ~This ísn't much related to what humans few.~

Edit: it looks like Canadian humidex is based on dew point, similar to the USA's Heat Index which is based on RH, and dew point is then indeed somewhat related to human comfort:

https://en.wikipedia.org/wiki/Dew_point#Relationship_to_human_comfort