Opentherm gateway and script integration into Homeseer
Re: Opentherm gateway and script integration into Homeseer
Arjo,
Ik gok dat jou OTGW via rs232 is aangesloten, je moet dan nog Telnet=False in de .ini file zetten.
Ik gok dat jou OTGW via rs232 is aangesloten, je moet dan nog Telnet=False in de .ini file zetten.
Bernard
Re: Opentherm gateway and script integration into Homeseer
More failures;
9-12-2012 22:17:42 Error Running script, script run or compile error in file: Remeha_settings.txt5:Ongeldige procedure-aanroep of ongeldig argument: 'asc' in line 19 More info: Ongeldige procedure-aanroep of ongeldig argument: 'asc'
9-12-2012 22:17:42 Event Running script in background: BLB_OT_monitor_02.vb("Main","PR=all")
9-12-2012 22:17:42 Event Event Trigger "OT_Gateway PR commands"
The setup : otg->usb converter->belkin usb to ethernet
9-12-2012 22:17:42 Error Running script, script run or compile error in file: Remeha_settings.txt5:Ongeldige procedure-aanroep of ongeldig argument: 'asc' in line 19 More info: Ongeldige procedure-aanroep of ongeldig argument: 'asc'
9-12-2012 22:17:42 Event Running script in background: BLB_OT_monitor_02.vb("Main","PR=all")
9-12-2012 22:17:42 Event Event Trigger "OT_Gateway PR commands"
The setup : otg->usb converter->belkin usb to ethernet
Re: Opentherm gateway and script integration into Homeseer
Bernard,
Vergeet helemaal om je te bedanken voor al het werk je er aan gedaan hebt!
In mijn enthousiasme heb ik ook alles weer te snel willen doen en zag een paar instellingen toch over het hoofd.
Maar helemaal lekker loopt het nog niet,
Hier nog een melding
9-12-2012 22:27:04 OTmonitor error communication: Conversion from string "SE" to type 'Double' is not valid.
9-12-2012 22:27:03 Event Running script in background: BLB_OT_monitor_02.vb("Main","PR=all")
Arjo.
Vergeet helemaal om je te bedanken voor al het werk je er aan gedaan hebt!
In mijn enthousiasme heb ik ook alles weer te snel willen doen en zag een paar instellingen toch over het hoofd.
Maar helemaal lekker loopt het nog niet,
Hier nog een melding
9-12-2012 22:27:04 OTmonitor error communication: Conversion from string "SE" to type 'Double' is not valid.
9-12-2012 22:27:03 Event Running script in background: BLB_OT_monitor_02.vb("Main","PR=all")
Arjo.
Re: Opentherm gateway and script integration into Homeseer
Graag gedaan
.
Loopt 't inmiddels goed? anders even debug=2 instellen in de .ini file en dan even naar de log kijken.

