Opentherm gateway and script integration into Homeseer

Forum over Homeseer scripts (DUTCH forum)

Moderators: TANE, Ruud

raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

Re: Opentherm gateway and script integration into Homeseer

Post 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
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Michelo
Starting Member
Starting Member
Posts: 8
Joined: Sat Oct 08, 2011 7:59 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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.
raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

Re: Opentherm gateway and script integration into Homeseer

Post 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
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Michelo
Starting Member
Starting Member
Posts: 8
Joined: Sat Oct 08, 2011 7:59 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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.
raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

Re: Opentherm gateway and script integration into Homeseer

Post 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
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

Re: Opentherm gateway and script integration into Homeseer

Post 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:
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
yoja
Starting Member
Starting Member
Posts: 44
Joined: Wed Feb 24, 2010 12:00 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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
raymonvdm
Senior Member
Senior Member
Posts: 1153
Joined: Sun Dec 18, 2011 1:23 am

Re: Opentherm gateway and script integration into Homeseer

Post 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
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
psmaaswinkel
Member
Member
Posts: 88
Joined: Wed Oct 27, 2010 8:36 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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
___________________________________________________________________
iEase Home Control
psmaaswinkel
Member
Member
Posts: 88
Joined: Wed Oct 27, 2010 8:36 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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...
___________________________________________________________________
iEase Home Control
psmaaswinkel
Member
Member
Posts: 88
Joined: Wed Oct 27, 2010 8:36 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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!
___________________________________________________________________
iEase Home Control
blb
Member
Member
Posts: 145
Joined: Fri Nov 19, 2010 2:01 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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?
Bernard
Rutger
Member
Member
Posts: 339
Joined: Wed May 19, 2010 8:48 pm
Location: Netherlands

Re: Opentherm gateway and script integration into Homeseer

Post by Rutger »

For me, the script works perfect in HS3, even I can set the temp with the dropdown menu.
My home automation blog: https://rutg3r.com
blb
Member
Member
Posts: 145
Joined: Fri Nov 19, 2010 2:01 pm

Re: Opentherm gateway and script integration into Homeseer

Post 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?
Bernard
Rutger
Member
Member
Posts: 339
Joined: Wed May 19, 2010 8:48 pm
Location: Netherlands

Re: Opentherm gateway and script integration into Homeseer

Post 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.
Attachments
HS3-BLB_OT_monitor+config.zip
(5.77 KiB) Downloaded 664 times
My home automation blog: https://rutg3r.com
Post Reply

Return to “Homeseer Scripts Forum”