Page 12 of 20

Re: [120] opentherm gateway

Posted: Sunday 14 December 2014 22:28
by vaanja
thank you for answer, but I'm not using WIFI/LAN version of OTGW.
my OTGW is connected to raspberry USB port.
i tried to install ser2lan and configure it by adding this line to ser2net.conf:

Code: Select all

1001:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner
and then sucesfuly connected to OTGW with otmonitor.exe

the problem is that i'm not receiving the same info as otgw is connected to my computer usb.

Code: Select all

22:22:29.991272	PS: 1
22:22:30.134269	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,.03,26.92,19.02,2.70,24.09,65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:23:00.019907	OT: 2.70
22:23:00.090445	PS: 1
22:23:00.232157	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,7.03,26.92,19.02,2.70,24.09,65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:23:30.115024	OT: 2.70
22:23:30.184795	PS: 1
22:23:30.327670	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,03,26.92,19.02,2.70,23.95,65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:24:00.210490	OT: 2.70
22:24:00.280995	PS: 1
22:24:00.358399	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,
22:24:00.422865	65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:24:30.303526	OT: 2.70
22:24:30.374031	PS: 1
22:25:00.635027	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,0,800,00OT: 2.70
22:25:00.652335	PS: 1
22:25:29.642122	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,0,OT: 2.70
22:25:29.712577	PS: 1
22:25:59.771863	00000000/00000000,16.23,00000111/00000111,100.00,0/0,15.00,,,OT: 2.70
22:25:59.842707	PS: 1
22:26:29.893870	00000000/00000000,16.23,00000111/00000111,100.00,0/0,15.00,0,,OT: 2.70
22:26:29.964748	PS: 1
22:27:00.025293	00000000/00000000,16.23,00000111/00000111,100.00,0/0,15.00,00,,OT: 2.70
22:27:00.043342	PS: 1
and there is nothing in Graph nor Statistics tabs...

Re: [120] opentherm gateway

Posted: Sunday 14 December 2014 22:36
by sincze
vaanja wrote:dear friends,
I have OTGW USB version connected to raspberry pi running domoticz and everything works very well.
from time to time I would like to connect to OTGW using otmonitor.exe in windows, but I don't know what to do on raspi side to enable this activity.
can somebody post step-by-step instructions how to set-up ser2lan on raspi running domoticz to have domoticz and otmonitor running in parallel?
many thanks in advance.
kind regards,
vaanja
I think this is not possible out of the box as what happens here if i try this my OTGW freaks out untill I receive no more data at all.
Powercycle the OTGW will bring it back to life. TPLink with Ser2Net I know. Ser2Lan... I don't.

So I tried experimenting with serial port 'splitter' software. http://www.conserver.com/INSTALL
A lot of work and no luck.

What could be done, is 'relay' received OTGW information by Domoticz.

In this way: Domoticz would contact OTGW via Lan, and relay received information to a different port.
So otmonitor.exe would be able to contact Domoticz on that port and receive the information. Can be very usefull for debugging purposes.
However I don't know if somebody will build this functionality,

Re: [120] opentherm gateway

Posted: Sunday 14 December 2014 22:41
by sincze
vaanja wrote:thank you for answer, but I'm not using WIFI/LAN version of OTGW.
my OTGW is connected to raspberry USB port.
i tried to install ser2lan and configure it by adding this line to ser2net.conf:

Code: Select all

1001:raw:0:/dev/ttyUSB0:9600 8DATABITS NONE 1STOPBIT banner
and then sucesfuly connected to OTGW with otmonitor.exe

the problem is that i'm not receiving the same info as otgw is connected to my computer usb.

Code: Select all

