auchter / haaska

Home Assistant Alexa Skill Adapter
263 stars 61 forks source link

GetTemperatureReadingRequest in metric units announces repeating decimal digits #54

Open keatontaylor opened 7 years ago

keatontaylor commented 7 years ago

When units are set to metric in the alexa config and a temperature in celsius has a repeating decimal Alexa will announce the repeating decimal up to 10 decimal places. The response should be rounded.

What I also find odd is that rounding is done automatically for temperature responses in fahrenheit, but for fahrenheit it is rounded to an integer value. (Alexa seems to be doing this on its own, not haaska)

keatontaylor commented 7 years ago

I've also posted here: https://forums.developer.amazon.com/questions/73543/gettemperaturereadingrequest-rounding-issues-and-i.html

The way that temperature is handled seems to be inconsistent, so hopefully amazon will fix it.

trisk commented 7 years ago

We obviously have no control over the formatting of the spoken messages. It is possible to implement a workaround by forcing some rounding for temperature values, though that would reduce precision in a way that is particularly noticeable for unit conversions.