Announcement

Collapse
No announcement yet.

HS4 Script works but throws error in log

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    HS4 Script works but throws error in log

    I am running HS4 Standard 4.2.5.0 on Ubuntu 20.04.3 LTS (Focal) with Mono 6.12.0.122
    I have two HVAC units that run a common duct into the same space. The thermostats for each unit are in different parts of the room. So, to give each unit "equal" run time I set up an event to swap the cooling setpoints between the two thermostats. The thermostat setpoints are two degrees apart. This event runs every two hours.

    The script runs fine and updates the setpoints like I want. But, I do not know why I am getting these errors in the log.

    Code:
    -----------------------------------------------------
    Event Name: HVAC Kitchen Setpoint Swap
    Event Group: HVAC
    Event Enabled: True
    Event Type:
    Event Voice Command:
    Event ID: 66
    Event Group ID: 1522242063
    Event Last Ran: 11/18/2021 10:03:29 AM
    Event Elaspsed: 0d 0h 25m 21s
    Event User Notes:
    
    Event Triggers & Conditions:
    IF The event will automatically trigger every 2h, 0m, 0s
    THEN Execute the command: &hs.SetDeviceValueByRef(861, hs.DeviceValueEx(853), True) and only allow one instance of the script to run at a time.
    THEN Execute the command: &hs.SetDeviceValueByRef(859, hs.DeviceValueEx(153), True) and only allow one instance of the script to run at a time.
    THEN Execute the command: &hs.SetDeviceValueByRef(853, hs.DeviceValueEx(859), True) and only allow one instance of the script to run at a time.
    THEN Execute the command: &hs.SetDeviceValueByRef(153, hs.DeviceValueEx(861), True) and only allow one instance of the script to run at a time.
    Event Options:
    Priority Event: False
    Security (Randomize Time Triggers): False
    Include in Powerfailure Recovery: False
    Remove This Event After Triggering: False
    Include As Voice Command: False
    Do Not Log This Event: False
    Cannot Re-Run for: 0 Days 0 Hours 0 Minutes 0 Seconds
    -----------------------------------------------------
    Code:
     [LEFT][FONT=B612 Mono][COLOR=#FF0000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     H[/SIZE][/FONT][/COLOR][/FONT][COLOR=#FF0000][FONT=B612 Mono]omeSeer     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Error 1     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Running script /tmp/K4.vb :Exception has been thrown by the target of an invocation.[/FONT][/COLOR][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][FONT=B612 Mono]HomeSeer     [/FONT][FONT=B612 Mono]Event       [/FONT][FONT=B612 Mono]Running script statement immediately (HVAC Hall Cooling Setpoint Swap): &hs.SetDeviceValueByRef(169, hs.DeviceValueEx(827), True)[/FONT][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#FF0000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][COLOR=#FF0000][FONT=B612 Mono]HomeSeer     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Error 1     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Running script /tmp/K3.vb :Exception has been thrown by the target of an invocation.[/FONT][/COLOR][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][FONT=B612 Mono]HomeSeer     [/FONT][FONT=B612 Mono]Event       [/FONT][FONT=B612 Mono]Running script statement immediately (HVAC Hall Cooling Setpoint Swap): &hs.SetDeviceValueByRef(185, hs.DeviceValueEx(829), True)[/FONT][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#FF0000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][COLOR=#FF0000][FONT=B612 Mono]HomeSeer     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Error 1     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Running script /tmp/K2.vb :Exception has been thrown by the target of an invocation.[/FONT][/COLOR][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][FONT=B612 Mono]HomeSeer     [/FONT][FONT=B612 Mono]Event       [/FONT][FONT=B612 Mono]Running script statement immediately (HVAC Hall Cooling Setpoint Swap): &hs.SetDeviceValueByRef(829, hs.DeviceValueEx(169), True)[/FONT][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#FF0000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][COLOR=#FF0000][FONT=B612 Mono]HomeSeer     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Error 1     [/FONT][/COLOR][COLOR=#FF0000][FONT=B612 Mono]Running script /tmp/K1.vb :Exception has been thrown by the target of an invocation.[/FONT][/COLOR][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][FONT=B612 Mono]HomeSeer     [/FONT][FONT=B612 Mono]Event       [/FONT][FONT=B612 Mono]Running script statement immediately (HVAC Hall Cooling Setpoint Swap): &hs.SetDeviceValueByRef(827, hs.DeviceValueEx(185), True)[/FONT][/LEFT]
     
    [LEFT][FONT=B612 Mono][COLOR=#000000][FONT=Roboto][SIZE=16px]11/18/2021 10:09:10 AM     [/SIZE][/FONT][/COLOR][/FONT][FONT=B612 Mono]HomeSeer     [/FONT][FONT=B612 Mono]Event       [/FONT][FONT=B612 Mono]Event Trigger "HVAC HVAC Hall Cooling Setpoint Swap"[/FONT][/LEFT]
Working...
X