You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug: Powershell Sensor output differs from expected result #152
There's a list of open bugs & features on the right. On the left you can see what's being worked on, what's planned and what's ready for the next release.
If you're not sure, don't worry, just go ahead and we'll discuss :)
Describe the bug
A clear and concise description of what the bug is.
With a powershell sensor that only outputs true or false, one would expect that HomeAssistant also only receives a true or false. However, the event listeren detects it as 'True\r\n' and 'False\r\n'
To Reproduce
Steps to reproduce the behavior:
Have a script with a true or false output.
make sure that sensor reports True or False (based in the desired sensor actions.)
In HA go to events.
listen for a state_stanged event
force the powershell sensor to change states to see the output in the event listener
see the old_state and new_state as 'True\r\n' and 'False\r\n' instead of regularly True and False
Expected behavior
The state of the sensor would be what hass.agent reports, just true or false
Screenshots
Misc info (please complete the following information):
Windows build (ideally screenshot/info of winver.exe output):
Additional context
Add any other context about the problem here.
Logs
If possible, please provide the logs of HASS.Agent and - if applicable - the Satellite Service. You can find HASS.Agent's logs by going to the main window, then Configuration -> Logging -> open logs folder. The Satellite Service's logs are in the same window, but the Satellite Service tab -> open service logs folder. If you want, you can mail them to lab02research@outlook.com
Activity
LAB02-Admin commentedon Oct 27, 2022
Should be fixed in latest release