Skip to content

Bug: PowershellSensor as Satellite Service - error_during_execution #343

@Skons

Description

@Skons

Describe the bug
Powershell sensor does not work as satellite service. It works when Test Command/Script is executed, and it works as a hass.agent sensor.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Satellite Service
  2. Click on Sensors
  3. Click on Add New
  4. Select PowerShellSensor
  5. Add this as command $(get-date).ToUniversalTime().ToString('yyyy-MM-ddTHH:mm:ss')
  6. Click Store Sensor
  7. Click Send & Active Sensors

Expected behavior
The date as state in Home Assistant

Screenshots
image
image

Misc info (please complete the following information):

  • Windows build (ideally screenshot/info of winver.exe output): Win10 22H2
  • Windows' UI language: EN
  • HASS.Agent version: 2022.14.0

Please check what's applicable (multiple answers possible):

  • Installed via installer
  • Installed manually
  • Problem occurs in HASS.Agent
  • Problem occurs in Satellite Service

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions