Friday, 17 March 2017 12:55

Domoticz Home Automation System

Written by

 

 

 

 

Domoticz is a very light weight home automation system that lets you monitor and configure miscellaneous devices, including lights, switches, various sensors/meters like temperature, rainfall, wind, ultraviolet (UV) radiation, electricity usage/production, gas consumption, water consumption and many more. Notifications/alerts can be sent to any mobile device.

Free / Open Source
Linux / Windows / Embedded Devices



www.Domoticz.com

 

 

Supported by Domoticz

 


 

 

http://sigma-shop.com/userfiles/productlargeimages/product_423.jpg

LAN Ethernet IP 8 channels WEB Relay board

 

 


 

 

http://sigma-shop.com/userfiles/productlargeimages/product_318.jpg

RS485 8 channels Relay board

 


 

kmtronic domoticz ds1820 temperature

 

Domoticz lua script to convert XML output from KMTronic DS1820 LAN module

 

 info.kmtronic.com/domoticz-lua-script-to-convert-xml-output-from-kmtronic-ds1820-lan-module.html

 

 


 

 

Monday, 06 March 2017 09:42

Setting UDP RF433MHz Relays

Written by

 

 UDP RF433MHz Transmitter

 

setting-kmtronic-udp-433mhz-relays

 

 

 

1. Open UDP RF433MHz Transmitter "PIN Configuration" menu

2. Enter your PIN code (in example 1234) and ckick Save

 

setting-kmtronic-udp-433mhz-relays

 

 

3. Turn OFF (up) all DIP Switches RF433MHz Relay board (PIN SET MODE)

setting-kmtronic-udp-433mhz-relays

setting-kmtronic-udp-433mhz-relays

 

 

 

 

4. Download and run UDP Test software

http://info.kmtronic.com/kmtronic-udp-test-software.html

 

5. Enter IP, Port, Command FF0101, click on Open and next Send

 

Software must receive reply from board

 

setting-kmtronic-udp-433mhz-relays

 

 

6. Turn ON (down) DIP Switch '1' RF433MHz Relay board

 

setting-kmtronic-udp-433mhz-relays

setting-kmtronic-udp-433mhz-relays

 

7. Click on  Send again and Relay1 will turn ON

Software will receive reply from board that Relay1

 

setting-kmtronic-udp-433mhz-relays

 

 

 

 

RF 433MHz Relays commands

 

 

           ON Command                    OFF Command
              DEC   HEX                      DEC      HEX
Relay Board ID:01 Relay 1 Channel   1 255 1 1 FF 01 01 255 1 0 FF 01 00
  Relay 2 Channel   2 255 2 1 FF 02 01 255 2 0 FF 02 00
  Relay 3 Channel   3 255 3 1 FF 03 01 255 3 0 FF 03 00
  Relay 4 Channel   4 255 4 1 FF 04 01 255 4 0 FF 04 00
  Relay 5 Channel   5 255 5 1 FF 05 01 255 5 0 FF 05 00
  Relay 6 Channel   6 255 6 1 FF 06 01 255 6 0 FF 06 00
  Relay 7 Channel   7 255 7 1 FF 07 01 255 7 0 FF 07 00
  Relay 8 Channel   8 255 8 1 FF 08 01 255 8 0 FF 08 00
             
Relay Board ID:02 Relay 1 Channel   9 255 9 1 FF 09 01 255 9 0 FF 09 00
  Relay 2 Channel 10 255 10 1 FF 0A 01 255 10 0 FF 0A 00
  Relay 3 Channel 11 255 11 1 FF 0B 01 255 11 0 FF 0B 00
  Relay 4 Channel 12 255 12 1 FF 0C 01 255 12 0 FF 0C 00
  Relay 5 Channel 13 255 13 1 FF 0D 01 255 13 0 FF 0D 00
  Relay 6 Channel 14 255 14 1 FF 0E 01 255 14 0 FF 0E 00
  Relay 7 Channel 15 255 15 1 FF 0F 01 255 15 0 FF 0F 00
  Relay 8 Channel 16 255 16 1 FF 10 01 255 16 0 FF 10 00
             
