Simple VirtualDomotic Gateway
Victor Sonora Pombo edited this page Mar 4, 2015
·
2 revisions
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.
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.
UniDA wiki by Mytech Ingenieria Aplicada is licensed under a Creative Commons Attribution 4.0 International License.