Skip to content

Commit

Permalink
change Door Unlock to Timed Unlock
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt committed Mar 24, 2022
1 parent 6753261 commit a17f34f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/entities/homeAssistant.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const startControlDoors = async () => {
availability_topic: mqttConfig.availability_topic,
optimistic: false,
payload_lock: 'Lock',
payload_unlock: 'Unlock',
payload_unlock: 'TimedUnlock',
unique_id: `${doorId}`
}
mqtt.publish(topic, JSON.stringify(message));
Expand Down
3 changes: 2 additions & 1 deletion src/entities/inception.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,8 @@ export const postControlDoorActivity = async (id: string, controlType: string) =
try {
await axios.post(`${config.base_url}/control/door/${id}/activity`, {
Type: 'ControlDoor',
DoorControlType: controlType
DoorControlType: controlType,
TimeSecs: 5
}, {
headers: {
Cookie: `LoginSessId=${userID}`
Expand Down

0 comments on commit a17f34f

Please sign in to comment.