Relay Board ID:03 Relay 1 Channel 17 255 17 1 FF 11 01 255 17 0 FF 11 00
  Relay 2 Channel 18 255 18 1 FF 12 01 255 18 0 FF 12 00
  Relay 3 Channel 19 255 19 1 FF 13 01 255 19 0 FF 13 00
  Relay 4 Channel 20 255 20 1 FF 14 01 255 20 0 FF 14 00
  Relay 5 Channel 21 255 21 1 FF 15 01 255 21 0 FF 15 00
  Relay 6 Channel 22 255 22 1 FF 16 01 255 22 0 FF 16 00
  Relay 7 Channel 23 255 23 1 FF 17 01 255 23 0 FF 17 00
  Relay 8 Channel 24 255 24 1 FF 18 01 255 24 0 FF 18 00
             
Relay Board ID:04 Relay 1 Channel 25 255 25 1 FF 19 01 255 25 0 FF 19 00
  Relay 2 Channel 26 255 26 1 FF 1A 01 255 26 0 FF 1A 00
  Relay 3 Channel 27 255 27 1 FF 1B 01 255 27 0 FF 1B 00
  Relay 4 Channel 28 255 28 1 FF 1C 01 255 28 0 FF 1C 00
  Relay 5 Channel 29 255 29 1 FF 1D 01 255 29 0 FF 1D 00
  Relay 6 Channel 30 255 30 1 FF 1E 01 255 30 0 FF 1E 00
  Relay 7 Channel 31 255 31 1 FF 1F 01 255 31 0 FF 1F 00
  Relay 8 Channel 32 255 32 1 FF 20 01 255 32 0 FF 20 00
             
Relay Board ID:05 Relay 1 Channel 33 255 33 1 FF 21 01 255 33 0 FF 21 00
  Relay 2 Channel 34 255 34 1 FF 22 01 255 34 0 FF 22 00
  Relay 3 Channel 35 255 35 1 FF 23 01 255 35 0 FF 23 00
  Relay 4 Channel 36 255 36 1 FF 24 01 255 36 0 FF 24 00
  Relay 5 Channel 37 255 37 1 FF 25 01 255 37 0 FF 25 00
  Relay 6 Channel 38 255 38 1 FF 26 01 255 38 0 FF 26 00
  Relay 7 Channel 39 255 39 1 FF 27 01 255 39 0 FF 27 00
             
Relay Board ID:06 Relay 8 Channel 40 255 40 1 FF 28 01 255 40 0 FF 28 00
  Relay 1 Channel 41 255 41 1 FF 29 01 255 41 0 FF 29 00
  Relay 2 Channel 42 255 42 1 FF 2A 01 255 42 0 FF 2A 00
  Relay 3 Channel 43 255 43 1 FF 2B 01 255 43 0 FF 2B 00
  Relay 4 Channel 44 255 44 1 FF 2C 01 255 44 0 FF 2C 00
  Relay 5 Channel 45 255 45 1 FF 2D 01 255 45 0 FF 2D 00
  Relay 6 Channel 46 255 46 1 FF 2E 01 255 46 0 FF 2E 00
  Relay 7 Channel 47 255 47 1 FF 2F 01 255 47 0 FF 2F 00
  Relay 8 Channel 48 255 48 1 FF 30 01 255 48 0 FF 30 00

 

 

 

  Binary Commands

Relay Board ID:01           FF B1 xx

FF B1 xx -  Set the status of the relays in HEX format where (xx) is the last byte corresponding for each relay.
For example:
FF B1 FF – All relay ON
FF B1 00 – All relay OFF
FF B1 10 – only (5) relay ON all others OFF and so on….

  > FF B1 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF

First byte is status first relay, Eight byte is status eight relay..

Relay Board ID:02           FF B2 xx
Relay Board ID:03           FF B3 xx
Relay Board ID:04           FF B4 xx
Relay Board ID:05           FF B5 xx
Relay Board ID:06           FF B6 xx

 

 

 

  Status read commands

 
Relay Board ID:01

FF A1 00 - Status request command

  > FF A1 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 

Relay Board ID:02

