Project

General

Profile

Actions

Feature #665

closed

Add support for getting device state.

Added by Hammel over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Immediate
Assignee:
Category:
Command Processing
Target version:
Start date:
15 Aug 2018
Due date:
% Done:

100%

Estimated time:
Severity:
02 - High

Description

This is a command like: "Are the lights on in the office?"

This causes a command to be sent to imrest that causes it to retrieve state data from the "office" lightsw. The return values is the state value which Jarvis must "read out loud."

This requires changes to:
  1. Jarvis: send command and speak response
  2. imrest: accept command and query correct device - this probably needs to be a generic format that can be easily forwarded to the correct device.

The command is synchronous, that is, the request to imrest will not complete until the request by imrest to lightsw responds. There may need to be timeouts set on this, however.

This command must be used to verify that the response from the device node can be properly deciphered by imrest, which must translate it into a response to Jarvis.

Actions

Also available in: Atom PDF