22:22:29.991272	PS: 1
22:22:30.134269	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,.03,26.92,19.02,2.70,24.09,65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:23:00.019907	OT: 2.70
22:23:00.090445	PS: 1
22:23:00.232157	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,7.03,26.92,19.02,2.70,24.09,65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:23:30.115024	OT: 2.70
22:23:30.184795	PS: 1
22:23:30.327670	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,03,26.92,19.02,2.70,23.95,65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:24:00.210490	OT: 2.70
22:24:00.280995	PS: 1
22:24:00.358399	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,
22:24:00.422865	65/10,89/20,5.00,89.00,0,0,0,0,0,0,0,0
22:24:30.303526	OT: 2.70
22:24:30.374031	PS: 1
22:25:00.635027	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,0,800,00OT: 2.70
22:25:00.652335	PS: 1
22:25:29.642122	00000000/00000000,16.19,00000111/00000111,100.00,0/0,15.00,0,OT: 2.70
22:25:29.712577	PS: 1
22:25:59.771863	00000000/00000000,16.23,00000111/00000111,100.00,0/0,15.00,,,OT: 2.70
22:25:59.842707	PS: 1
22:26:29.893870	00000000/00000000,16.23,00000111/00000111,100.00,0/0,15.00,0,,OT: 2.70
22:26:29.964748	PS: 1
22:27:00.025293	00000000/00000000,16.23,00000111/00000111,100.00,0/0,15.00,00,,OT: 2.70
22:27:00.043342	PS: 1
and there is nothing in Graph nor Statistics tabs...
Is above output from your raspberry or your windows USB?
can you check ttyUSB* is succesfully created when plugging in the USB cable into raspberry
check with 'dmesg'.

Re: [120] opentherm gateway

Posted: Sunday 14 December 2014 22:55
by vaanja
the log is from otmonitor.exe running on windows machine, but connected to raspberry ip, port 1001, which I set up in ser2net config.
i thought that if domoticz is running on raspberry and reading info from otgw via usb sucesfully, I can forward same information to port 1001 and read via otmonitor from windows machine...
if i connect OTGW directly to windows machine usb port, than i see changing log line every second, but when accessing otgw connected to raspi usb, it's receiving info once per cca 30s.

Re: [120] opentherm gateway

Posted: Tuesday 23 December 2014 10:09
by Piacco
Hello,

I'm using the OTGW with Domoticz, is it possible with Domoticz to send a constant temperature to the thermostat?

Greetings,

Piacco

Re: [120] opentherm gateway

Posted: Tuesday 23 December 2014 17:04
by rtenklooster
Hi,
Is there any way to use the latest version (beta) on windows? I can download the svn version but have no idea how to generate an installler.
Don't know if in the latest version the flame state, dhw state etc. are also listed in switches, while setpoint and water pressure are listedd under utililties. (I would expect them all to be listed under utilities)
Another problem is, on the roomplan the room setpoint is listed, but when tapping / clicking on it it shows the graph, not an option to change the setpoint.

Overall, i'm very happy with the total solution you offer! Thanks lot for your work!

Re: [120] opentherm gateway

Posted: Friday 26 December 2014 16:41
by barbaar
How are you dealing with OTGW and the regular room thermostat?

In my current situation, both the roomt thermostat and OTGW have their own schedule.. wich may sometimes conflict.. But who wins in a conflicting situation? For example. the room thermostat sets the room temperature to 20 degrees, but OTWG sets it to 15.. what will happen now?

I have seen my room thermostat displaying a message that some other program has set the current room temperature. The display shows "External Wish", wich would probably be caused by OTGW...

For Completeness: I have an ATAG E325EC and ATAG Wize...

Re: opentherm gateway

Posted: Saturday 07 February 2015 23:11
by rtenklooster
gizmocuz wrote:
Mavy wrote:Is there a way to turn of the OTGW logging in domoticz? My log is filled these lines:
Fri Mar 7 14:20:04 2014 (Heater) Thermostat (Heater Room Setpoint)
Fri Mar 7 14:20:04 2014 (Heater) Temperature (Heater Room Temp)
Fri Mar 7 14:20:04 2014 (Heater) Temperature (Boiler Water Temperature)
Fri Mar 7 14:20:05 2014 (Heater) Temperature (DHW Temperature)
Fri Mar 7 14:20:05 2014 (Heater) Temperature (Heater Outside)
Fri Mar 7 14:20:05 2014 (Heater) Temperature (Return Water Temperature)
Fri Mar 7 14:20:06 2014 (Heater) Thermostat (DHW Setpoint)
logging is only internally unless you specified that domoticz should log to a file.
If you enabled the log file option, you want to log something (as a developer maybe?) so yes you get log lines
As you get updates to sensors, domoticz makes a log, and yes OTGW updates the sensors....

