u236 А при формировании сообщения в телеграм это сделать можно? Там вроде есть матемтические выражения для встроенных шаблонов.
Что-то типо этого, но это не работает:
Макс. ветер: [[ round({{ property | custom/weatherapiforecast | maxWindKph }} * 10) / 10 ]] м/с
В конфиге кастом устройства округление работает, там отображается с округлением до десятых
Получилось. Так работает:
Погода от HOMEd {{ timestamp | dd.MM.yy hh:mm }}
---- Сейчас -----
Последнее обновление: {{ property | custom/weatherapiforecast | lastUpdated }}
Местоположение: {{ property | custom/weatherapiforecast | locationName }} | {{ property | custom/weatherapiforecast | locationRegion }}
Состояние: {{ property | custom/weatherapiforecast | condition }}
Температура: {{ property | custom/weatherapiforecast | temperature }} °C
Ощущается как: {{ property | custom/weatherapiforecast | feelsLike }} °C
Точка росы: {{ property | custom/weatherapiforecast | dewPoint }} °C
Влажность: {{ property | custom/weatherapiforecast | humidity }} %
Давление: [[ round({{ property | custom/weatherapiforecast | pressure }} * 10) / 10 ]] мм р.ст.
Скорость ветра: [[ round({{ property | custom/weatherapiforecast | windSpeed }} * 10) / 10 ]] м/с
Направление ветра: {{ property | custom/weatherapiforecast | windDirection }}
Осадки: {{ property | custom/weatherapiforecast | precipitation }} мм
УФ-индекс: {{ property | custom/weatherapiforecast | uvIndex }}
--- Астро ----
🌞 ↑{{ property | custom/weatherapiforecast | sunrise }} ↓{{ property | custom/weatherapiforecast | sunset }}
🌜 ↑{{ property | custom/weatherapiforecast | moonrise }} ↓{{ property | custom/weatherapiforecast | moonset }} Фаза: {{ property | custom/weatherapiforecast | moonPhase }}
-- Прогноз --
Состояние: {{ property | custom/weatherapiforecast | conditionForecast }}
Температура: мин {{ property | custom/weatherapiforecast | minTempc }} °C, макс {{ property | custom/weatherapiforecast | maxTempc }} °C
Макс. ветер: [[ round({{ property | custom/weatherapiforecast | maxWindKph }} * 10) / 10 ]] м/с