### GetProgramGuide Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Channel_Cluster.md Retrieves the program guide with optional filter parameters. Returns a ProgramGuideResponse. Standard error codes are used for invalid arguments. ```APIDOC ## GetProgramGuide Command ### Description Retrieves the program guide. Accepts several filter parameters to return specific schedule and program information from a content app. The command shall receive in response a ProgramGuideResponse. Standard error codes SHALL be used when arguments provided are not valid. For example, if StartTime is greater than EndTime, the status code INVALID_ACTION SHALL be returned. ### Command GetProgramGuide ### Fields - **StartTime** (epoch-s) - Required - Start time for the program guide query. - **EndTime** (epoch-s) - Required - End time for the program guide query. - **ChannelList** (list[ChannelInfoStruct]) - Optional - List of channels to filter the program guide. Maximum 255 entries. Default is empty. - **PageToken** (PageTokenStruct) - Optional - Token for pagination. This field is disallowed (Quality X) and should not be implemented. - **RecordingFlag** (RecordingFlagBitmap) - Optional - Flag for recording. This field is disallowed (Quality X) and should not be implemented. ``` -------------------------------- ### GetSetupPINResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Account_Login_Cluster.md This message is sent in response to the GetSetupPIN command. It contains the Setup PIN code, or null when the account identified in the request does not match the active account of the running Content App. ```APIDOC ## GetSetupPINResponse Command ### Description Sent in response to the GetSetupPIN command. Contains the Setup PIN code, or null when the account identified in the request does not match the active account of the running Content App. ### Method Command ### Endpoint Account Login Cluster - GetSetupPINResponse ### Response #### Success Response - **SetupPIN** (string or null) - The Setup PIN code for PASE with the Commissionee, or null if the account does not match. ``` -------------------------------- ### Install SimuHome with pip Source: https://github.com/holi-lab/simuhome/blob/main/README.md Install the SimuHome package using pip. Requires Python 3.13 or later. ```bash pip install simuhome ``` -------------------------------- ### Configure eval_spec.example.yaml for benchmark run Source: https://github.com/holi-lab/simuhome/blob/main/README.md YAML configuration for a SimuHome evaluation run. Sets the run id, output root, episode directory and filter (qt1, feasible, seeds 1-3 and 5), the ReAct strategy with a 60-second timeout, temperature 0.0, and 20 max steps, plus orchestration with 2 workers and a 30-second simulator start timeout. ```yaml schema: simuhome-eval-spec-v1 run: id: example_qt1_seed_1_3_5 output_root: experiments episode: dir: data/benchmark qt: qt1 case: feasible seed: "1 - 3, 5" strategy: name: react timeout: 60 temperature: 0.0 max_steps: 20 orchestration: max_workers: 2 simulator_start_timeout: 30 ``` -------------------------------- ### GetSetupPIN Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Account_Login_Cluster.md The GetSetupPIN command checks if the active user account of the Content App matches the active user account of a given Commissionee. If they match, it returns a Setup PIN code for password-authenticated session establishment (PASE). ```APIDOC ## GetSetupPIN Command ### Description Determines if the active user account of the given Content App matches the active user account of a given Commissionee. If they match, returns a Setup PIN code for password-authenticated session establishment (PASE). ### Method Command ### Endpoint Account Login Cluster - GetSetupPIN ### Parameters #### Request Body - **TempAccountIdentifier** (string) - Required - The client's Temporary Account Identifier. Length must be between 16 and 100 characters. This field SHALL specify the client's Temporary Account Identifier. The length SHALL be at least 16 characters to protect against password guessing attacks. ### Response #### Success Response - **SetupPIN** (string) - The Setup PIN code for PASE with the Commissionee. It SHALL be populated with the Manual Pairing Code encoded as a string (11 characters) or the Passcode portion of the Manual Pairing Code (when less than 11 characters). ### Notes - The server SHALL implement rate limiting: no more than 10 unique requests in a 10 minute period. Additional commands within that period SHALL receive a FAILURE status. - The Temporary Account Identifier SHALL not be valid for more than 10 minutes. - The account match is determined by the Content App using a method outside the scope of this specification. - The Temporary Account Identifier may be populated with the Rotating ID field of the client's commissionable node advertisement, encoded as an octet string with 2-digit hexadecimal representations using uppercase letters. ``` -------------------------------- ### FastForward Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Media_Playback_Cluster.md Starts playback in the forward direction or increases the speed of forward playback. Returns NOT_ALLOWED if speed cannot be changed, or SPEED_OUT_OF_RANGE if maximum speed is reached. ```APIDOC ## FastForward Command ### Description Starts playback of the media in the forward direction if it is not already playing forward, or increases the speed of forward playback. If the playback speed cannot be changed (e.g., live streaming content not supporting seek), the status NOT_ALLOWED is returned. If the maximum supported forward speed is reached, the status SPEED_OUT_OF_RANGE is returned. ### Method Command ### Endpoint FastForward ### Parameters None ### Response #### Success Response - **PlaybackSpeed** (attribute) - Updated to reflect the new speed of playback, if supported. #### Error Responses - **NOT_ALLOWED** - Returned if the playback speed cannot be changed for the media being played. - **SPEED_OUT_OF_RANGE** - Returned if the playback speed has reached the maximum supported speed for media playing forward. ``` -------------------------------- ### StartTimeAdjustRequest Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Device_Energy_Management_Cluster.md Allows a client to adjust the start time of a Forecast sequence that has not yet started operation (i.e. where the current Forecast StartTime is in the future). ```APIDOC ## StartTimeAdjustRequest Command ### Description Allows a client to adjust the start time of a Forecast sequence that has not yet started operation (i.e. where the current Forecast StartTime is in the future). ``` -------------------------------- ### Identify Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Identify_Cluster.md Starts or stops the receiving device identifying itself. This command is mandatory and requires a response. ```APIDOC ## Identify Command ### Description Starts or stops the receiving device identifying itself. ### Command ID 0x00 ### Direction Client to Server ### Response Required ### Access Mandatory (M) ### Conformance Mandatory (M) ### Data Fields - **IdentifyTime** (uint16) - Mandatory - The duration in seconds for the identification to last. A value of 0 stops identification. ``` -------------------------------- ### Configure gen_spec.example.yaml Source: https://github.com/holi-lab/simuhome/blob/main/README.md YAML configuration for episode generation. Defines run metadata, episode parameters (question type, case, seed, base date), home layout (room count, devices per room, environment ranges), and LLM settings (model gpt-5-mini, api_base https://openrouter.ai/api/v1). ```yaml schema: simuhome-gen-spec-v1 run: id: gen_example_qt1_seed_1_3_5 output_root: experiments episode: qt: qt1 case: feasible seed: "1-3,5" base_date: "2025-08-23" home: room_count: 5 devices_per_room: min: 4 max: 7 environment: temperature_c: # Temperature in Celsius (allowed: 18.0-36.0) min: 22 max: 32 humidity_pct: # Humidity in percent (allowed: 15.0-85.0) min: 35 max: 65 illuminance_lux: # Illuminance in lux (allowed: 10.0-3000.0) min: 100 max: 1500 pm10_ugm3: # PM10 in ug/m3 (allowed: 5.0-120.0) min: 20 max: 100 llm: model: gpt-5-mini api_base: https://openrouter.ai/api/v1 ``` -------------------------------- ### Run SimuHome CLI Source: https://github.com/holi-lab/simuhome/blob/main/README.md Launch the SimuHome simulator from the command line. The exact command is shown in the README; no additional flags or arguments are documented on this page. ```bash simuhome ``` -------------------------------- ### LaunchContent Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md Launches specified content with optional search criteria. This command is sent from the client to the server and returns a LauncherResponse. ```APIDOC ## LaunchContent Command ### Description Launches the specified content with optional search criteria. Upon receipt, the server SHALL launch the content and return a LauncherResponse. ### Direction Client → Server ### Conformance CS (Mandatory if the CS feature is supported; otherwise optional) ### Response LauncherResponse ### Parameters - **Search** (ContentSearchStruct) - Optional - Search criteria for the content to launch. - **AutoPlay** (boolean) - Mandatory - Indicates whether the content should automatically start playing. - **Data** (string) - Optional - Additional data associated with the launch. - **PlaybackPreferences** (PlaybackPreferencesStruct) - Optional - Preferences for playback behavior. ### Response Example { "status": "success" } ``` -------------------------------- ### LaunchURL Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md Launches content from a specified URL. This command is sent from the client to the server and returns a LauncherResponse. ```APIDOC ## LaunchURL Command ### Description Launches content from a specified URL. This command is sent from the client to the server and returns a LauncherResponse. ### Direction Client → Server ### Conformance UP (Provisional, expected to become mandatory in future versions) ### Response LauncherResponse ### Parameters - **URL** (string) - Required - The URL of the content to launch. ### Response Example { "status": "success" } ``` -------------------------------- ### LaunchApp Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Application_Launcher_Cluster.md Launches an application with optional data. The server SHALL launch the specified application or the application corresponding to the endpoint, and bring it to the foreground. Returns a LauncherResponse. ```APIDOC ## LaunchApp Command ### Description Upon receipt of this command, the server SHALL launch the application with optional data. The application SHALL be either the specified application (if the Application Platform feature is supported) or the application corresponding to the endpoint. The endpoint SHALL launch and bring to foreground the requisite application if not already launched and in foreground. The Status attribute SHALL be updated to ActiveVisibleFocus on the Application Basic cluster of the Endpoint corresponding to the launched application. The Status attribute SHALL be updated on any other application whose Status MAY have changed as a result of this command. The CurrentApp attribute, if supported, SHALL be updated to reflect the new application in the foreground. This command returns a LauncherResponse. ### Direction Client → Server ### Response LauncherResponse ### Access Level Optional (O) ### Conformance Mandatory (M) ### Parameters #### Request Body - **Application** (ApplicationStruct) - Required (Conformance: AP) - The application to launch. - **Data** (octstr) - Optional (Conformance: O) - Optional data to pass to the application. ``` -------------------------------- ### LaunchURL Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md The LaunchURL command is used to launch content by URL. It includes fields for the content URL, display string, branding information, and playback preferences. ```APIDOC ## LaunchURL Command ### Description Launches content at a given URL with optional display string, branding information, and playback preferences. ### Command LaunchURL ### Fields - **ContentURL** (string) - Required - The URL of the content to launch. Must follow https syntax as per RFC 1738. - **DisplayString** (string) - Optional - A string that may be used to describe the content being accessed at the given URL. - **BrandingInformation** (BrandingInformationStruct) - Optional - Branding information that may be displayed when playing back the given content. - **PlaybackPreferences** (PlaybackPreferencesStruct) - Optional - User's preferred Text/AudioTracks and playbackPosition for the media. If the server does not find an exact match, it may default to another track or use server-side preferences. If preferred tracks are not available, the server SHALL return TextTrackNotAvailable and/or AudioTrackNotAvailable Status(es) in the LauncherResponse. ### Response LauncherResponse command is generated in response to this command. ``` -------------------------------- ### LaunchContent Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md The LaunchContent command is used to launch content by URL. It includes fields for the content URL, display string, branding information, and playback preferences. ```APIDOC ## LaunchContent Command ### Description Launches content at a given URL with optional display string, branding information, and playback preferences. ### Command LaunchContent ### Fields - **ContentURL** (string) - Required - The URL of the content to launch. Must follow https syntax as per RFC 1738. - **DisplayString** (string) - Optional - A string that may be used to describe the content being accessed at the given URL. - **BrandingInformation** (BrandingInformationStruct) - Optional - Branding information that may be displayed when playing back the given content. - **PlaybackPreferences** (PlaybackPreferencesStruct) - Optional - User's preferred Text/AudioTracks and playbackPosition for the media. If the server does not find an exact match, it may default to another track or use server-side preferences. If preferred tracks are not available, the server SHALL return TextTrackNotAvailable and/or AudioTrackNotAvailable Status(es) in the LauncherResponse. ### Response LauncherResponse command is generated in response to this command. ``` -------------------------------- ### LaunchURL Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md Launches content from a specified URL. The URL must be secure (HTTPS). Returns a Launch Response. ```APIDOC ## [POST] /launch-url ### Description Launches content from the specified URL. The content types supported include those identified in the AcceptHeader and SupportedStreamingProtocols attributes. The URL must be secure (HTTPS). When playing a video stream, an indication of the identity of the origin node must be provided. ### Method POST ### Endpoint /launch-url ### Parameters #### Request Body - **ContentURL** (string) - Required - The URL of the content to launch. - **DisplayString** (string) - Optional - A string to display. ### Request Example { "ContentURL": "https://example.com/video", "DisplayString": "Example Video" } ### Response #### Success Response (200) - **LaunchResponse** (object) - The response to the launch request. #### Response Example { "status": 0, "data": "" } ``` -------------------------------- ### LaunchApp Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Application_Launcher_Cluster.md Launches an application on the server. The application is specified by the Application field, and optional data can be provided. ```APIDOC ## LaunchApp Command ### Description Launches the specified application. The application is identified by the Application field, and optional app-specific data can be sent. ### Command LaunchApp ### Fields #### Application Field - **Application** (ApplicationStruct) - Required - Specifies the Application to launch. #### Data Field - **Data** (octstr) - Optional - Specifies optional app-specific data to be sent to the app. The format and meaning are proprietary and outside the specification. ### Response Returns a LauncherResponse command. ``` -------------------------------- ### StartDiagnostics Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Energy_EVSE_Cluster.md Allows a client to put the EVSE into a self-diagnostics mode. Only works if SupplyState is Disabled. ```APIDOC ## StartDiagnostics Command ### Description Allows a client to put the EVSE into a self-diagnostics mode. The EVSE enters Diagnostics state only if SupplyState is Disabled. ### Behavior - If SupplyState is not Disabled, command fails with status FAILURE. - On success, SupplyState set to DisabledDiagnostics, response status SUCCESS. - Upon completion of diagnostics, SupplyState restored to Disabled. ``` -------------------------------- ### Enable Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Turns on the Content Control feature on a media device. Upon receipt, the Enabled attribute is set to TRUE. ```APIDOC ## Enable Command ### Description Turns on the Content Control feature on a media device. Upon receipt, the Enabled attribute is set to TRUE. ### Command Enable ### Behavior Upon receipt, the media device SHALL set the Enabled attribute to TRUE. ``` -------------------------------- ### LauncherResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Application_Launcher_Cluster.md Response command sent from the server to the client. It does not expect a response and is mandatory. ```APIDOC ## LauncherResponse Command ### Description This command is sent from the server to the client as a response. It does not expect a response. It is mandatory according to the Matter specification. ### Direction Server → Client ### Response None ### Access Level Not specified ### Conformance Mandatory (M) ``` -------------------------------- ### LauncherResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Application_Launcher_Cluster.md Response command generated in response to LaunchApp, StopApp, or HideApp commands. Contains status and optional data. ```APIDOC ## LauncherResponse Command ### Description Generated in response to LaunchApp, StopApp, or HideApp commands. Indicates the status of the command and optional app-specific data. ### Command LauncherResponse ### Fields #### Status Field - **Status** (StatusEnum) - Required - Indicates the status of the command which resulted in this response. #### Data Field - **Data** (octstr) - Optional - Specifies optional app-specific data. ``` -------------------------------- ### SetBlockContentTimeWindow Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Sets a block content time window. This command is mandatory if the 'BTW' feature is supported. ```APIDOC ## SetBlockContentTimeWindow Command ### Description Sets a block content time window. This command is directed from the client to the server and requires a response. ### Command SetBlockContentTimeWindow ### ID 0x0F ### Direction Client to Server ### Response Required (Y) ### Access Mandatory (M) ### Conformance BTW - Mandatory if the 'BTW' feature is supported. ``` -------------------------------- ### LauncherResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md The LauncherResponse command is generated in response to LaunchContent and LaunchURL commands. It includes a status field and optional app-specific data. ```APIDOC ## LauncherResponse Command ### Description Generated in response to LaunchContent and LaunchURL commands. Indicates the status of the command and optional app-specific data. ### Command LauncherResponse ### Fields - **Status** (StatusEnum) - Required - Indicates the status of the command which resulted in this response. - **Data** (string) - Optional - App-specific data. ``` -------------------------------- ### DisplayString Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md A command with ID '1' named 'DisplayString'. It is of type 'string' and is optional (conformance 'O'). ```APIDOC ## [POST] /display-string ### Description A command that specifies a string to display. This command is optional. ### Method POST ### Endpoint /display-string ### Parameters #### Request Body - **DisplayString** (string) - Required - The string to display. ### Request Example { "DisplayString": "Hello" } ### Response #### Success Response (200) - **Status** (string) - The result of the command. #### Response Example { "status": "Success" } ``` -------------------------------- ### StopApp Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Application_Launcher_Cluster.md Stops an application. This command is sent from the client to the server and expects a LauncherResponse. The access level is optional, but the conformance is mandatory. ```APIDOC ## StopApp Command ### Description Stops an application. This command is directed from the client to the server and expects a LauncherResponse in return. The access level is optional, but the conformance is mandatory, meaning it must be implemented in all devices that support the Application Launcher Cluster. ### Direction Client → Server ### Response LauncherResponse ### Access Level Optional (O) ### Conformance Mandatory (M) ``` -------------------------------- ### AddBonusTime Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Adds extra screen time for the user. Requires PIN verification for clients with Operate privilege; clients with Manage privilege can bypass PIN. ```APIDOC ## AddBonusTime Command ### Description Adds extra screen time for the user. Requires PIN verification for clients with Operate privilege; clients with Manage privilege can bypass PIN. ### Command AddBonusTime ### Parameters #### PINCode Field - **PINCode** (string) - Optional for Manage privilege, Mandatory for Operate privilege - The PIN to verify for Operate clients. #### BonusTime Field - **BonusTime** (elapsed-s) - Required - Amount of extra time in seconds to increase RemainingScreenTime. Must not exceed the remaining time of the day. ### Behavior - If a client with Operate privilege invokes this command, the media device SHALL check whether the PINCode matches the current PINCode value. If match, RemainingScreenTime is increased by BonusTime. If not, a response with InvalidPINCode error status is returned and no changes are made. - If a client with Manage privilege or greater invokes this command, the media device SHALL ignore the PINCode field and directly increase RemainingScreenTime by BonusTime. - A server that does not support the PM feature SHALL respond with InvalidPINCode to clients with Operate privilege unless the PIN is provided via out-of-band and matches. ``` -------------------------------- ### HideApp Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Application_Launcher_Cluster.md Hides an application. This command is sent from the client to the server and expects a LauncherResponse. The access level is optional, but the conformance is mandatory. ```APIDOC ## HideApp Command ### Description Hides an application. This command is directed from the client to the server and expects a LauncherResponse. The access level is optional, but the conformance is mandatory, meaning it must always be implemented in any device or application that supports this cluster. ### Direction Client → Server ### Response LauncherResponse ### Access Level Optional (O) ### Conformance Mandatory (M) ``` -------------------------------- ### SelectAreasResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Service_Area_Cluster.md This command is sent from the server to the client in response to the SelectAreas command. It does not require a response. ```APIDOC ## SelectAreasResponse Command ### Description This command is sent from the server to the client in response to the SelectAreas command. It does not require a response. ### Direction Server → Client ### Response None ### Access Optional ### Conformance Mandatory (M) ``` -------------------------------- ### SkipChannel Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Channel_Cluster.md Provides channel up and channel down functionality with a count of steps to jump. If the jump exceeds the channel list bounds, it wraps around. ```APIDOC ## SkipChannel Command ### Description Provides channel up and channel down functionality, allowing channel index jumps of size Count. If the increase or decrease is larger than the number of channels remaining in the given direction, the behavior is to return to the beginning (or end) of the channel list and continue. ### Command SkipChannel ### Fields - **Count** (int16) - Required - The number of steps to increase (positive) or decrease (negative) the current channel. ``` -------------------------------- ### GetPendingDatasetRequest Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Thread_Border_Router_Management_Cluster.md Requests the pending dataset of the Thread network to which the border router is connected. Must be executed via a CASE session; otherwise, it fails with UNSUPPORTED_ACCESS. On success, it generates a DatasetResponse command. ```APIDOC ## GetPendingDatasetRequest Command ### Description Requests the pending dataset of the Thread network to which the border router is connected. Must be executed via a CASE session; otherwise, it fails with UNSUPPORTED_ACCESS. On success, it generates a DatasetResponse command. ### Direction Client → Server ### Response DatasetResponse ### Access Mandatory (M) ### Conformance Mandatory (M) ### Error Handling - If not executed via a CASE session, the command SHALL fail with a status code of UNSUPPORTED_ACCESS. - If an internal error occurs, the command SHALL fail with a FAILURE status code sent back to the initiator. - Otherwise, this SHALL generate a DatasetResponse command. ``` -------------------------------- ### GetUser Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Door_Lock_Cluster.md Retrieves a user record from the Door Lock Cluster using the UserIndex parameter. ```APIDOC ## GetUser Command ### Description Retrieves a user record from the Door Lock Cluster. ### Method Command ### Endpoint Door Lock Cluster - GetUser ### Parameters #### Command Fields - **UserIndex** (uint16) - Required - Indicates the user ID. Must be between 1 and NumberOfTotalUsersSupported. ### Response #### Success Response Returns the user record associated with the given UserIndex. ### Status Codes - SUCCESS - INVALID_COMMAND ``` -------------------------------- ### ViewGroup Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Groups_Cluster.md Requests the server to respond with the name string for a particular group. ```APIDOC ## ViewGroup Command ### Description Requests the server to respond with the name string for a particular group. ### Fields - **GroupID** (group-id) - Required - Identifier for the group. ### Effect on Receipt 1. If command fields are not within constraints, status is CONSTRAINT_ERROR. 2. If server endpoint is a member of the group, status is SUCCESS. 3. Else status is NOT_FOUND. 4. If received as unicast, generate ViewGroupResponse with status. If groupcast, no response. ### Response - **ViewGroupResponse** - Contains Status field and group name string. ``` -------------------------------- ### TriggerEffect Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Identify_Cluster.md Allows the support of feedback to the user, such as a certain light effect. This command is optional and requires a response. ```APIDOC ## TriggerEffect Command ### Description Allows the support of feedback to the user, such as a certain light effect. It is used to allow an implementation to provide visual feedback to the user under certain circumstances such as a color light turning green when it has successfully connected to a network. ### Command ID 0x40 ### Direction Client to Server ### Response Required ### Access Mandatory (M) ### Conformance Optional (O) ### Data Fields - **EffectIdentifier** (EffectIdentifierEnum) - Mandatory - The effect to be triggered. - **EffectVariant** (EffectVariantEnum) - Mandatory - The variant of the effect. ``` -------------------------------- ### SetBlockContentTimeWindow Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Sets the BlockContentTimeWindow attribute. If the TimeWindowIndex is NULL, the device checks for an existing matching time window and either returns an error or assigns a new index. If the index is provided and exists, the original time window is replaced. ```APIDOC ## SetBlockContentTimeWindow Command ### Description Sets the BlockContentTimeWindow attribute. If the TimeWindowIndex field is NULL, the device checks for an existing entry matching the TimePeriod and DayOfWeek fields. If found, returns TimeWindowAlreadyExist error; otherwise assigns a unique index and adds the time window. If the TimeWindowIndex is not NULL and exists, replaces the original time window with the new one. ### Fields - **TimeWindow** (TimeWindowStruct) - Mandatory - Indicates the time window requested to set to the BlockContentTimeWindow attribute. ### Behavior - If TimeWindowIndex is NULL and a matching entry exists, return TimeWindowAlreadyExist error. - If TimeWindowIndex is NULL and no matching entry, assign a unique index and add to the list. - If TimeWindowIndex is not NULL and exists, replace the original time window. ### Conformance - Command is mandatory (M). ``` -------------------------------- ### SetTargets Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Energy_EVSE_Cluster.md Allows a client to set user specified charging targets. ```APIDOC ## SetTargets Command ### Description Allows a client to set user specified charging targets. ``` -------------------------------- ### SelectAreas Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Service_Area_Cluster.md This command is used to select a set of device areas where the device is to operate. On receipt, the device SHALL respond with a SelectAreasResponse command. ```APIDOC ## SelectAreas Command ### Description This command is used to select a set of device areas where the device is to operate. On receipt, the device SHALL respond with a SelectAreasResponse command. ### Direction Client → Server ### Response SelectAreasResponse ### Access Optional ### Conformance Mandatory (M) ### Data Fields - **NewAreas** (list[uint32]) - Required - List of unsigned 32-bit integers representing the areas to be selected. Constraints are described elsewhere in the documentation. ``` -------------------------------- ### AddBlockChannels Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Adds channels to the BlockChannelList attribute. Validates channels and returns errors for invalid or already existing channels. ```APIDOC ## AddBlockChannels Command ### Description Adds channels to the BlockChannelList attribute. Validates channels and returns errors for invalid or already existing channels. ### Method Command ### Endpoint AddBlockChannels ### Parameters #### Request Body - **Channels** (list[BlockChannelStruct]) - Required - List of channels to add. Each channel must be valid. ### Request Example ```json { "Channels": [ { "channelId": 1, "channelName": "Channel 1" } ] } ``` ### Response #### Success Response - **BlockChannelList** (list[BlockChannelStruct]) - Updated list of blocked channels. - **BlockChannelIndex** (list[integer]) - Unique index assigned to each added channel. #### Error Responses - **InvalidChannel** - Returned if any channel is invalid. - **ChannelAlreadyExist** - Returned if all channels already exist in the BlockChannelList. #### Response Example ```json { "BlockChannelList": [ { "channelId": 1, "channelName": "Channel 1" } ], "BlockChannelIndex": [0] } ``` ``` -------------------------------- ### PINCode Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Sets a new PIN for the Content Control feature. The PIN is a string with a maximum length of 6 characters and is mandatory. ```APIDOC ## PINCode Command ### Description Sets a new PIN for the Content Control feature. The PIN is a string with a maximum length of 6 characters and is mandatory. ### Command PINCode ### Parameters #### PINCode Field - **PINCode** (string) - Required - Maximum length 6 characters. Indicates the new PIN of the Content Control feature. ### Conformance Mandatory (M) ``` -------------------------------- ### RemoveBlockApplications Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Control_Cluster.md Removes block applications. This command is mandatory if the 'BA' feature is supported. ```APIDOC ## RemoveBlockApplications Command ### Description Removes block applications. This command is directed from the client to the server and requires a response. ### Command RemoveBlockApplications ### ID 0x0E ### Direction Client to Server ### Response Required (Y) ### Access Mandatory (M) ### Conformance BA - Mandatory if the 'BA' feature is supported. ``` -------------------------------- ### PlaybackResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Media_Playback_Cluster.md Generated in response to various Playback Commands. Contains the status of the command and optional app-specific data. ```APIDOC ## PlaybackResponse Command ### Description This command SHALL be generated in response to various Playback Commands. ### Fields - **Status** (StatusEnum) - Mandatory - Indicates the status of the command which resulted in this response. - **Data** (string) - Optional - Optional app-specific data. ``` -------------------------------- ### SkipForward Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Media_Playback_Cluster.md Skips forward in the media by the given number of milliseconds. The DeltaPositionMilliseconds field is mandatory and indicates the duration to skip. ```APIDOC ## SkipForward Command ### Description Skips forward in the media by the given number of milliseconds. The resulting position is set to the beginning of the frame if it falls in the middle of a frame, and the SampledPosition attribute is updated if supported. If the resultant position falls beyond the furthest valid position, the position is set to that furthest valid position. ### Method Command ### Endpoint SkipForward ### Parameters #### Request Body - **DeltaPositionMilliseconds** (uint64) - Required - The duration of the time span to skip forward in the media, in milliseconds. ### Response #### Success Response - **SampledPosition** (attribute) - Updated to reflect the new position, if supported. ``` -------------------------------- ### Door Lock Cluster Commands Table Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Door_Lock_Cluster.md Table of commands in the Door Lock Cluster, including Status, UserIndex, and NextCredentialIndex, with their IDs, types, constraints, and conformance. ```APIDOC ## Door Lock Cluster Commands Table ### Commands #### Status Command - **ID**: 0 - **Type**: status - **Constraint**: desc - **Conformance**: M (Mandatory) #### UserIndex Command - **ID**: 1 - **Type**: uint16 - **Constraint**: 1 to NumberOfTotalUsersSupported - **Quality**: X (Explicitly disallowed) - **Default**: 0 - **Conformance**: M (Mandatory) #### NextCredentialIndex Command - **ID**: 2 - **Type**: uint16 - **Constraint**: desc - **Quality**: X (Explicitly disallowed) - **Conformance**: O (Optional) ``` -------------------------------- ### SetCredentialResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Door_Lock_Cluster.md Returns the status for setting the specified credential. ```APIDOC ## SetCredentialResponse Command ### Description Returns the status for setting the specified credential. ### Method Command ### Endpoint Door Lock Cluster - SetCredentialResponse ### Parameters None explicitly documented. ### Response #### Success Response Returns the status for setting the specified credential. ``` -------------------------------- ### SetPendingDatasetRequest Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Thread_Border_Router_Management_Cluster.md Sets or updates the pending dataset of the Thread network on the Border Router. Requires a CASE session. Fails with UNSUPPORTED_ACCESS if not via CASE, and INVALID_COMMAND if parameters are invalid. ```APIDOC ## SetPendingDatasetRequest Command ### Description Sets or updates the pending dataset of the Thread network to which the Border Router is connected, if the Border Router supports PAN Change. The command must be executed via a CASE session. ### Method Command ### Endpoint SetPendingDatasetRequest ### Parameters #### Command Fields - **PendingDataset** (octstr) - Required - The pending dataset to set, as an octet string containing the raw Thread TLV value. Maximum size 254 bytes. ### Effect on Receipt - If not executed via CASE session, fails with UNSUPPORTED_ACCESS. - If any parameter in PendingDataset is invalid, fails with INVALID_COMMAND. - Otherwise, configures the pending dataset of the Thread network. The Border Router manages activation as defined in the Thread specification. ### Response #### Success Response No specific success response fields are defined in the source. #### Error Responses - **UNSUPPORTED_ACCESS** - Command not executed via CASE session. - **INVALID_COMMAND** - Invalid parameters in PendingDataset. ``` -------------------------------- ### ActivateAudioTrack Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Media_Playback_Cluster.md Sets the active Audio Track to the one identified by the TrackID in the Track catalog for the streaming media. ```APIDOC ## ActivateAudioTrack Command ### Description Upon receipt, the server SHALL set the active Audio Track to the one identified by the TrackID in the Track catalog for the streaming media. ### Fields - **TrackID** (string, max length 32) - Mandatory - The identifier of the audio track to activate. ### Error Handling - **INVALID_ARGUMENT** - Returned if the TrackID does not exist in the Track catalog, does not correspond to the streaming media, or no media is being streamed. ``` -------------------------------- ### ChangeChannel Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Channel_Cluster.md Changes the channel to the channel that case-insensitively matches the provided string. The match priority order is Identifier, AffiliateCallSign, CallSign, Name, Number. Generates a ChangeChannelResponse command and updates the CurrentChannel attribute if supported. ```APIDOC ## ChangeChannel Command ### Description Changes the channel to the channel that case-insensitively matches the provided string. The match priority order is Identifier, AffiliateCallSign, CallSign, Name, Number. Generates a ChangeChannelResponse command and updates the CurrentChannel attribute if supported. ### Command ChangeChannel ### Fields - **Match** (string) - Required - A user-input string to match in order to identify the target channel. ### Response Generates a ChangeChannelResponse command. ### Conformance Mandatory (M). ``` -------------------------------- ### SetTemperature Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Temperature_Control_Cluster.md The SetTemperature command is sent from the client to the server to set the desired temperature. It includes optional TargetTemperature and TargetTemperatureLevel fields, and the server responds with SUCCESS or an appropriate error status. ```APIDOC ## [COMMAND] SetTemperature ### Description The SetTemperature command is used by the client to set the temperature setpoint or temperature level on the server. The server must acknowledge the command and update its attributes accordingly. ### Command ID 0x00 ### Direction Client to Server ### Response Required Yes ### Access Level Optional (O) ### Conformance Mandatory (M) for the server ### Data Fields #### TargetTemperature Field - **Type**: temperature - **Constraint**: desc (see description) - **Conformance**: TN (feature-dependent) - **Description**: Specifies the desired temperature setpoint. Must be between MinTemperature and MaxTemperature inclusive. If Step attribute is supported, (TargetTemperature - MinTemperature) % Step == 0. #### TargetTemperatureLevel Field - **Type**: uint8 - **Constraint**: desc (see description) - **Conformance**: TL (mandatory if TL feature is supported) - **Description**: Specifies the index of the list item in the SupportedTemperatureLevels list. Must be between 0 and length of SupportedTemperatureLevels - 1. ### Effect on Receipt If the command fields meet all constraints but the server cannot execute the command at the time of receipt, the server SHALL respond with a status code of INVALID_IN_STATE and discard the command. If the TN feature is supported: - If TargetTemperature meets all constraints, the server SHALL set the TemperatureSetpoint attribute to the value of TargetTemperature and respond with SUCCESS. - Otherwise, the response SHALL be CONSTRAINT_ERROR and the TemperatureSetpoint attribute SHALL remain unchanged. If the TL feature is supported: - If TargetTemperatureLevel meets all constraints, the server SHALL set the SelectedTemperatureLevel attribute to the value of TargetTemperatureLevel and respond with SUCCESS. - Otherwise, the response SHALL be CONSTRAINT_ERROR and the SelectedTemperatureLevel attribute SHALL remain unchanged. ### Response #### Success Response - **Status Code**: SUCCESS #### Error Responses - **INVALID_IN_STATE**: When the server cannot execute the command at the time of receipt. - **CONSTRAINT_ERROR**: When the field values do not meet the constraints. ``` -------------------------------- ### SkipArea Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Service_Area_Cluster.md This command is used to skip a device area. It expects a SkipAreaResponse command in return. ```APIDOC ## SkipArea Command ### Description This command is used to skip a device area. It expects a SkipAreaResponse command in return. ### Direction Client → Server ### Response SkipAreaResponse ### Access Optional ### Conformance Conditions described elsewhere in the documentation. ``` -------------------------------- ### GetActiveDatasetRequest Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Thread_Border_Router_Management_Cluster.md Requests the active operational dataset of the Thread network to which the border router is connected. Must be executed via a CASE session; otherwise, it fails with UNSUPPORTED_ACCESS. On success, it generates a DatasetResponse command. ```APIDOC ## GetActiveDatasetRequest Command ### Description Requests the active operational dataset of the Thread network to which the border router is connected. Must be executed via a CASE session; otherwise, it fails with UNSUPPORTED_ACCESS. On success, it generates a DatasetResponse command. ### Direction Client → Server ### Response DatasetResponse ### Access Mandatory (M) ### Conformance Mandatory (M) ### Error Handling - If not executed via a CASE session, the command SHALL fail with a status code of UNSUPPORTED_ACCESS. - If an internal error occurs, the command SHALL fail with a FAILURE status code sent back to the initiator. - Otherwise, this SHALL generate a DatasetResponse command. ``` -------------------------------- ### PowerAdjustRequest Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Device_Energy_Management_Cluster.md Requests the ESA to adjust its power consumption or generation to a specified level for a specified duration. The command includes Power, Duration, and Cause fields, and the ESA validates the request against its capabilities and current state. ```APIDOC ## PowerAdjustRequest Command ### Description Requests the ESA to adjust its power consumption or generation to a specified level for a specified duration. The command includes Power, Duration, and Cause fields, and the ESA validates the request against its capabilities and current state. ### Fields - **Power** (number) - Required - The power that the ESA SHALL use during the adjustment period. This value SHALL be between the MinPower and MaxPower fields of the PowerAdjustStruct in the PowerAdjustmentCapability attribute. - **Duration** (number) - Required - The duration that the ESA SHALL maintain the requested power for. This value SHALL be between the MinDuration and MaxDuration fields of the PowerAdjustStruct in the PowerAdjustmentCapability attribute. - **Cause** (enum) - Required - The cause of the request from the EMS. ### Effect on Receipt On receipt of this command, the ESA SHALL validate that the Power and Duration specified in the command are within the limits of its current operation and advertised PowerAdjustmentCapability attribute, the OptOutState permits the specified AdjustmentCauseEnum (see OptOutState for details), and the ESAState is Online. If the PowerAdjustRequest command is accepted, then the ESA SHALL change its ESAState to PowerAdjustActive, and the PowerAdjustmentCapability attribute SHALL be updated to set the Cause value from the Cause field of this command. The command status returned SHALL be SUCCESS if the adjustment is accepted; otherwise the command SHALL be rejected with CONSTRAINT_ERROR if the Power, Duration, or Cause values are not permitted as above, or with FAILURE otherwise. ### Start of Adjustment The ESA SHALL generate a PowerAdjustStart Event when it begins to adjust its power. The ESA then begins to adjust its power consumption or generation to the power level commanded in the Power field. ### End of Adjustment (Normal Completion) After the elapsed duration, the ESA SHALL revert to normal (or idle) power levels. The ESA SHALL also generate a PowerAdjustEnd Event with a cause code to indicate a 'Normal completion', the ESAState SHALL be restored to Online, and the PowerAdjustmentCapability attribute SHALL be updated to set the Cause value to 'NoAdjustment'. ### Failure or Opt-out During Adjustment If during the power adjustment session a failure or other condition occurs (such as the user deciding to opt-out by updating the OptOutState) then the ESA SHALL generate a PowerAdjustEnd Event to indicate the end of the session, with the appropriate cause code. The ESAState SHALL be updated to reflect the new state, and the PowerAdjustmentCapability attribute SHALL be updated to set the Cause value to 'NoAdjustment'. ### Receiving a New PowerAdjustRequest Command When Adjustment is On-going If an existing power adjustment is already happening, and a new PowerAdjustRequest command is received, then if the ESA allows it, the ESA SHALL return SUCCESS, and the PowerAdjustmentCapability attribute SHALL be updated to set the Cause value from the Cause field of the new command. If the ESA does not permit this new PowerAdjustmentRequest command to interrupt the adjustment that is in progress, it SHALL return BUSY. Note that if the new command is accepted, then the ESA SHALL NOT generate a new PowerAdjustEnd Event until the new duration has elapsed. This is to avoid generating too many events in cases where a device is routinely commanded with overlapping power adjustments. For example, a battery inverter ESA may be sent a new request every 5 seconds to adjust its discharge power based on real-time meter readings. Each command may have a 60 second duration, but this command is superseded after 5 seconds by a new request. After the client has sent its last command and after this command duration expires then the last active power adjustment has been completed. This final command causes the PowerAdjustEnd Event to be generated when the ESAState is restored to Online, and the PowerAdjustmentCapability attribute SHALL be updated to set the Cause value to 'NoAdjustment'. ``` -------------------------------- ### UseCurrentContext Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md Indicates whether to consider the context of current ongoing activity on the receiver to fulfill the request. This is a boolean field with a default value of TRUE. ```APIDOC ## [POST] /use-current-context ### Description Indicates whether to consider the context of current ongoing activity on the receiver to fulfill the request. For example, if the request only includes data in ContentSearch that specifies an Episode number, and UseCurrentContext is set to TRUE, the request refers to the specific episode of the ongoing season of the TV series. ### Method POST ### Endpoint /use-current-context ### Parameters #### Request Body - **UseCurrentContext** (boolean) - Optional - Default: TRUE. TRUE means current activity context MAY be considered; FALSE means current activity context SHALL NOT be considered. ### Request Example { "UseCurrentContext": true } ### Response #### Success Response (200) - **Status** (string) - The result of the command. #### Response Example { "status": "Success" } ``` -------------------------------- ### Search Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Content_Launcher_Cluster.md Searches for content based on provided criteria. This command is mandatory and is sent from the client to the server. ```APIDOC ## Search Command ### Description Searches for content based on provided criteria. This command is mandatory and is sent from the client to the server. ### Direction Client → Server ### Conformance M (Mandatory) ### Parameters - **Search** (ContentSearchStruct) - Required - The search criteria. ### Response LauncherResponse ``` -------------------------------- ### SkipAreaResponse Command Source: https://github.com/holi-lab/simuhome/blob/main/docs/clusters/Service_Area_Cluster.md This command is sent from the server to the client in response to the SkipArea command. It does not require a response. ```APIDOC ## SkipAreaResponse Command ### Description This command is sent from the server to the client in response to the SkipArea command. It does not require a response. ### Direction Server → Client ### Response None ### Access Optional ### Conformance Mandatory if the SkipArea feature is supported. ```