Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong temperature shown for area #6

Open
chawkinsuf opened this issue Mar 16, 2025 · 4 comments
Open

Wrong temperature shown for area #6

chawkinsuf opened this issue Mar 16, 2025 · 4 comments

Comments

@chawkinsuf
Copy link

My light switches have internal temperature sensors and when I use this card one of those temperatures is used instead of the temperature of the sensor I have in the room. We probably need to be able to configure which sensor is being displayed, or possible the information can be obtained some other way as the default Area Card does not have this issue.

@xBourner
Copy link
Owner

No you're wrong with this. My card uses the same code as the default area card. Both look for every temperature sensor no matter if it's from a light a climate sensor or a sensor just for temperature. The card uses all available sources and takes the average of alle these sensors. So it does not show the temp of just one but the average of all available sources.

If you want to only show the correct temp you need to hide all other sources from the popup view.

@chawkinsuf
Copy link
Author

I only have my light switches and my fan switch enabled in the popup. I want to be able to control the switches in the popup, so I don't want to hide the whole switch. The temperature these show is the internal switch temperature and not the room temperature.

Image

When using the default card, I did not have to configure anything and it does not include any of the internal temperatures.

Image

@xBourner
Copy link
Owner

I think you didn’t understand my last comment correct. When you tap the icon of the area this will show the popup. There should be plenty of entities. In the sensors section there would be an entity of the internal temp sensor of your switch. You only need to disable this one.

The card will take every temp sensor which is available and makes an average. This is the way it should fit every user because disabling en entity is much easier than adding an entity and make the correct calculations.

I still don’t know why there are why the default card shows different values than my card because I used the same code. I will check this again but I think you still would need to exclude the unwanted temp sensor.

@xBourner
Copy link
Owner

so i looked into the code and i saw some differences. i still dont know why the value is different between my card and the default one.
but in the next release there will be an option that only shows the correct temp and humidity value that you choose in the area options.

Image

if theres nothing specified it will still use all available temp sensors that are available

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants