litinoveweedle / SmartIR

⏻ Control Home Assistant climate, media and fan devices via IR/RF controllers (Broadlink, Xiaomi, MQTT, LOOKin, ESPHome)
MIT License
45 stars 12 forks source link

Device data file is missing 'temperatureUnit' key, using 'C' as default. #41

Closed zslibra closed 1 week ago

zslibra commented 1 week ago

Hello, I installed smartir and seems to be working fine, but the logging has the following warning message Device data file is missing 'temperatureUnit' key, using 'C' as default. May I know how to fix it? Thanks.

Home Assistant version 2024.6.4

SmartIR version 1.17.16

climate:

homeassistant log warning: 2024-06-22 15:08:48.839 WARNING (MainThread) [custom_components.smartir.climate] Device data file is missing 'temperatureUnit' key, using 'C' as default. 2024-06-22 15:08:48.841 WARNING (MainThread) [custom_components.smartir.climate] Device data file is missing 'temperatureUnit' key, using 'C' as default.

litinoveweedle commented 1 week ago

Hello, the message means what the message says. Consult default device files to see what you need to add ('temperatureUnit'). I have task to document structure of the device files, but hadn't had time to do it yet.

zslibra commented 1 week ago

Thanks for your quick response. Added temperatureUnit to my custom_codes then restart HA。 The warning message disappeared. Thank you very much!