Thanks for the status id's
It would be nice if there was an option to hide those messages / updates from the normal settings -> log screen.
They come by very frequent, and are not interresting. As long as my sensors keep updated, its fine by me.
Disabling openthem log messages would give me a better overview (overzichtelijker) Its 10 log lines every 30 seconds..

Re: [120] opentherm gateway

Posted: Sunday 08 February 2015 0:46
by roblom
Does somebody know how to set up the right persistentUSB line?

Code: Select all

SUBSYSTEM=="tty", ATTRS{idVendor}=="0424", ATTRS{idProduct}=="9512", SYMLINK+="ttyUSB22"
Doesn't seem to work because the OTGW doesn't work anymore then. It seems that it only works on USB0.

Re: [120] opentherm gateway

Posted: Sunday 08 February 2015 6:23
by antwan
Sounds wierd to me. It Works for al my usb devices.

Re: [120] opentherm gateway

Posted: Sunday 08 February 2015 13:14
by roblom
antwan wrote:Sounds wierd to me. It Works for al my usb devices.
What line do you use for the OTGW then?

Re: [120] opentherm gateway

Posted: Sunday 08 February 2015 17:16
by BertB
roblom wrote:Does somebody know how to set up the right persistentUSB line?

Code: Select all

SUBSYSTEM=="tty", ATTRS{idVendor}=="0424", ATTRS{idProduct}=="9512", SYMLINK+="ttyUSB22"
Doesn't seem to work because the OTGW doesn't work anymore then. It seems that it only works on USB0.
After sudo lsusb -v | more, I see:
  • Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
    Device Descriptor:
    bLength 18
    bDescriptorType 1
    bcdUSB 2.00
    bDeviceClass 9 Hub
    bDeviceSubClass 0 Unused
    bDeviceProtocol 1 Single TT
    bMaxPacketSize0 64
    idVendor 0x1d6b Linux Foundation
    idProduct 0x0002 2.0 root hub
    bcdDevice 3.12
    iManufacturer 3 Linux 3.12.34+ dwc_otg_hcd
    iProduct 2 DWC OTG Controller
    iSerial 1 bcm2708_usb
    bNumConfigurations 1
    Configuration Descriptor:
    bLength 9
Watch the blue part, as it says OTG Controller.

then in: /etc/udev/rules.d/99-usb-serial.rules
I put:
SUBSYSTEM=="tty", ATTRS{idVendor}=="1d6b", ATTRS{idProduct}=="0002", SYMLINK+="ttyUSB21"

Re: [120] opentherm gateway

Posted: Tuesday 10 February 2015 14:59
by Deshke
jvandenbroek can i contact you by email because i can't send pm's yet on this forum, I am too rookie yet :p
(or anyone with a Remeha Calenta with iSense)
I also have a Remeha Calenta with an iSense thermostat and I would like to know how well your installation went before i pay 89 eur for the OTGW.
I think I've red this thread 3 times allready but you can't be prepared enough :)

Currently i have a raspberry pi standing by with domoticz, have a Calenta boiler, an iSense thermostat. I am thinking to buy the OTGW, connect it with a USB cable to my Rpi and controlling my temperature through the domoticz website anywhere on earth :) Or ceate my own little website to change my iSense temperature

Thanks in advance people !

Re: [120] opentherm gateway

Posted: Tuesday 10 February 2015 16:40
by Deshke
Ps : Anyone has an idea why my calenta keeps burning even thou ive set a temperature of 15 °c untill 18:00 PM, when at the time of the picture (picture is below) it is 17.5°C at 16:23 PM?

It shouldnt be burning before 18:00 PM , any suggestions please? Because if I have problems before the OTGW I will get much more trouble when implementing the OTGW.

Thanks in advance :)

https://www.dropbox.com/s/atu6rrh8tzjc3 ... 5.jpg?dl=0


