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

Bug: Wrong characters with PowershellSensors #201

Closed
icegothic opened this issue Oct 29, 2022 · 5 comments
Closed

Bug: Wrong characters with PowershellSensors #201

icegothic opened this issue Oct 29, 2022 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@icegothic
Copy link

Hi,

I made a powershell script to get my CPU core's temperature. It returns something like "38.4°C" but when I execute it via HASS Agent's sensor configuration, the returned value looks like "38.4øC". Sadly that's also what appears on my HomeAssistant dashboard.

I tried on 2 computers even checked many other chars and many seems to have an issue... Is it an UTF8 issue?

powershell_HomQCNXHC0

OS: WIndows 11
HASS Agent: 2022.13.0
OS display in english but input in french

@LAB02-Admin
Copy link
Member

Could be, I'll look into it, thanks for reporting: [hassagent-164]

@LAB02-Admin LAB02-Admin self-assigned this Nov 1, 2022
@LAB02-Admin LAB02-Admin added the bug Something isn't working label Nov 1, 2022
@LAB02-Admin
Copy link
Member

Think I fixed this, is it possible to give me the powershell script so I can make sure?

@icegothic
Copy link
Author

Great :-) This script is custom made but just create one with this code and you should have the same result:

Write-Host "38.4°C"

@LAB02-Admin
Copy link
Member

Should be fixed in the latest beta if you want to test:
https://github.com/LAB02-Research/HASS.Agent/releases/tag/2022.14.0-beta1

@LAB02-Admin
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants