new: KMTronic USB/485/TCP(Web) support
Moderator: leecollings
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
new: KMTronic USB/485/TCP(Web) support
Since version #2434, Domoticz now supports the KMTronic USB and TCP(Web) relay boards.
They are not expensive, and the hardware devices look very professional
Supported:
USB:
1,2,4 and 8 channels
* needs external 12 Volt power supply with more then 1 channel
TCP(Web)
2 and 8 channels
* needs external 12 Volt power supply
More information is available at:
http://kmtronic.com
They are not expensive, and the hardware devices look very professional
Supported:
USB:
1,2,4 and 8 channels
* needs external 12 Volt power supply with more then 1 channel
TCP(Web)
2 and 8 channels
* needs external 12 Volt power supply
More information is available at:
http://kmtronic.com
- Attachments
-
- KMTronic 8 Channel board
- kmtronic-web-8relay-box.jpg (34.43 KiB) Viewed 14552 times
Quality outlives Quantity!
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: new: KMTronic USB/TCP(Web) support
A quick Fleabay search turned up these too http://www.ebay.co.uk/itm/KMTronic-USB- ... 3f45f29380
Will they run from a rfxtrx? They come with their own little 433mhz transmitter... it all looks promising
Will they run from a rfxtrx? They come with their own little 433mhz transmitter... it all looks promising
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: new: KMTronic USB/TCP(Web) support
Working on this one, i am having issues opening the COM port... still have to do some testing under linuxblackdog65 wrote:A quick Fleabay search turned up these too http://www.ebay.co.uk/itm/KMTronic-USB- ... 3f45f29380
Will they run from a rfxtrx? They come with their own little 433mhz transmitter... it all looks promising
Once implemented i will send them to RFXCom, maybe they are able/willing to implement it.
They are using a C1101 433Mhz tranciever from Texas Instruments
Quality outlives Quantity!
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: new: KMTronic USB/TCP(Web) support
Now also implemented the RS485 (USB->485) version.
With this you can control up to 48 relays from one converter unit (and 6 devices)
With this you can control up to 48 relays from one converter unit (and 6 devices)
Quality outlives Quantity!
- blackdog65
- Posts: 311
- Joined: Tuesday 17 June 2014 18:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Norfolk, UK
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Excellent! These look to a very useful set of tools!
CubieTruck Master
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
RasPi slaves
Aeon Labs Z-Stick, multi sensor
Fibaro Dimmers, relays, Universal sensors
EQ3 MAX!
TKB Sockets
RFXCOM
LightwaveRF sockets, switches, relays, doorbell
MySensors
ESPEasy ESP8266-12E
Re: new: KMTronic USB/485/TCP(Web) support
Hello,
I'm just update to v2.2493 and i add my Kmtronic web relay in Domoticz
Before I managed it with lua scripts, php and virtual switches.
My Relay board is used to control my electric heaters.
But the operation is not the one expected
If I send the OFF command with JSON, it's toogle to ON if the relay is already OFF
If the relay is ON, the JSON command ON toogle it to OFF
Every Json command (On or Off) toogle the realy...
El Titi
I'm just update to v2.2493 and i add my Kmtronic web relay in Domoticz
Before I managed it with lua scripts, php and virtual switches.
My Relay board is used to control my electric heaters.
But the operation is not the one expected
If I send the OFF command with JSON, it's toogle to ON if the relay is already OFF
If the relay is ON, the JSON command ON toogle it to OFF
Every Json command (On or Off) toogle the realy...
El Titi
-
- Posts: 34
- Joined: Saturday 31 October 2015 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hi,
I`m using USB > RF433MHz > 8 Channel Relay Board http://kmtronic.com/usb-rf433mhz-8-chan ... board.html it is working, but if there is no activity for some time, command is not done and I have to send command twice. It looks that there is so "stanby" mode, if device is not used. Do you have any idea how to solved it?
Thanks
I`m using USB > RF433MHz > 8 Channel Relay Board http://kmtronic.com/usb-rf433mhz-8-chan ... board.html it is working, but if there is no activity for some time, command is not done and I have to send command twice. It looks that there is so "stanby" mode, if device is not used. Do you have any idea how to solved it?
Thanks
-
- Posts: 1
- Joined: Monday 04 April 2016 14:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hi,
I'm also having this same issue, it seems to go to sleep after a while, would using the data time out be of any use for this issue or is that for some thing else, i'm also having a problem using the on off delay as they don't seem to work on the kmtronic stuff, works fine on the lightwaverf stuff.
I'm also having this same issue, it seems to go to sleep after a while, would using the data time out be of any use for this issue or is that for some thing else, i'm also having a problem using the on off delay as they don't seem to work on the kmtronic stuff, works fine on the lightwaverf stuff.
- RATA1
- Posts: 19
- Joined: Tuesday 08 December 2015 15:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Taunton, UK
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hello,
Any plans to support the KMTronic LAN DS18B20 WEB Temperature Monitor too?
Thanks
Any plans to support the KMTronic LAN DS18B20 WEB Temperature Monitor too?
Thanks
Pi + RFX433 + AEOTEC Gen5 ZWave + HGI80 + CM180i + sensors
SolarEdge Inverter and PVOutput
SolarEdge Inverter and PVOutput
- RATA1
- Posts: 19
- Joined: Tuesday 08 December 2015 15:52
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Taunton, UK
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
I have written a little LUA script to read the temperature values and put them into virtual temperature sensors now if it is of some use to someone.RATA1 wrote:Hello,
Any plans to support the KMTronic LAN DS18B20 WEB Temperature Monitor too?
Thanks
It is my first attempt at LUA so let me know if you think it can be modified/improved on.
Runs several times at once (from what I see in the log file) and I don't know why. If you do let me know.
Thanks
Code: Select all
------------------------------------------------------------------------------
--
--
-- Domoticz lua script to convert XML output from KMTronic DS1820 LAN module
-- Reads the temperature based on the unique ID of the sensor and passes it
-- back to a virtual temperature sensor(s)
-- sensors in Domoticz
--
------------------------------------------------------------------------------
-- Rob Allen 12/04/2016
------------------------------------------------------------------------------
commandArray = {}
function XML_Capture(cmd,flatten)
local f = assert(io.popen(cmd, 'r'))
local s = assert(f:read('*a'))
f:close()
if flatten then
s = string.gsub(s, '^%s+', '')
s = string.gsub(s, '%s+$', '')
s = string.gsub(s, '[\n\r]+', ' ')
end
return s
end
--set to true to print to log file.
debug = false
--define the idx of your temperature sensors - i.e. what you have called your sensors and their IDX numbers
HWTemp_Flow = 108
HWTemp_Return = 109
HWTemp_Tank_Top = 110
HWTemp_Tank_Bottom = 111
--define temperature sensor UID's - i.e. the DS1820 serial number
--up to 4 per DS1820 LAN interface
sensorID_1 = "28006D2307000061"
sensorID_2 = "28AC0924070000C8"
sensorID_3 = "28FA1B24070000AB"
sensorID_4 = "28B30924070000B7"
-- Define your device IP@
Device_IP = "172.16.227.201"
if debug == true then
print("Reading values from: 'http://"..Device_IP.."/status.xml'")
end
-- Read the XML data from the device
XML_string=XML_Capture("curl -s 'http://"..Device_IP.."/status.xml'",1)
valid = string.find(XML_string, "<response>") -- check we are looking in the right place
if debug == true then
print(XML_string)
end
if valid == nil then
print ("Bad XML status read - temperatures NOT updated")
else
--Find the first sensor based on its UID
i = string.find(XML_string,sensorID_1) -- find the unique ID of the sensor
p = string.find(XML_string,"<temp>",i) --look for the next occurrence of <temp> after ID
HWTemp_Flow_Temperature=string.sub(XML_string,p+6,p+10) --temperature is the 5 characters after <temp> - i.e. 6-10
commandArray[1] = {['UpdateDevice'] = HWTemp_Flow.."|0|"..HWTemp_Flow_Temperature} --send updated values to Domoticz
if debug == true then
print("temp returned = ".."'"..HWTemp_Flow_Temperature.."'")
end
-- Second sensor based on its UID
i = string.find(XML_string, sensorID_2) -- find the next unique ID of the sensor
p = string.find(XML_string,"<temp>",i) --look for the next occurrence of <temp> after ID
HWTemp_Return_Temperature=string.sub(XML_string,p+6,p+10) --temperature is the 5 characters after <temp> - i.e. 6-10
commandArray[2] = { ['UpdateDevice'] = HWTemp_Return.."|0|"..HWTemp_Return_Temperature } --send updated values to Domoticz
if debug == true then
print("temp returned = ".."'"..HWTemp_Return_Temperature.."'")
end
-- Third sensor based on its UID
i = string.find(XML_string, sensorID_3) -- find the next unique ID of the sensor
p = string.find(XML_string,"<temp>",i) --look for the next occurrence of <temp> after ID
HWTemp_Tank_Top_Temperature=string.sub(XML_string,p+6,p+10) --temperature is the 5 characters after <temp> - i.e. 6-10
commandArray[3] = {['UpdateDevice'] = HWTemp_Tank_Top.."|0|"..HWTemp_Tank_Top_Temperature } --send updated values to Domoticz
if debug == true then
print("temp returned = ".."'"..HWTemp_Tank_Top_Temperature.."'")
end
-- Fourth sensor based on its UID
i = string.find(XML_string, sensorID_4) -- find the next unique ID of the sensor
p = string.find(XML_string,"<temp>",i) --look for the next occurrence of <temp> after ID
HWTemp_Tank_Bottom_Temperature=string.sub(XML_string,p+6,p+10) --temperature is the 5 characters after <temp> - i.e. 6-10
commandArray[4] = { ['UpdateDevice'] = HWTemp_Tank_Bottom.."|0|"..HWTemp_Tank_Bottom_Temperature } --send updated values to Domoticz
if debug == true then
print("temp returned = ".."'"..HWTemp_Tank_Bottom_Temperature.."'")
end
end
return commandArray
Pi + RFX433 + AEOTEC Gen5 ZWave + HGI80 + CM180i + sensors
SolarEdge Inverter and PVOutput
SolarEdge Inverter and PVOutput
-
- Posts: 34
- Joined: Saturday 31 October 2015 14:41
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hi Rata,
thanks for script, I'l try during week and let you know
thanks for script, I'l try during week and let you know
-
- Posts: 89
- Joined: Thursday 28 April 2016 23:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Milan, Italy
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hi all,
I have RS485 (USB->485) 16 relay . The software recognize them and I can manual on/off the single light, but timers, group on/off, blocky etc. doesn't work anymore.
Tried with raspberry pi or mac stable/beta but doesn't work anymore.
Is there some bug for RS485 (USB->485) ??
Thanks
I have RS485 (USB->485) 16 relay . The software recognize them and I can manual on/off the single light, but timers, group on/off, blocky etc. doesn't work anymore.
Tried with raspberry pi or mac stable/beta but doesn't work anymore.
Is there some bug for RS485 (USB->485) ??
Thanks
-
- Posts: 21
- Joined: Saturday 09 July 2016 8:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: U.K.-England
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Morning im new to Domoticz
i have a KMtronic Lan Web 8ch relay connected to my Broadband router domoticz is operated on raspberry pi 2
i have set it up in hardware and i can see the relays in switches
but the problem is when i switch the switch the relays dont operate ?? any ideas
i have a KMtronic Lan Web 8ch relay connected to my Broadband router domoticz is operated on raspberry pi 2
i have set it up in hardware and i can see the relays in switches
but the problem is when i switch the switch the relays dont operate ?? any ideas
-
- Posts: 1
- Joined: Tuesday 12 July 2016 20:11
- Target OS: Windows
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hi.
sorry for my english. i am italian.
i have kmtronic temperature.
I created the script in the events of domoticz
replaced ip, id and name of sensor
but script rata1 don't work.
please help me.
thi is my xml
<response>
<sensor>
<id>28FF864615150226</id>
<name>cantina</name>
<temp>21.43</temp>
</sensor>
<sensor>
<id>28FF2A085415025B</id>
<name>esterna</name>
<temp>19.81</temp>
</sensor>
<sensor>
<id>----------------</id>
<name> </name>
<temp>---</temp>
</sensor><sensor>
<id>----------------</id>
<name> </name>
<temp>---</temp>
</sensor>
<version>
<model>KMtronic DS1820 Temperature Monitor</model>
<ver>1.0</ver>
</version>
</response>
sorry for my english. i am italian.
i have kmtronic temperature.
I created the script in the events of domoticz
replaced ip, id and name of sensor
but script rata1 don't work.
please help me.
thi is my xml
<response>
<sensor>
<id>28FF864615150226</id>
<name>cantina</name>
<temp>21.43</temp>
</sensor>
<sensor>
<id>28FF2A085415025B</id>
<name>esterna</name>
<temp>19.81</temp>
</sensor>
<sensor>
<id>----------------</id>
<name> </name>
<temp>---</temp>
</sensor><sensor>
<id>----------------</id>
<name> </name>
<temp>---</temp>
</sensor>
<version>
<model>KMtronic DS1820 Temperature Monitor</model>
<ver>1.0</ver>
</version>
</response>
-
- Posts: 33
- Joined: Wednesday 03 February 2016 13:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Have you managed to fix this issue? I am currently looking at these boards to use in a project.Mazzokun wrote:Hi all,
I have RS485 (USB->485) 16 relay . The software recognize them and I can manual on/off the single light, but timers, group on/off, blocky etc. doesn't work anymore.
Tried with raspberry pi or mac stable/beta but doesn't work anymore.
Is there some bug for RS485 (USB->485) ??
Thanks
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
-
- Posts: 89
- Joined: Thursday 28 April 2016 23:55
- Target OS: Raspberry Pi / ODroid
- Domoticz version: Beta
- Location: Milan, Italy
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
miroslavpetrov wrote:Have you managed to fix this issue? I am currently looking at these boards to use in a project.Mazzokun wrote:Hi all,
I have RS485 (USB->485) 16 relay . The software recognize them and I can manual on/off the single light, but timers, group on/off, blocky etc. doesn't work anymore.
Tried with raspberry pi or mac stable/beta but doesn't work anymore.
Is there some bug for RS485 (USB->485) ??
Thanks
in the beta release it works without any issue
-
- Posts: 33
- Joined: Wednesday 03 February 2016 13:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
I received the RS485 boards and tested them using the latest Raspberry image and as Mazzokun said groups, scenes and blockly doesn't work with the boards. However I wrote simple bash scripts that send serial commands to the boards which fixed the problem.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
-
- Posts: 1
- Joined: Tuesday 23 August 2016 16:36
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Is the RS485 board an easy and suitable solution to control the lights in my garden? How easy is it to get this working on a raspberry pi with domoticz? Can somebody show me what the config looks like for the board?
-
- Posts: 33
- Joined: Wednesday 03 February 2016 13:35
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
Hi,ceetn wrote:Is the RS485 board an easy and suitable solution to control the lights in my garden? How easy is it to get this working on a raspberry pi with domoticz? Can somebody show me what the config looks like for the board?
In the current stable version of domoticz, when you add the RS485 board in hardware, blockly, timers and some other things stop working...However, if you write simple bash scripts and assign them to a virtual switch, everything is fine. And for ease of use, they are plug ang play. You get a USB ->RS485 converter which is recognized automatically from the Rpi, for windows you have to install drivers.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
- gizmocuz
- Posts: 2350
- Joined: Thursday 11 July 2013 18:59
- Target OS: Raspberry Pi / ODroid
- Domoticz version: beta
- Location: Top of the world
- Contact:
Re: new: KMTronic USB/485/TCP(Web) support
@miroslavpetrov, dont know why this is happening to you, but it does not make any sense, as these are out-side processes, nothing todo with any hardware.
So this should not happen
And you should also try the beta version then
So this should not happen
And you should also try the beta version then
Quality outlives Quantity!
Who is online
Users browsing this forum: No registered users and 0 guests