Skip to content

Simple VirtualDomotic Gateway

Victor Sonora Pombo edited this page Mar 4, 2015 · 2 revisions

About

This UniDA Gateway implementation manages one “virtual” UniDA device that should represent a domotic device identified by a DogOnt class.

The generic UniDA Device Driver used works for the kind of devices that possess an On/Off state (“http://elite.polito.it/ontologies/dogont.owl#OnOffState”): doors, windows, lights, simple binary sensors, etc.

In order to represent to current state of that virtual device, a plain text file that holds the state value in 0/1 format is used.

Use

java unida_java_virtualdomotic_gateway-1.0.1.jar com.unida.gateways.virtualdomotic.VirtualDomoticSingleGenericGateway delay [ip] path_to_state_file device_class

Where:

  • delay is measured in milliseconds.
  • IP address is optional but recommended when the gateways is launched in a system with more than one network interface.
  • path_to_state_file contains the full path to a plain text file that contains one state (value must be "0" or "1") per line.
  • device_class must contain the full URI of a DogOnt class.