Giter Site home page Giter Site logo

Comments (7)

pkissling avatar pkissling commented on May 27, 2024

clock-weather-card will calculate and display the temperatures based on the unit you select in your HA instance.
image

from clock-weather-card.

BennyDaBee avatar BennyDaBee commented on May 27, 2024

I do have it set to F in my system settings.
image

from clock-weather-card.

pkissling avatar pkissling commented on May 27, 2024

ah, i see. the temperatures are converted to C, but still show as F in the card. i'll have a look

from clock-weather-card.

MackmeWill avatar MackmeWill commented on May 27, 2024

I had the same problem but the other way around.

Outside temperature sensor reporting as C (even in the state it was C, home settings C as well)

When using this sensor, clock weather card would convert it to F. Tried another temperature sensor and clock weather card would report it as C..... weird.

Solution:

Created a sensor only for clock weather card in sensor.yaml that converted the sensor degrees C (as if it was F) back to C and it worked. I had to fiddle with the computations but I eventually got it displaying correctly.

see below:

  • platform: template
    sensors:
    es_vin_temp:
    friendly_name: " Outside Temp for Clock Card "
    value_template: "{{ states('sensor.your_Temperature_sensor') | float * 9/5 + 32 | round(1) }}"
    unit_of_measurement: "C"

from clock-weather-card.

pkissling avatar pkissling commented on May 27, 2024

what weather service are you using? i tried to reproduce the problem, but every weather provider i am using delivers temperatures in °C - ever for National Weather Service

from clock-weather-card.

MackmeWill avatar MackmeWill commented on May 27, 2024

Hi,

I am using a Ruuvi sensor which is connected to a Cerbo GX via Bluetooth. The cerbo is connected to Home assistant via MQTT.

If I use this sensor as a guage or entity or I check the entity state it reports the correct value but if I use it with clock card we have a problem.

If I use another temperature sensor in clock card (like you) then I do not have this problem.

cheers

from clock-weather-card.

pkissling avatar pkissling commented on May 27, 2024

@MackmeWill can you please post the state of your sensor (Developer tools, like the state below) , so that i try to reproduce it with the delivered by your sensor.

state_class: measurement
time: 2024-05-13T10:34:51.630Z
setting: 0
unit_of_measurement: °C
device_class: temperature
friendly_name: -

@BennyDaBee, what weather provider are you using?

from clock-weather-card.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.