Fix action parsing
This commit is contained in:
5 files changed
+30
-2
No files matched your search
@@ -109,6 +109,7 @@ pub struct BcXml {
|
||||
/// Thre list of streams and their configuration
|
||||
#[yaserde(rename = "Uid")]
|
||||
pub uid: Option<Uid>,
|
||||
/// The floodlight settings for automatically turning on/off on schedule/motion
|
||||
#[yaserde(rename = "FloodlightTask")]
|
||||
pub floodlight_task: Option<FloodlightTask>,
|
||||
}
|
||||
|
||||
@@ -188,6 +188,8 @@ local message_types = {
|
||||
[272]="<findAlarmVideo>",
|
||||
[273]="<alarmVideoInfo>",
|
||||
[274]="<findAlarmVideo>",
|
||||
[299]="<FloodlightStatusList>",
|
||||
[299]="<AiCfg>",
|
||||
[319]="<timelapseCfg>",
|
||||
[342]="<AiDetectCfg>",
|
||||
}
|
||||
|
||||
@@ -2831,6 +2831,31 @@ Message have zero to two payloads.
|
||||
</body>
|
||||
```
|
||||
|
||||
- 299: `<AiCfg>` (read)
|
||||
|
||||
- Client: Standard payload with extension xml of the channel
|
||||
|
||||
- Camera
|
||||
|
||||
- Payload
|
||||
|
||||
```xml
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<body>
|
||||
<AiCfg version="1.1">
|
||||
<channelId>0</channelId>
|
||||
<smartTrack>0</smartTrack>
|
||||
<smartTrackMode>2</smartTrackMode>
|
||||
<smartTrackModeAbility>14</smartTrackModeAbility>
|
||||
<detectType>people,vehicle,dog_cat</detectType>
|
||||
<smartTrackType>people</smartTrackType>
|
||||
<smartTrackPt>1</smartTrackPt>
|
||||
<smartTrackObjectStopDelay>20</smartTrackObjectStopDelay>
|
||||
<smartTrackObjectDisappearDelay>10</smartTrackObjectDisappearDelay>
|
||||
</AiCfg>
|
||||
</body>
|
||||
```
|
||||
|
||||
- 438: `<FloodlightTask>` (read)
|
||||
|
||||
- Camera
|
||||
|
||||
+1
-1
@@ -18,6 +18,6 @@ pub struct Opt {
|
||||
/// The name of the camera. Must be a name in the config
|
||||
pub camera: String,
|
||||
/// Whether to turn the PIR ON or OFF
|
||||
#[arg(value_parser = onoff_parse, name = "on|off")]
|
||||
#[arg(value_parser = onoff_parse, action = clap::ArgAction::Set, name = "on|off")]
|
||||
pub on: Option<bool>,
|
||||
}
|
||||
@@ -18,6 +18,6 @@ pub struct Opt {
|
||||
/// The name of the camera to change the lights of. Must be a name in the config
|
||||
pub camera: String,
|
||||
/// Whether to turn the light on or off
|
||||
#[arg(value_parser = onoff_parse, name = "on|off")]
|
||||
#[arg(value_parser = onoff_parse, action = clap::ArgAction::Set, name = "on|off")]
|
||||
pub on: bool,
|
||||
}
|
||||
Reference in new issue
Block a user