Skip to content

Bug: Wrong characters with PowershellSensors #201

Closed

Description

@icegothic

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

Activity

  1. LAB02-Admin commented on Nov 1, 2022

    @LAB02-Admin
    Member

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

  2. self-assigned this
    on Nov 1, 2022
  3. LAB02-Admin commented on Nov 1, 2022

    @LAB02-Admin
    Member

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

  4. icegothic commented on Nov 1, 2022

    @icegothic
    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"

  5. LAB02-Admin commented on Nov 9, 2022

    @LAB02-Admin
    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

  6. LAB02-Admin commented on Nov 12, 2022

    @LAB02-Admin
    Member
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions