Page 1 of 1

Denkovi board

Posted: Tuesday 05 September 2017 1:11
by Stanleyk
Hello , have somebody working Denkovi board 8 relay with lan ? I can not connect to this.

Re: Denkovi board

Posted: Tuesday 05 September 2017 8:31
by SweetPants
Did you search the forum (upper right box with "Search"). Type in "Denkovi" maybe?

Re: Denkovi board

Posted: Tuesday 05 September 2017 11:25
by Stanleyk
Yes I did, but last man who have it have 3 posts from 2014 year and no more info about connection. I am not a programmer, I just see a compatibility list and I buy a denkovi board 8 relay. only what is working for me is http command :

http://admin:password@IP/iochange.cgi?r ... 1=00&02=FF
http://admin:password@IP/iochange.cgi?r ... 1=00&02=00

but this commands are for all relay together.

Re: Denkovi board

Posted: Tuesday 05 September 2017 14:49
by SweetPants
There is native Domoticz support for "Denkovi Smartden with LAN interface" and "Denkovi Smartden IP In with LAN interface", did you try that already? Setup->Hardware->Type

Re: Denkovi board

Posted: Tuesday 05 September 2017 15:33
by Stanleyk
Yes I try, but :
Error: Denkovi: Error connecting to: IP

I try SNMP port 161 with password from denkovi web and web port 80 with password to denkovi web. Also 443. same error

Re: Denkovi board

Posted: Tuesday 05 September 2017 16:06
by SweetPants
Which Denkovi board do you have?

Re: Denkovi board

Posted: Tuesday 05 September 2017 16:16
by Stanleyk

Re: Denkovi board

Posted: Tuesday 05 September 2017 16:27
by JuanUil
What version of Domoticz are you on?
There is a big issue with ip-connection.
Roll back to latest stable

Re: Denkovi board

Posted: Tuesday 05 September 2017 17:02
by Stanleyk
I have v3.8153

Re: Denkovi board

Posted: Tuesday 05 September 2017 22:46
by Stanleyk
I find on network that domoticz use a http port to denkovi. but get-request have just password so the answer is :
HTTP 60 HTTP/1.0 401 Authorization Required (text/html).

Any idea please ?

Re: Denkovi board

Posted: Friday 08 September 2017 15:44
by Stanleyk
The manual
https://www.google.sk/url?sa=t&rct=j&q= ... 5qunoAneXg

on page 44 say about SNMP commands and is working from rasphberry. So I can write all separately scripts for on and of the relay and use it with dummy switch in domoticz.
But there are commands for read analog pins what will be a thermometers. How I can do this with domoticz ?

Re: Denkovi board

Posted: Wednesday 13 September 2017 14:21
by Stanleyk
Ok, I can read value 0-1024 from the sensor in the RPi and put it to file. how can I make temperature sensor which take data from any file on hdd , please ?

Re: Denkovi board

Posted: Wednesday 13 September 2017 17:22
by Stanleyk
well, for other people with same problem, here is a script. All xxxxxxx must be change to your. create dummy hardware and 8 virtual temperature sensors. use IDX from sensor.
save script and setup crontab for running script every few minutes

Code: Select all

denkoviIP="xxx.xxx.xxx.xxx" # denkovi IP Address
PASSWORD="xxxxxxxxxx" # SNMP Password
DOMO_IP="xxx.xxx.xxx.xxx" # Domoticz IP Address
DOMO_PORT="xxxxx" # Domoticz Port
DOMO_PASS="xxxxxx"        # Domoticz password
DOMO_USER="xxxxxx"           # Domoticz user

temp1_IDX="xxx" # teplota1
temp2_IDX="xxx" # teplota2
temp3_IDX="xxx" # teplota3
temp4_IDX="xxx" # teplota4
temp5_IDX="xxx" # teplota5
temp6_IDX="xxx" # teplota6
temp7_IDX="xxx" # teplota7
temp8_IDX="xxx" # teplota8


# Temperature get from denkovi
temp1=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.1.0`
temp2=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.2.0`
temp3=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.3.0`
temp4=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.4.0`
temp5=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.5.0`
temp6=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.6.0`
temp7=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.7.0`
temp8=`snmpget -c $PASSWORD -v2c -O qv $denkoviIP .1.3.6.1.4.1.19865.1.2.3.8.0`


curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp1_IDX&nvalue=0&svalue=$temp1"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp2_IDX&nvalue=0&svalue=$temp2"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp3_IDX&nvalue=0&svalue=$temp3"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp4_IDX&nvalue=0&svalue=$temp4"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp5_IDX&nvalue=0&svalue=$temp5"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp6_IDX&nvalue=0&svalue=$temp6"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp7_IDX&nvalue=0&svalue=$temp7"
curl -s -i -H "Accept: application/json" "http://$DOMO_USER:$DOMO_PASS@$DOMO_IP:$DOMO_PORT/json.htm?type=command&param=udevice&idx=$temp8_IDX&nvalue=0&svalue=$temp8"