Page 14 of 15

Re: Opentherm gateway and script integration into Homeseer

Posted: Fri Sep 25, 2015 2:19 pm
by raymonvdm
mo046 wrote:Devices should be created automatically if they don't exist.

But what script command should i use in the events ? It seems to be missing the devices

Re: Opentherm gateway and script integration into Homeseer

Posted: Sun Sep 27, 2015 4:47 pm
by Michelo
Hi,

Could somebody please post a working script and config file for HS3 with serial connection? I keep getting the following message:

Running script C:\Program Files (x86)\HomeSeer HS3\scripts\BLB_OT_monitor_02.vb :Het doel van een aanroep heeft een uitzondering veroorzaakt.->Does entry point Main exist in script? bij System.RuntimeMethodHandle.InvokeMethod(Object target, Object[] arguments, Signature sig, Boolean constructor) bij System.Reflection.RuntimeMethodInfo.UnsafeInvokeInternal(Object obj, Object[] parameters, Object[] arguments) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) bij A.c17b105f989efe61e5979e67bec1ef734.cffd66cb0782c50126727e3fa75582d7a()

Thanks, Michel.

Re: Opentherm gateway and script integration into Homeseer

Posted: Tue Sep 29, 2015 9:17 am
by raymonvdm
There is no working version with a serial connection. I`m using the OTmonitor for the serial connection with the telnet relay enabled. The script is then connecting to the telnet server of the OTmonitor. So there is no direct connection to the gateway. It seems to be working. But i have an issue with the creation of devices in HS3

I`m using the following files

http://www.domoticaforum.eu/viewtopic.p ... 180#p76314
http://www.domoticaforum.eu/viewtopic.p ... 180#p76317

Re: Opentherm gateway and script integration into Homeseer

Posted: Sat Oct 10, 2015 10:51 am
by Michelo
Thanks. The script is working more stable now then the direct serial connection. I had no issues with the creation of the devices in HS3.

Re: Opentherm gateway and script integration into Homeseer

Posted: Sat Oct 10, 2015 11:09 am
by raymonvdm
I tried the script again but now i have issues connecting at least that is what the log is telling me. However the OTmonitor shows a connection so i'm not shure whats wrong

Code: Select all

okt-19 21:35:14	 	Error	SendMessage; OTGW: Unable to read data from the transport connection: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
I also made a telnet connection using putty to port 1818 (where the OT monitor is on) and the connection is fine. And commands are passing true

Image

Response on the OTMonitor log

Code: Select all

17:13:47.751246	T00110000	Read-Data 	Relative modulation level: 0.00
17:13:48.195243	Command (via relay server, from 192.168.110.35:53460): PS=1
17:13:48.205398	PF
17:13:48.344238	00000010/00000000,10.00,00000011/00000001,0.00,0/0,16.50,115.00,0.00,17.64,52.00,0.00,0.00,0.00,65/0,0/0,0.00,0.00,0,0,0,0,0,0,0,0
17:13:49.718215	Command (via relay server, from 192.168.110.35:53470): PS=1
17:13:49.733602	PF
17:13:49.873006	00000010/00000000,10.00,00000011/00000001,0.00,0/0,16.50,115.00,0.00,17.64,52.00,0.00,0.00,0.00,65/0,0/0,0.00,0.00,0,0,0,0,0,0,0,0
17:14:00.410559	Command (via relay server, from 192.168.110.35:53483): PS=0
17:14:00.433993	OK
17:14:01.026904	T80190000	Read-Data 	Boiler water temperature: 0.00
17:14:01.229875	BC0193400	Read-Ack  	Boiler water temperature: 52.00

I cannot find out what PF means when i look for codes on the website


Update:

Just updated to Firmware 4.2.4 on the gateway (Running 3.4 due to thermostat issues in the past) and the command PS=1 seems to be working now :D But the devices are not created yet. Which events do i need to create for the devices to be created

Re: Opentherm gateway and script integration into Homeseer

Posted: Thu Oct 22, 2015 10:24 pm
by raymonvdm
Yes i finally found the issue. I create a new event and run the sript with calling of Sub "Main" and parameter "update". :D

I found this after reading the complete topic from the beginning :twisted:

Although changing the setpoint using the thermostat device in HS3 is not yet working :shock:

Re: Opentherm gateway and script integration into Homeseer

Posted: Fri Oct 23, 2015 7:05 pm
by yoja
Hi,

raymonvdm, nice to hear you got it almost working :-) What kind of thermostat do you have?
For example: Remeha iSense, Remote setpoint override is disabled by default and has to be enabled via the menu on the thermostat.