edit: never mind, it probably has something to do with the warmup-time with is set to 120 minutes... gonna set ik to max 60 min en evaluate

Re: [120] opentherm gateway

Posted: Tuesday 10 February 2015 22:56
by pwhooftman
Deshke wrote:jvandenbroek can i contact you by email because i can't send pm's yet on this forum, I am too rookie yet :p
(or anyone with a Remeha Calenta with iSense)
I also have a Remeha Calenta with an iSense thermostat and I would like to know how well your installation went before i pay 89 eur for the OTGW.
I think I've red this thread 3 times allready but you can't be prepared enough :)

Currently i have a raspberry pi standing by with domoticz, have a Calenta boiler, an iSense thermostat. I am thinking to buy the OTGW, connect it with a USB cable to my Rpi and controlling my temperature through the domoticz website anywhere on earth :) Or ceate my own little website to change my iSense temperature

Thanks in advance people !
I have a Calenta with an iSense Thermostat. I bought the DIY version of the OTGW and soldered it together myself. After loading it with the right firmware as indicated on the website, and adjusting a certain voltage level (cant remember which one), it works fine and it has been working flawlessly since +6 months.
It makes it possible to show the outside temperature on the iSense thermostat without having a outside temperature sensor attached to the Calenta. Domoticz retrieves the outside temperature from a sensor of your own, or from weatherunderground, and domoticz sends that value to your iSense, to show it in the upper right corner. Very handy! (look in the iSense manual to enable 'external commands ')

Also big fun to monitor the temperature levels in domoticz, and you will probably see why the Calenta starts warming 2 hours in advance.

By the way, warming up 120 minutes in advance is probably more energy efficient than 60 minutes. The self adjusting iSense takes care of that.

Re: [120] opentherm gateway

Posted: Wednesday 11 February 2015 7:57
by Deshke
oke perfect ! my main purpose is to edit the temperature (setpoint) inside remotely.
I don't have any tools to solder the OTGW together meself so im going to buy the pre-soldered one. External acces is already enalbed, and i will google the voltage level. Thanks for your input.

Re: [120] opentherm gateway

Posted: Wednesday 11 February 2015 9:10
by pwhooftman
Deshke wrote:oke perfect ! my main purpose is to edit the temperature (setpoint) inside remotely.
I don't have any tools to solder the OTGW together meself so im going to buy the pre-soldered one. External acces is already enalbed, and i will google the voltage level. Thanks for your input.
I have looked it up for you http://otgw.tclcode.com/firmware.html#additional ( 'Serial Commands', these can be entered via the OTMonitor program, i had to enter the VR= command to set the reference voltage before data started flowing. If i remember correctly i entered VR=8, but i suggest starting at VR=3 and work your way up one step at a time until data becomes visible in OTMonitor.
Also AA=28 is needed to show return temperature to the Calenta.

Re: [120] opentherm gateway

Posted: Wednesday 11 February 2015 9:32
by Deshke
great advice ! Think im going to order the OTGW tomorrow. Ready for the challenge :twisted: (im just a software programmer ... never did something like this on hardware/voltage/etc level)

edit: also imgonna order the youLess meter to monitor my electricity and another youless meter to monitor my gas-usage, pumping it all in domoticz. Hope it works after spending 230 eur on (2 youless + 1 OTGW)

Re: [120] opentherm gateway

Posted: Wednesday 11 February 2015 20:32
by Skippiemanz
@deshke perhaps an option of you live in nl to request a smart meter from your gas and power provider. I paid € 70,00 and the usb cable is € 25,00

Re: [120] opentherm gateway

Posted: Wednesday 11 February 2015 21:13
by rkoebrugge
Deshke wrote:oke perfect ! my main purpose is to edit the temperature (setpoint) inside remotely.
@Deshke: Could you please share your code when you have completed this? I also want to set the Room Setpoint remotely, by an PHP script (running at the Pi which connects with the USB interface). Unfortunatly, I cannot find how to adjust this setting by the Domoticz JSON API. The type 'Thermostat' is not described in the Wiki and therefore I'm not 100% sure that Domoticz has this feature.