Home Automation eHouse – Software Development for Room Control Panels for Windows Tablet – Open Source

Home Automation eHouse – Software development panel discussion of the source code .


This article is yet another part of the description of software for touch panels Home Automation eHouse , Windows-based .

Earlier articles on this topic:

” Smart House eHouse – Library to create your own software for Windows ”

” Developing software for the touch smart house control panels eHouse Windows-based tablets ”

Description of the main features of the application: procedure outputbuttonnames(index: integer);

The name reads the digital outputs RoomManager , Program names and the names of measuring inputs of the system configuration.

Saves the configuration directory “%RemoteEhouseDir%\Panels\” if there is a default configuration file for the RoomManager creates it with the name and extension RoomManager ‘.txt’.

Files for the control panel are based on the default file extension and the , as the computer name in the windows of the panel.

To remove unused buttons (outputs and programs) , measuring inputs , programs of the form (or in order to reduce power) , to be in default or file for the panel to replace the field name blank line (keeping the line numbering).

In this file are important analog sensor type setting (in square brackets)

[%] A percentage in relation to the supply voltage controller

[C] the temperature (by default all sensors except the first)

[-%] Reversed a percentage of 100%-X as the light sensor (sensor 1 by default)

For other connecting analog sensors (to be included in the default file by changing the default settings).

procedure TForm1 . Program1Click (Sender: TObject) ;

The event handler “OnClick” for all virtual buttons for launching programs.

Identifies the key number (from the group of program changes) , that has been selected and placed the event start the selected program in the event queue .

procedure TForm1.output1Click(Sender: TObject);

The event handler “OnClick” for all the virtual buttons to change the output status.

Identifies the key number (of the group to change output status) , that has been selected and placed the event changes the output event queue on the server eHouse .

procedure RunEvent(eventcode,arg1,arg2,arg3,arg4,arg5:integer;str:string);

The event records to a queue on the server system eHouse.

The parameters given event code for direct mode:

event code ,

Event arguments , Information for a description of the log .

procedure update_panel;

The function updates the contents of the panel – analog measurements and outputs (virtual buttons colors) .

It must be started immediately after the function periodically “update_status” (Updating the status of the driver from the server PC eHouse) .

Home Automation Controllers eHouse

Control Automation manufacturer

Home Automation – control heating and light in rooms .