There are stil some issues with the telnet communication, for example:
OTGW SendMessage; Error! No valid response to message PR=M

It works, but I (We) still need to figure out these communication errors

Re: Opentherm gateway and script integration into Homeseer

Posted: Mon Oct 26, 2015 4:57 pm
by raymonvdm
I have a Honeywell Round Modulation and if send TC=17.0 it is working fine. The issue seems to be related to the values set on the virtual devices "Temperature Override" and "Temperature Overide Mode" they are not sent to the gateway by the script. I have set the override mode to "Constant" (I think this is TC) and the temperature to "18" but it never changes for 19 to 18. The 19 is set manual on the Honeywell.

The honeywell support .5 setpoint and the script is not, so i think the needs to be adjusted as well :D

Re: Opentherm gateway and script integration into Homeseer

Posted: Mon Oct 26, 2015 6:07 pm
by psmaaswinkel
This week I have also updated the firmware of my OTGW to the latest version. I have the OTGW connected to a TP LINK WR703n. With the OT monitor everything is working fine. But the latest script in hs2 pro gets an empty reply and no device values are set. In debug mode 3 I don't see any values returned after polling the OTGW.

Does anyone have an idea what the problem might be?

Regards,

Peter

Re: Opentherm gateway and script integration into Homeseer

Posted: Tue Oct 27, 2015 6:22 pm
by psmaaswinkel
There is something strange going on over here...

At this moment with version 02l of the script and the latest firmware on the OTGW I get the following result:

27-10-2015 17:18:07 debugOTGW2 Reply:
27-10-2015 17:18:07 debugOTGW1 Reply: PS: 100000010/00000000,24.90,00000011/00000011,100.00,0/0,20.50,0.00,1.60,20.53,62.50,0.00,0.00,0.00,60/40,80/20,60.00,85.00,65328,52840,27152,29664,4192,8436,35024,778
27-10-2015 17:18:07 debugOTGW2 SendMessage;Message: PS=1
27-10-2015 17:18:07 debugOTGW2 OTCommand: PS OTValue: 1
27-10-2015 17:18:07 debugOTGW1 Parameters used: PS=1
27-10-2015 17:18:07 debugOTGW Debug Level: 2
27-10-2015 17:18:07 Event Running script and waiting: BLB_OT_monitor_02.vb("Main", "PS=1")

It seems that after the innital succesfull reply the reply is empty when starting to process the values and updating the devices...
Can't find out why...

Re: Opentherm gateway and script integration into Homeseer

Posted: Tue Nov 03, 2015 6:06 pm
by psmaaswinkel
Just found out what the problem is :D

After the OT monitor scripts sends the PS=1 command it waits for 200ms for a response. This 200ms was to short in my network for getting a response. After changing the waiting period to 500ms it al works as expected!

Re: Opentherm gateway and script integration into Homeseer

Posted: Mon Mar 28, 2016 8:43 pm
by blb
raymonvdm wrote:I have a Honeywell Round Modulation and if send TC=17.0 it is working fine. The issue seems to be related to the values set on the virtual devices "Temperature Override" and "Temperature Overide Mode" they are not sent to the gateway by the script. I have set the override mode to "Constant" (I think this is TC) and the temperature to "18" but it never changes for 19 to 18. The 19 is set manual on the Honeywell.

The honeywell support .5 setpoint and the script is not, so i think the needs to be adjusted as well :D
I'm finally started the migration to HS3 as well. I'm glad others (Maurice, yola)? did rework my HS2 script to HS3, very nice!! Reading status from OTGW is working fine, but It looks I have the same issue as raymonvdm; I can't override the temperature via HS3 device where it works perfect via ot monitor program. Does anyone have a solution for this already?

Re: Opentherm gateway and script integration into Homeseer

Posted: Mon Mar 28, 2016 9:20 pm
by Rutger
For me, the script works perfect in HS3, even I can set the temp with the dropdown menu.

Re: Opentherm gateway and script integration into Homeseer

Posted: Tue Mar 29, 2016 12:37 am
by blb
Hi Rutger,

I've done several trials with 2 versions of the script on this forum, but I don't get it to work. There are several versions of the (HS3) script on this forum now, can you point me to the files (config/script) you are using now?

Re: Opentherm gateway and script integration into Homeseer

Posted: Sun Apr 03, 2016 2:11 pm
by Rutger
Attached my ini file and script for HS3. This should do the trick, I guess? I didn't changed anything in the script (as I can remember).
In the beginning I had also issue with the script and the devices were not created...but now I'm using it already for months.