FF A2 00 - Status request command

  > FF A2 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:03

FF A3 00 - Status request command

  > FF A3 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:04

FF A4 00 - Status request command

  > FF A4 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:05

FF A5 00 - Status request command

  > FF A5 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 


Relay Board ID:06

FF A6 00 - Status request command

  > FF A6 xx xx xx xx xx xx xx xx  - Reply from relay where xx is status: 01 - Relay is ON, 00 - Relay is OFF 

First byte is status first relay, Eight byte is status eight relay

 

 


 

 setting-kmtronic-udp-433mhz-relays

 

Dip Switch (Address) Calculators

 

 

http://www.sabretechnology.co.uk/downloads/dipcalc.swf

 

http://www.chauvetlighting.com/chauvet-dip-switch-calculator/

http://www.thedmxwiki.com/dmx_definitions/dip_switches

http://www.xledlighting.co.uk/led-technology/dmx-dip-switch-calculator/

 

 

 

 

 

 

 

Tuesday, 01 November 2016 12:06

ArtNet DMX Two Relay controller

Written by

 

 

 

 

KMtronic ArtNet DMX 2 Relay controller

 

 

 

 

 

...........................................................

 

 

KMtronic ArtNet DMX 2 Relay controller

 

 KMtronic ArtNet DMX 2 Relay controller

 

 

 

Art-Net protocol specification

 

 

 

 

 

Wednesday, 21 September 2016 08:08

First time installation

Written by

 

 

Procedure

1. Connect power and LAN cable to router.

 

http://www.info.kmtronic.com/e-mobile/web-8relay-box-mobile-12.jpg

 

LAN DS18B20 High-Precision 1-Wire Digital Temperature Monitor

 

 

 

 

 

2. Open any Internet explorer and type: 192.168.1.199 and press ENTER

If your local IP Network is 192.168.1.xxx you will see new window with request for USER and PASSWORD.

 

3. IF NOT....

Download this software and RUN.

http://www.info.kmtronic.com/software/Web_8_Relay/kmtronic_findboard.zip

 http://www.info.kmtronic.com/e_images/kmtronic_board_finder_01.jpg

 

 

 

4. Change Board IP address, Gateway IP address and click Save Config.

 

5. Open Explorer and type NEW IP address and and press ENTER.

 

 

 -------

Or execute in Command prompt next command:

route add 192.168.1.0 -p mask 255.255.255.0 192.168.1.199

Next open Explorer and type IP 192.168.1.199 address and and press ENTER

 

IF NOT:

1. Execute in Command prompt next command "ping 192.168.1.199":

ping 192.168.1.199

 

 

2. If you using FRITZ!Box router:

    FRITZ!Box modems require RJ-45 REVERSE POLARITY CAT5 CABLE!

 RJ45 - Reverse Polarity

 

 

 

 

 

 

 

KMTronic LAN Ethernet IP 8 channels WEB Relay board BOX

 

 

http://www.info.kmtronic.com/km-web-eight-relay-box.html

 

 

PHP code for STATUS Read WEB Relay board connected to

IP: 192.168.1.199

PORT:80

USER: admin

PASSWORD: admin

 

 

Create a new file.

<?php

$url = "http://192.168.1.199:80/status.xml";
$username = "admin";
$password = "admin";

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");

//execute post
$result = curl_exec($ch);

print $result;

?>

 

Save the file as web_8relay_status.php and run. ( $ php web_8relay_status.php )

 

Result:

$ php web_8_relay_status.php 

0
0
0
0
0
0
0
0
0








 

 

PHP code for CONTROL WEB Relay board connected to

IP: 192.168.1.199

PORT:80

USER: admin

PASSWORD: admin


 

COMMANDS:
FF0101  // TURN ON Relay 1
FF0100  // TURN OFF Relay 1
FF0201  // TURN ON Relay 2
FF0200  // TURN OFF Relay 2
...

FF0801  // TURN ON Relay 8
FF0800  // TURN OFF Relay 8

 

Create a new file.

<?php

$url = "http://192.168.1.199:80/FF0101";  // TURN ON Relay 1
$username = "admin";
$password = "admin";

