Search Results for

    Show / Hide Table of Contents

    Enum EHsSystemEvent

    • C#
    • Visual Basic
    public enum EHsSystemEvent
    Public Enum EHsSystemEvent
    Namespace: HomeSeer.PluginSdk.Systems
    Assembly: PluginSdk.dll


    Types of system events.


    Remarks

    System events represent changes in the system that plugins can react to. They are not the same thing as Events configured by users.

    This replaces Constants.HSEvent

    Fields

    Name Description
    Audio

    When audio is started or stopped, this event is fired. This includes playing an audio file or speaking TTS Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of Audio
    1 A System.Boolean representing whether audio has started or stopped. langword_csharp_True means audio has started, and false means audio has stopped.
    2The audio device number as an System.Int32 or 0 if not using Windows PC audio.
    3The speaker host name as a System.String if audio is being sent to a client.
    4The speaker host instance as a System.String if audio is being sent to a client.
    CallerId

    Deprecated, no longer supported

    ConfigChange

    When a change is made to the configuration of the system, such as Setup, this event is fired. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of ConfigChange
    1The target of the config change event as defined by EConfigChangeTarget and represented as an System.Int32
    2UNUSED - always 0
    3Target unique reference number as an System.Int32
    4The type of change happening as defined by EConfigChangeAction and represented by an System.Int32
    5A description of what changed as a System.String
    DeleteDevice

    A device has been deleted

    Generic

    If a generic event is registered, this event is fired when the event is triggered. The event is typically triggered by a plugin. Parameter 0 is EHsSystemEvent.Generic. The remaining parameters are defined by the event that is registered.

    Log

    When the event log is written, this event is fired. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of Log
    1The date and time of the log entry as a System.String
    2The type of the log entry as a System.String
    3The content of the log entry as a System.String
    4The color of the log entry as a System.String formatted in HTML color format
    5DEPRECATED
    6The source of the log entry as a System.String
    7The error code associated with the log entry as a System.Int32
    8The date and time of the log entry as a System.DateTime
    SetupChange

    When an item in setup is changed, this event is fired. The parameters note the settings.ini file values that are set. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of SetupChange
    1The INI section as a System.String
    2The INI key as a System.String
    3The new INI value as a System.String
    P(0) = EHsSystemEvent.SetupChange P(1) = INI section P(2) = INI key P(3) = INI value
    SpeakerConnect

    When a new speaker client connects to the system, this event is fired. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of SpeakerConnect
    1The name of the speaker host as a System.String
    2The instance of the speaker host as a System.String
    3 An System.Int32 representing what the speaker host is doing. 1 means the host is connecting. 2 means it is disconnecting.
    4The IP address of the speaker host as a System.String
    StringChange

    When the string value of a device is changed, this event is fired. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of StringChange
    1The Address of the device that has changed
    2The new value as a System.String
    3The Ref of the device that has changed
    ValueChange

    When the value of a device changes, this event is fired. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of ValueChange
    1The Address of the device that has changed
    2The new value as a System.Double
    3The old value as a System.Double
    4The Ref of the device that has changed
    ValueSet

    When a device has it's value set, this event is fired. This will fire even if the device is being set to the same value. Parameters are:

    Parameter indexContent
    0The event type as an System.Int32 with a value of ValueSet
    1The Address of the device that has been set
    2The new value as a System.Double
    3The old value as a System.Double
    4The Ref of the device that has been set
    P(0) = EHsSystemEvent.ValueSet P(1) = HSAddress of device that changed P(2) = New value being set (double) P(3) = Previous value (double) P(4) = Device reference number
    ValueStringChangeRunScript

    If a script includes a callback script, this event is fired before the script is run. Note that this event does not include event ID in P(0). Parameters are:

    Parameter indexContent
    0The Code of the device that has been changed
    1The Address of the device that has been changed
    2The new value as a System.Double
    3The old value as a System.Double
    4The Ref of the device that has been changed
    P(0) = Device HSCode P(1) = Device HSAddress P(2) = New device value being set (double) P(3) = Previous device value (double) P(4) = Device reference number
    VoiceRec

    Deprecated, no longer supported

    • View Source
    In This Article
    Back to top HomeSeer Technologies