ironsheep / RPi-Reporter-MQTT2HA-Daemon

Linux service to collect and transfer Raspberry Pi data via MQTT to Home Assistant (for RPi Monitoring)
GNU General Public License v3.0
442 stars 62 forks source link

Change temperature from F to C #70

Closed kvlq closed 1 year ago

kvlq commented 1 year ago

I just set it and everything work just fine, except one thing: temperature is shown in Fahrenheit. I'm using Lovelace RPi Monitor Card How can i change it to be displayed in Celsius? I searched in every single file but haven't found anything related.

bsimmo commented 1 year ago

Just set what, how can this be a bug already?

Mine just show as C, I thought Homeassistant sorted the conversions out now (will check) So check you locality etc .

bsimmo commented 1 year ago

Just checked in HA. Goto homeassistant. Update it if needed. Check you locality, set your location etc.(settings, system, general) and then you can pick the default temp unit.

If that is not working, click on the reading in the monitor card, click settings and select you unit there.

By default this deamon reports in C (it says so in the Readme table) , so it must be you HA settings.

jandamf commented 1 year ago

The YAML configuration for the RPi Monitor Card shows the following configurable item that can be added:

NAME | TYPE | DEFAULT | DESCRIPTION temp_scale | string | 'C' or 'F' | Show Temperature in Celsius (C) or Fahrenheit (F). (Default is C)

See https://github.com/ironsheep/lovelace-rpi-monitor-card

ironsheep commented 1 year ago

That is correct. The card supports the configuration of F or C.

Look for temp_scale setting in https://github.com/ironsheep/lovelace-rpi-monitor-card#configuration