//open connection
$ch = curl_init();

//set the url, number of POST vars, POST data
curl_setopt($ch,CURLOPT_URL,$url);
curl_setopt($ch, CURLOPT_USERPWD, "$username:$password");

//execute post
$result = curl_exec($ch);

print $result;

?>

Save the file as web_relay_1_on.php and run. ( $ php web_relay_1_on.php )

KMtronic UDP LAN Controled Internet relay board

 

 

http://www.info.kmtronic.com/km-udp-eight-relay-box.html

 

 

PHP code for STATUS Read UDP Relay board connected to

IP: 192.168.1.199

PORT:12345

 

UDP COMMAND: FF0000

 

Create a new file.

<?php

$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP); 

$msg = "FF0000";

$len = strlen($msg);

socket_sendto($sock, $msg, $len, 0 ,'192.168.1.199', 12345); socket_recvfrom($sock, $buf, 12, 0, $from, $port);

echo $buf; socket_close($sock);

?>

 

Save the file as status.php and run. ( $ php status.php )

 

Result:

$ php list.php





 

 

PHP code for CONTROL UDP Relay board connected to

IP: 192.168.1.199

PORT:12345

 

UDP COMMANDS:
FF0101  // TURN ON Relay 1
FF0100  // TURN OFF Relay 1
FF0201  // TURN ON Relay 2
FF0200  // TURN OFF Relay 2
...

FF0801  // TURN ON Relay 8
FF0800  // TURN OFF Relay 8

 

Create a new file.

<?php

$sock = socket_create(AF_INET, SOCK_DGRAM, SOL_UDP);

$msg = "FF0101"; // TURN ON Relay 1

$len = strlen($msg);

socket_sendto($sock, $msg, $len, 0 ,'192.168.1.199', 12345);

socket_recvfrom($sock, $buf, 12, 0, $from, $port);

echo $buf;

socket_close($sock);

?>

Save the file as relay_1_on.php and run. ( $ php relay_1_on.php )

Wednesday, 27 July 2016 06:48

Creating PHP Scripts ("Hello World!")

Written by

 

Create a new empty file with your editor and begin with a simple PHP code block.

<?php

Print "Hello, World!"; 

?>

 

Save the file as hello.php

 

To make the script work, run the hello.php command:

$ php list.php

 


 

 

 

 

 

 

 

 

 

 

 

 

 http://sigma-shop.com/rs485-relays.html

 

 

 

 

Download ZIP file 

http://www.info.kmtronic.com/software/RS485_Relays/RS485_Relays_Command_Prompt.zip 

 

Unzip in any folder
in example "D:\KMtronic"

 

Quick help
rs485relays.exe COM<COM port> <COMMAND>
COM port: COM port
COMMAND: RS485 Relays commands (http://info.kmtronic.com/kmtronic-rs485-relays-commands.html)

NOTE: Commands must be without space (intervals).

 

 

Commands examples
rs485relays.exe COM5 FF0101 (this will turn on channel 1 board connected to COM:5)
rs485relays.exe COM5 FF0100 (this will turn off channel 1 board connected to COM:5)

 



 

 

 

 

 

 

 

 

 

 

Friday, 20 November 2015 07:57

LAN DS18B20 Temperature Monitor Resistors Scheme

Written by

 

 

KMtronic Temperature Monitor

 

For complicated or long wire lines (100-200 meters), if it is necessary,
there are two variants for compensation as shown on the figure below:

First one:
To connect parallel resistor 4.7k between +5V and 1W pin of 3pin plug-in (variant 1 of the scheme).

Second one:
To make RC filter like it's shown at variant 2 of the scheme.
You can try with 470pf and 62 or 100 Ohms resistor.

You can try variant 1 first, if there's no success - variant 2.
You can combine variant 1 and 2 but connect parallel resistor before RC filter.

 

More information

www.maximintegrated.com/en/app-notes/index.mvp/id/148

 

 

 

 

 

 

 

 

 

http://www.loxone.com

 

 

Thank you David!

 

Loxone KMtronic UDP relay 

 

 

 

 Loxone KMtronic UDP Relay


 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Page 2 of 33