Opentherm gateway and script integration into Homeseer
Re: Opentherm gateway and script integration into Homeseer
I just learned how to make a virtual device by hand using this link and think someone could be able to edit the created device in such way that it works (have not tried this for the OTG)
http://board.homeseer.com/showthread.php?t=157454
http://board.homeseer.com/showthread.php?t=157454
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 think I can solve the issue with the missing dropdown menu with degrees.
Search in the script for "'hs.DeviceValuesAdd(strHC & CStr(C1), _" and change "C1" into "7". The result is "'hs.DeviceValuesAdd(strHC & CStr(7), _".
After you delete the first OpenTherm gateway devices and rerun the command BLB_OT_monitor_02.vb("Main","PR=all"), the device is working properly.
Search in the script for "'hs.DeviceValuesAdd(strHC & CStr(C1), _" and change "C1" into "7". The result is "'hs.DeviceValuesAdd(strHC & CStr(7), _".
After you delete the first OpenTherm gateway devices and rerun the command BLB_OT_monitor_02.vb("Main","PR=all"), the device is working properly.
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Rutger wrote:I don't have this dropdown list eighter, so I created a second script who creates one extra virtual device with extra control buttons and this dropdown list.
An advantage at the moment for me is that the buttons can be used in Hstouch also. With 'Set' you activate the definitly temperature. Probably also possible via an other way.....
The script copy the value at the moment to the temporary 'Kamerthermostaat' device. If this script works fine, one of the devices could be deleted.
Rutger heb je wellicht het xml bestand en de picture tbv hstouch?
Re: Opentherm gateway and script integration into Homeseer
Tuurlijk mag je die hebben (zip even uitpakken). De afbeelding van de thermostaat staat standaard al in Hstouch, maar die heb je niet nodig. Als je het xml bestand in een van je skin mappen zet bijv. onder thermostaten, dan hoef je 'm alleen te slepen naar je project scherm.
- Attachments
-
- OT Thermostat.zip
- (3.92 KiB) Downloaded 570 times
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Kan iemand uitleggen hoe ik de TELNET connectie werkend kan krijgen. De telnet server vraagt steeds om login en password en ''t schijnt niet mogelijk te zijn om een telnet sessie op te zetten zonder deze inloggegevens. Het is dus niet zo dat mijn usb naar rs232 om login gegevens vraagt, het is puur softwarematig in de telnetserver.
ik heb met "tlntadmn config sec" zowel ntlm als passwd uit willen zetten, maar hij pak alleen 1 van de 2.
telnet server op wwn win98 bak vraagt ook een login en passwd, dus ik snap niet hoe jullie dit 1-2-3 voor elkaar krijgen.
Als ik handmatig de telnet sessie start in command prompt mbv login en passwd kom ik zonder problemen op de telnetserver.
ik heb met "tlntadmn config sec" zowel ntlm als passwd uit willen zetten, maar hij pak alleen 1 van de 2.
telnet server op wwn win98 bak vraagt ook een login en passwd, dus ik snap niet hoe jullie dit 1-2-3 voor elkaar krijgen.
Als ik handmatig de telnet sessie start in command prompt mbv login en passwd kom ik zonder problemen op de telnetserver.
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Via Telnet krijg ik de volgende log error:
12-3-2013 10:53:57 ~!~debugOTGW~!~Debug Level: 3
12-3-2013 10:53:57 ~!~debugOTGW1~!~Parameters used: PR=all
12-3-2013 10:53:57 ~!~debugOTGW2~!~SendMessage;Message: PS=1
12-3-2013 10:53:57 ~!~debugOTGW3~!~SendMessageTelnet;Message: PS=1
12-3-2013 10:53:57 ~!~debugOTGW2~!~OTCommand: PR OTValue: all
12-3-2013 10:53:57 ~!~debugOTGW2~!~Send Openthermcommand: PR=all
12-3-2013 10:53:57 ~!~debugOTGW2~!~SendMessage;Message: PR=T
12-3-2013 10:53:57 ~!~debugOTGW3~!~SendMessageTelnet;Message: PR=T
12-3-2013 10:53:57 ~!~debugOTGW1~!~Reply: ??????'???? ??
12-3-2013 10:53:57 ~!~OTmonitor error~!~communication: De conversie van tekenreeks ??????'???? ?? naar type Double is ongeldig.
12-3-2013 10:53:57 ~!~debugOTGW2~!~SendMessage;Message: PS=0
12-3-2013 10:53:57 ~!~debugOTGW3~!~SendMessageTelnet;Message: PS=0
Devices worden wel aangemaakt al hebben de eerste gateway devices geen typenummer, maar "??????'???? ??" waar nogmaal Opentherm Gatway+firmware versie staat.
Config bestand:
Version=0.2
Telnet=TRUE
SerialControlInScript=True
SerialPort=4
SerialPortConfig=9600,N,8,1
TCPAddress=192.168.*.*
TCPPort=1013
HouseCode=H
DevLocation=CV
DevLocationswitched=False
Debug=3
PC maakt gebruik van eigen compoort (4) en niet via een remote systeem, aangesloten via usb naar rs232 converter. Via compoort instelling werkt ''t wel allemaal.
12-3-2013 10:53:57 ~!~debugOTGW~!~Debug Level: 3
12-3-2013 10:53:57 ~!~debugOTGW1~!~Parameters used: PR=all
12-3-2013 10:53:57 ~!~debugOTGW2~!~SendMessage;Message: PS=1
12-3-2013 10:53:57 ~!~debugOTGW3~!~SendMessageTelnet;Message: PS=1
12-3-2013 10:53:57 ~!~debugOTGW2~!~OTCommand: PR OTValue: all
12-3-2013 10:53:57 ~!~debugOTGW2~!~Send Openthermcommand: PR=all
12-3-2013 10:53:57 ~!~debugOTGW2~!~SendMessage;Message: PR=T
12-3-2013 10:53:57 ~!~debugOTGW3~!~SendMessageTelnet;Message: PR=T
12-3-2013 10:53:57 ~!~debugOTGW1~!~Reply: ??????'???? ??
12-3-2013 10:53:57 ~!~OTmonitor error~!~communication: De conversie van tekenreeks ??????'???? ?? naar type Double is ongeldig.
12-3-2013 10:53:57 ~!~debugOTGW2~!~SendMessage;Message: PS=0
12-3-2013 10:53:57 ~!~debugOTGW3~!~SendMessageTelnet;Message: PS=0
Devices worden wel aangemaakt al hebben de eerste gateway devices geen typenummer, maar "??????'???? ??" waar nogmaal Opentherm Gatway+firmware versie staat.
Config bestand:
Version=0.2
Telnet=TRUE
SerialControlInScript=True
SerialPort=4
SerialPortConfig=9600,N,8,1
TCPAddress=192.168.*.*
TCPPort=1013
HouseCode=H
DevLocation=CV
DevLocationswitched=False
Debug=3
PC maakt gebruik van eigen compoort (4) en niet via een remote systeem, aangesloten via usb naar rs232 converter. Via compoort instelling werkt ''t wel allemaal.
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Ik heb een ip-rs232 converter/server geinstalleerd en dit werkt prima via telnet. Nu eens kijken of dit stabieler is dan via compoort mbv de usb/rs232 converter.
My home automation blog: https://rutg3r.com
Re: Opentherm gateway and script integration into Homeseer
Ik ben ondertussen bezig om mijn homeseer verder uit te breiden en ik gebruik nu al een tijdje het OTG HS script en dit werkt best redelijk (wat het moet doen werkt)
Nu ben ik bezig om grafieken te maken in cacti en daarvoor gebruik ik een MySQL database door HS alle changes naar de database te laten sturen. Ik heb echter problemen met DeviceString en DeviceValue
Dit is bijvoorbeeld een device van mijn OTG
Is het niet zo dat de value en de string gelijk moeten zijn ? Ik meet nu namelijk 20 in mijn grafiek terwijl 19,50 de echter setting is, kunnen we het script aanpassen zodat beide gelijk zijn of zijn er dan andere problemen ?
Nu ben ik bezig om grafieken te maken in cacti en daarvoor gebruik ik een MySQL database door HS alle changes naar de database te laten sturen. Ik heb echter problemen met DeviceString en DeviceValue
Dit is bijvoorbeeld een device van mijn OTG
Code: Select all
Reference ID 2457
Status 17 = Unknown
Value 20
String 19,50 °C
Supports Status False
Dimmable False
Misc Settings Status Only
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 breek even in hierop.
De string en de value zijn twee afzonderlijke gegevens die niet gelijk aan elkaar hoeven te zijn.
De value van een device kan alleen hele getallen bevatten dus 19,50 past niet dat wordt 19 of afgerond 20. Wil je 19,50 opslaan in de value van het device dan moet je de waarde maal 100 doen (1950) en dat opslaan in value. Andersom werkt dat ook zo maar dan moet je value natuurlijk delen door 100
De string en de value zijn twee afzonderlijke gegevens die niet gelijk aan elkaar hoeven te zijn.
De value van een device kan alleen hele getallen bevatten dus 19,50 past niet dat wordt 19 of afgerond 20. Wil je 19,50 opslaan in de value van het device dan moet je de waarde maal 100 doen (1950) en dat opslaan in value. Andersom werkt dat ook zo maar dan moet je value natuurlijk delen door 100
Bram
-
- Member
- Posts: 88
- Joined: Wed Oct 27, 2010 8:36 pm
Re: Opentherm gateway and script integration into Homeseer
Gisteren heb ik zelf de gateway in elkaar gezet, en ben deze ochtend begonnen met testen. De nieuwe devices zijn door het script aangemaakt en waarden worden netjes geregistreerd.
Vreemd genoeg ontbreken alleen de de eerste devices < 10 om de remeha aan te sturen... Iemand enig idee waarom deze niet automatisch zijn aangemaakt? Voor zover ik in het script zie zou
dit gewoon moeten gebeuren...
Vreemd genoeg ontbreken alleen de de eerste devices < 10 om de remeha aan te sturen... Iemand enig idee waarom deze niet automatisch zijn aangemaakt? Voor zover ik in het script zie zou
dit gewoon moeten gebeuren...
___________________________________________________________________
iEase Home Control
iEase Home Control
Re: Opentherm gateway and script integration into Homeseer
I tri to run the script for the first time.
Interface is 192.168.178.55 poort 1001 (works with ot monitor)
What must be in the script?
LOG
communication: Object reference not set to an instance of an object.
17-10-2013 20:33:20 Warning Attempt to send to COM port 8, port is not open
17-10-2013 20:33:20 debugOTGW3 SendMessageSerial;Message: = SerialPort: 8
17-10-2013 20:33:20 debugOTGW2 SendMessage;Message: =
17-10-2013 20:33:20 debugOTGW2 Send Openthermcommand: =
17-10-2013 20:33:20 debugOTGW2 OTCommand: OTValue:
17-10-2013 20:33:20 debugOTGW SendMessage;Error opening COM8 ,error: Error: Unable to obtain a handle to the COM port
17-10-2013 20:33:20 Error In OpenComPort, error opening port: Unable to obtain a handle to the COM port
17-10-2013 20:33:20 debugOTGW1 Parameters used:
17-10-2013 20:33:20 debugOTGW Debug Level: 3
17-10-2013 20:33:20 Event Running script in background: BLB_OT_monitor_02.vb
script
[Startup]
Version=0.2
Telnet=False
SerialControlInScript=False
SerialPort=8
SerialPortConfig=9600,N,8,1
TCPAddress=192.168.178.55
TCPPort=1001
HouseCode=W
DevLocation=CV
DevLocationswitched=False
Debug=3
[Gateway]
FirstDC=1
Celcia20=False
LEDS=RHOM
ReferenceVoltage=1.25
DevLocation2=Zolder
[Devices]
TemporaryTemperature=W7
OutsideTemperature=?22
[OTPSCodes]
FirstDC=10
dev_type_string=Remeha Calenta
DevLocation2=Huis
[OTDatabase]
Path=C:\Program Files\HomeSeer HSPRO\data\OT\OT.mdb
Whats wrong?
Interface is 192.168.178.55 poort 1001 (works with ot monitor)
What must be in the script?
LOG
communication: Object reference not set to an instance of an object.
17-10-2013 20:33:20 Warning Attempt to send to COM port 8, port is not open
17-10-2013 20:33:20 debugOTGW3 SendMessageSerial;Message: = SerialPort: 8
17-10-2013 20:33:20 debugOTGW2 SendMessage;Message: =
17-10-2013 20:33:20 debugOTGW2 Send Openthermcommand: =
17-10-2013 20:33:20 debugOTGW2 OTCommand: OTValue:
17-10-2013 20:33:20 debugOTGW SendMessage;Error opening COM8 ,error: Error: Unable to obtain a handle to the COM port
17-10-2013 20:33:20 Error In OpenComPort, error opening port: Unable to obtain a handle to the COM port
17-10-2013 20:33:20 debugOTGW1 Parameters used:
17-10-2013 20:33:20 debugOTGW Debug Level: 3
17-10-2013 20:33:20 Event Running script in background: BLB_OT_monitor_02.vb
script
[Startup]
Version=0.2
Telnet=False
SerialControlInScript=False
SerialPort=8
SerialPortConfig=9600,N,8,1
TCPAddress=192.168.178.55
TCPPort=1001
HouseCode=W
DevLocation=CV
DevLocationswitched=False
Debug=3
[Gateway]
FirstDC=1
Celcia20=False
LEDS=RHOM
ReferenceVoltage=1.25
DevLocation2=Zolder
[Devices]
TemporaryTemperature=W7
OutsideTemperature=?22
[OTPSCodes]
FirstDC=10
dev_type_string=Remeha Calenta
DevLocation2=Huis
[OTDatabase]
Path=C:\Program Files\HomeSeer HSPRO\data\OT\OT.mdb
Whats wrong?
Re: Opentherm gateway and script integration into Homeseer
I think you need
Telnet=True
Telnet=True
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
Sinds kort werkt mijn OTG gateway script niet goed meer. Ik heb niks aangepast maar na ongeveer 24 uur stop het script met het uitlezen van de gateway. Ik krijg de volgende foutmelding
2-11-2013 11:56:32 Warning Timeout waiting for COM Port write to finish
2-11-2013 11:56:32 OTmonitor error communication: Value cannot be null.Parameter name: Argument Number is Nothing.
Herstart ik de machine dan is het probleem opgelost, mogelijk is toch de Prolific USB naar RS232 adapter gaar of de driver maar die heb ik bewust niet geupdate (daar let ik heel erg op) Nu ter test toch de driver geupdate en kijken of het probleem is opgelost
2-11-2013 11:56:32 Warning Timeout waiting for COM Port write to finish
2-11-2013 11:56:32 OTmonitor error communication: Value cannot be null.Parameter name: Argument Number is Nothing.
Herstart ik de machine dan is het probleem opgelost, mogelijk is toch de Prolific USB naar RS232 adapter gaar of de driver maar die heb ik bewust niet geupdate (daar let ik heel erg op) Nu ter test toch de driver geupdate en kijken of het probleem is opgelost

Running HS3PRO on PC with Z-Wave / OpenTherm / Plugwise / RFXcom / MQTT / XAP400 / Logitech Media Server and Squeezelite on PI`s
OTGW script for Homeseer: New version (02l)
Hi all,
I have uploaded a new version of the script see opening post, mainly to work with the Alpha/Beta Firmware for the Opentherm Gateway. Please use this new version 02l ONLY with Alpha/Beta Firmware 4.0a10 or higher and NOT with the standard Firmware (3.4).
I have uploaded a new version of the script see opening post, mainly to work with the Alpha/Beta Firmware for the Opentherm Gateway. Please use this new version 02l ONLY with Alpha/Beta Firmware 4.0a10 or higher and NOT with the standard Firmware (3.4).
Bernard
Re: Opentherm gateway and script integration into Homeseer
Are you thinking about a Homeseer 3 version?