Loopt 't inmiddels goed? anders even debug=2 instellen in de .ini file en dan even naar de log kijken.
Bernard
Re: Opentherm gateway and script integration into Homeseer
Ik heb vaak een error als ik een commando ingeef. PR=all, TT=0, het maakt niet uit. Als ik deze error krijg, werkt geen enkel commando meer. Herstart van HS is dan de enige oplossing. Lijkt wel iets met de com poort te zijn in Homeseer. Ik heb nog geen enkel idee waar ik dit moet zoeken. Via de OT monitor heb ik dit probleem niet. Tevens wordt het extra virtual device, de listbox (eigenlijk een dropdown menu. De listbox gebruik je nl. in Hstouch) niet aangemaakt.
Scripting runtime error: System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. --- System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Scheduler.clsComPorts.CloseComPort(Int32 port) bij Scheduler.hsapplication.CloseComPort(Int32 port) bij scriptcode25.scriptcode25.Main(Object varParameters) --- Einde van intern uitzonderingsstackpad --- bij System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) bij System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) bij System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) bij Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
Tevens had ik net voordat het nieuwe script klaar was al een nieuwe virtual device gemaakt, met de 'dropdown' erin, maar ook een Up/Down/Set/Night control button erin. Zo kun je met Up/Down in Hstouch de 'thermostaat' bedienen zoals je dat gewend bent met een thermostaat aan de muur. Binnen marge van het dropdown menu kun je vrij een temperatuur instellen en dmv Set wordt dan de definitieve temperatuur ingesteld.
De halve graden werken goed, daar ben ik heel blij mee.
Bedankt tot zover.
Scripting runtime error: System.Reflection.TargetInvocationException: Het doel van een aanroep heeft een uitzondering veroorzaakt. --- System.NullReferenceException: De objectverwijzing is niet op een exemplaar van een object ingesteld. bij Scheduler.clsComPorts.CloseComPort(Int32 port) bij Scheduler.hsapplication.CloseComPort(Int32 port) bij scriptcode25.scriptcode25.Main(Object varParameters) --- Einde van intern uitzonderingsstackpad --- bij System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) bij System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks) bij System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture) bij System.Reflection.MethodBase.Invoke(Object obj, Object[] parameters) bij Scheduler.VsaScriptHost.Invoke(String ModuleName, String MethodName, Object[] Arguments)
Tevens had ik net voordat het nieuwe script klaar was al een nieuwe virtual device gemaakt, met de 'dropdown' erin, maar ook een Up/Down/Set/Night control button erin. Zo kun je met Up/Down in Hstouch de 'thermostaat' bedienen zoals je dat gewend bent met een thermostaat aan de muur. Binnen marge van het dropdown menu kun je vrij een temperatuur instellen en dmv Set wordt dan de definitieve temperatuur ingesteld.
De halve graden werken goed, daar ben ik heel blij mee.
Bedankt tot zover.
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Ik heb dezefde issue, alleen een herstart is niet altijd nodig. Vaak doet werkt het niet, soms wel. Ik zie dan ook geen reply terugkomen als het commando aan de gateway gegeven wordt.Rutger wrote:Ik heb vaak een error als ik een commando ingeef. PR=all, TT=0, het maakt niet uit. Als ik deze error krijg, werkt geen enkel commando meer. Herstart van HS is dan de enige oplossing. Lijkt wel iets met de com poort te zijn in Homeseer. Ik heb nog geen enkel idee waar ik dit moet zoeken. Via de OT monitor heb ik dit probleem niet.
Re: Opentherm gateway and script integration into Homeseer
Today i got my gateway up and running. And also installed this plugin. I have installed the latest version of the plugin but my "Kamerthermostaat - tijdelijk" is not working as expected ( i cannot select temperatures )
I`m able to poll for flame state but other things as room temperature are not supported
I also think that this command needs to be different
I have a device which measures my outside temperature but it is not called outside. But i just found out that outside might be a reference to setting in the ini file
\10 is a RFXcom device which has hardcoded \ as a house code
What to do next ?
P.S. I`m using a Vaillant VHR-C with a Honeywell Basicstat Modulation and would love to get some explenation about the best thermostat to intergrate using the OpenThermGateway and HomeSeer
I`m able to poll for flame state but other things as room temperature are not supported
I also think that this command needs to be different
Code: Select all
Run script: BLB_OT_monitor_02.vb("Main","OT=outside")
Code: Select all
[Devices]
TemporaryTemperature=O7
OutsideTemperature=\10
What to do next ?
P.S. I`m using a Vaillant VHR-C with a Honeywell Basicstat Modulation and would love to get some explenation about the best thermostat to intergrate using the OpenThermGateway and HomeSeer
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Re: Opentherm gateway and script integration into Homeseer
Rutger, Vanisher,
I recognize your (COM port) communication problem. I have this issue myself as well. I'm not sure what's causing this problem but I think in 2 directions:
1: my belkin USB to 4 x RS232 converter (in combination with WHS);
2: com port usage in HS or poor configuration COM port in the script.
about the 2nd: I'm opening and closing the COM port in the script every time the script is executed. Maybe it's better to open the COM port only ones (e.g. in startup script) and close it with the shut-down script. I haven't tried this myself....
I have noticed the usage of Telnet is much more stable. I did use Telnet in the first month (OTGW was connected to COM port on a remote PC) and since a couple of days now with a RS232 to Ethernet converter and I have not seen the problems as seen with COM port on HS Server.
I recognize your (COM port) communication problem. I have this issue myself as well. I'm not sure what's causing this problem but I think in 2 directions:
1: my belkin USB to 4 x RS232 converter (in combination with WHS);
2: com port usage in HS or poor configuration COM port in the script.
about the 2nd: I'm opening and closing the COM port in the script every time the script is executed. Maybe it's better to open the COM port only ones (e.g. in startup script) and close it with the shut-down script. I haven't tried this myself....
I have noticed the usage of Telnet is much more stable. I did use Telnet in the first month (OTGW was connected to COM port on a remote PC) and since a couple of days now with a RS232 to Ethernet converter and I have not seen the problems as seen with COM port on HS Server.
Bernard
Re: Opentherm gateway and script integration into Homeseer
I`m pending in the order of a module like this
http://www.informatique.nl/516208/aten- ... s-232.html
The problem you are heaving are related to these converters ? I`m currenty using an Eminent converter and a vivanco. Both are reporting themselves as a prolific converter
http://www.informatique.nl/516208/aten- ... s-232.html
The problem you are heaving are related to these converters ? I`m currenty using an Eminent converter and a vivanco. Both are reporting themselves as a prolific converter
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Re: Opentherm gateway and script integration into Homeseer
I'm using an ethernet <-> usb device , de gateway is connectie via en prolific usb-to-serial adapter.. When running OT monitor from the HS PC i have no connection problems at all.blb wrote:Rutger, Vanisher,
I recognize your (COM port) communication problem. I have this issue myself as well. I'm not sure what's causing this problem but I think in 2 directions:
1: my belkin USB to 4 x RS232 converter (in combination with WHS);
2: com port usage in HS or poor configuration COM port in the script.
about the 2nd: I'm opening and closing the COM port in the script every time the script is executed. Maybe it's better to open the COM port only ones (e.g. in startup script) and close it with the shut-down script. I haven't tried this myself....
I have noticed the usage of Telnet is much more stable. I did use Telnet in the first month (OTGW was connected to COM port on a remote PC) and since a couple of days now with a RS232 to Ethernet converter and I have not seen the problems as seen with COM port on HS Server.
I haven't tried telnet yet.. Maybe i should. First i have to find out how

Re: Opentherm gateway and script integration into Homeseer
What kind of ethernet -> usb device are u using ?vanisher wrote:I'm using an ethernet <-> usb device , de gateway is connectie via en prolific usb-to-serial adapter.. When running OT monitor from the HS PC i have no connection problems at all.blb wrote:Rutger, Vanisher,
I recognize your (COM port) communication problem. I have this issue myself as well. I'm not sure what's causing this problem but I think in 2 directions:
1: my belkin USB to 4 x RS232 converter (in combination with WHS);
2: com port usage in HS or poor configuration COM port in the script.
about the 2nd: I'm opening and closing the COM port in the script every time the script is executed. Maybe it's better to open the COM port only ones (e.g. in startup script) and close it with the shut-down script. I haven't tried this myself....
I have noticed the usage of Telnet is much more stable. I did use Telnet in the first month (OTGW was connected to COM port on a remote PC) and since a couple of days now with a RS232 to Ethernet converter and I have not seen the problems as seen with COM port on HS Server.
I haven't tried telnet yet.. Maybe i should. First i have to find out how
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Re: Opentherm gateway and script integration into Homeseer
P.S.
Today i found this images on the forum which seem to be missing in the download of this script
http://www.domoticaforum.eu/download/file.php?id=1502
Now i only seem to be missing one file
11-12-2012 16:30:32 - Error - Web Server Error 404, cannot serve file: C:\Program Files\HomeSeer HS2\html/images/Sensors/ControlOff.gif
Today i found this images on the forum which seem to be missing in the download of this script
http://www.domoticaforum.eu/download/file.php?id=1502
Now i only seem to be missing one file
11-12-2012 16:30:32 - Error - Web Server Error 404, cannot serve file: C:\Program Files\HomeSeer HS2\html/images/Sensors/ControlOff.gif
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Re: Opentherm gateway and script integration into Homeseer
Ik gebruik een usb-RS232 converter van het merk König en die wordt door Windows herkent als "profilic" o.i.d. Ik heb de script errors nooit gehad met de eerste versie van het OTGW script. Trouwens nu ik een paar dagen verder ben, heb ik ook nog geen script errors gehad, terwijl ik 3 a 4 keer per dag de temperatuur wijzig via het script. Ook de OT-outside commando's geven geen errors. Ik laat PS=1 elke 3 minuten draaien. Er is dus genoeg activiteit op de com poort.What kind of ethernet -> usb device are u using ?
De gateway ligt boven op zolder en via 10m cat 5 kabel icm twee rs232 naar rj45 converters, verbonden met de usb-RS232 converter aan m'n Homeseer pc.
Last edited by Rutger on Wed Dec 12, 2012 9:47 pm, edited 1 time in total.
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Is dat dit verloop want ik zoek nog iets voor mijn rfxcom ontvanger
maar ik dacht dat deze "passief was"
http://www.tvcables.co.uk/cgi-bin/tvcab ... -cat5.html
Mijn pollen lijkt zonder problemen te lopen elke 1,30 minuut alleen mijn thermostaat is te simpel dus die is eerst aan de beurt
maar ik dacht dat deze "passief was"
http://www.tvcables.co.uk/cgi-bin/tvcab ... -cat5.html
Mijn pollen lijkt zonder problemen te lopen elke 1,30 minuut alleen mijn thermostaat is te simpel dus die is eerst aan de beurt
Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
Re: Opentherm gateway and script integration into Homeseer
Ik gebruik aan de pc: http://www.allekabels.nl/na/0/1081080/u ... apter.html
De 2 RS232-Rj45: http://www.allekabels.nl/rs232-kabels/4 ... ekker.html
Ik denk zelf dat 't wel 13 meter cat5 kabels is. Het zou tot 15 meter zeker moeten werken met goed afgeschermde kabel. Mijn cat5 is niet afgeschermd.
In mijn eerste opstelling lag de OTGW naast de pc rechtreeks op de usb-rs232 converter. Nu ik dit schrijf merk ik dat ik in mn vorige post een fout gemaakt heb.
Ik gebruik dus usb-rs232 en twee losse adapters van rs232 naar rj45.. ik zal mn post hierop aanpassen.
De 2 RS232-Rj45: http://www.allekabels.nl/rs232-kabels/4 ... ekker.html
Ik denk zelf dat 't wel 13 meter cat5 kabels is. Het zou tot 15 meter zeker moeten werken met goed afgeschermde kabel. Mijn cat5 is niet afgeschermd.
In mijn eerste opstelling lag de OTGW naast de pc rechtreeks op de usb-rs232 converter. Nu ik dit schrijf merk ik dat ik in mn vorige post een fout gemaakt heb.
Ik gebruik dus usb-rs232 en twee losse adapters van rs232 naar rj45.. ik zal mn post hierop aanpassen.
My home automation blog: https://rutg3r.com