Re: OpenNetHomeServer
Posted: Thu Jul 28, 2016 4:04 pm
Same here...cannot understand why ONH goes banana like that
This means you are also sending with the plugin actions? So far I have only looked at the receiving end of the plugin, I don't know if we have a similar problem here. We I am suspicious is because we are making a separate connection for each send command and this is what I understand *consuming* one port in ONHI send every event (oven on/off, amp on/off) both through the RFXtrx and the Tellstick
Code: Select all
#Turn off heater with Tellstick
eval("eg.plugins.NetHomeServer.SendCommand(u'Ovn "+str(Rom)+"', u'', u'off', 8020)")
eg.plugins.EventGhost.Wait(0.5)
#Find out from the zone number if it's upstairs or downstairs and turn off with the RFXtrx.
if 1 <= int(Rom)<=11:
eval(("eg.plugins.RFXtrx.send_AC(u'4', u'AC', u'008d303a', u'")+str(Rom)+("', u'off', u'0', None)"))
if 12 <= int(Rom)<=18:
eval(("eg.plugins.RFXtrx.send_AC(u'4', u'AC', u'008d303b', u'")+str(int(Rom)-11)+("', u'off', u'0', None)"))Code: Select all
07:52:52 Tellstick.FineOffset|1037 'Temp|21.6'
07:52:57 RFXtrx.Type: Viking 02811 id: 60672 ' temperature: +21.7 deg C signal: 5 battery: 9'
07:52:57 WC.: Temperatur: 21.7, termostattemperatur: Av, tidspunkt: Kl. 07:52, den 29.07.
07:52:57
07:52:59 RFXtrx.Type: Viking 02811 id: 6144 ' temperature: +7.5 deg C signal: 5 battery: 9'
07:53:00 Kj├©lerom.: Temperatur: 7.5, termostattemperatur: Av, tidspunkt: Kl. 07:52, den 29.07.
07:53:00
07:53:00 OpenNetHome.Connection with NetHomeServer lost
07:53:06 Thread is terminating: loggerThread
07:53:06 Exception in thread Thread-8619:
07:53:06 Traceback (most recent call last):
07:53:06 File "threading.pyc", line 532, in __bootstrap_inner
07:53:06 File "threading.pyc", line 484, in run
07:53:06 File "C:\Program Files (x86)\EventGhost\plugins\NetHomeServer\__init__.py", line 1393, in main
07:53:06 self.skt.sendall("quit\r\n")
07:53:06 File "<string>", line 1, in sendall
07:53:06 error: [Errno 10054] En eksisterende tilkobling ble tvangslukket av den eksterne verten
07:53:06
07:53:06 Keep Alive thread ended
07:53:10 Cleaning up monitoring tasks...
07:53:10 Plugin successfully stopped
07:53:14 Plugin started
07:53:14 connecting to host
07:53:14 Keep Alive thread startedCode: Select all
08:03:45 Tellstick.FineOffset|1253 'Temp|22.0'
08:03:46 RFXtrx.Type: Viking 02811 id: 62976 ' temperature: -17.5 deg C signal: 4 battery: 9'
08:03:46 Fryser.: Temperatur: -17.5, termostattemperatur: Av, tidspunkt: Kl. 08:03, den 29.07.
08:03:46
08:03:47 RFXtrx.Type: Viking 02811 id: 43776 ' temperature: +21.1 deg C signal: 5 battery: 9'
08:03:47 Midtsoverom.: Temperatur: 21.1, termostattemperatur: Av, tidspunkt: Kl. 08:03, den 29.07.
08:03:47
08:03:52 RFXtrx.Type: Viking 02811 id: 6400 ' temperature: +20.8 deg C signal: 5 battery: 9'
08:03:52 Hj├©rnesoverom.: Temperatur: 20.8, termostattemperatur: Av, tidspunkt: Kl. 08:03, den 29.07.
08:03:52
08:03:52 Tellstick.NexaL.Address|9252922|NexaL.Button|6|NexaL.Command|0|
08:03:52 RFXtrx.Type: AC address: 008d303a unit: 06 command: off ' level: 0 signal: 6'
08:03:53 RFXtrx.Type: Viking 02811 id: 2048 ' temperature: +21.1 deg C signal: 5 battery: 9'
08:03:53 Innerstue.: Temperatur: 21.1, termostattemperatur: Av, tidspunkt: Kl. 08:03, den 29.07.
08:03:53
08:03:59 OpenNetHome.'Lost contact with sensor: FineOffset|1185'
08:03:59 RFXtrx.Type: Viking 02811 id: 60160 ' temperature: +15.2 deg C signal: 4 battery: 9'
08:03:59 Ute.: Temperatur: 15.2, termostattemperatur: Av, tidspunkt: Kl. 08:03, den 29.07.
08:03:59
08:04:04 OpenNetHome.Connection with NetHomeServer lost
08:04:04 RFXtrx.Type: Viking 02811 id: 3328 ' temperature: +21.6 deg C signal: 5 battery: 9'
08:04:04 Soveromsgang.: Temperatur: 21.6, termostattemperatur: Av, tidspunkt: Kl. 08:04, den 29.07.
08:04:04
08:04:04 Tellstick.FineOffset|1037 'Temp|21.6'
08:04:09 RFXtrx.Type: Viking 02811 id: 60672 ' temperature: +21.6 deg C signal: 5 battery: 9'
08:04:09 WC.: Temperatur: 21.6, termostattemperatur: Av, tidspunkt: Kl. 08:04, den 29.07.
08:04:09
08:04:11 RFXtrx.Type: Viking 02811 id: 6144 ' temperature: +7.2 deg C signal: 5 battery: 9'
08:04:12 Kj├©lerom.: Temperatur: 7.2, termostattemperatur: Av, tidspunkt: Kl. 08:04, den 29.07.
08:04:12
08:04:12 RFXtrx.Type: Viking 02811 id: 28416 ' temperature: +20.2 deg C signal: 5 battery: 9'
08:04:12 Kjellerkontor.: Temperatur: 20.2, termostattemperatur: Av, tidspunkt: Kl. 08:04, den 29.07.That is not a solution, it shows that there is a problem inside of ONH that needs to be solved. ONH should release and reuse ports itself. I have a feeling that it is possible to cause this problem by disconnecting/connecting a network cable to the ONH (if it runs in a separate machine). I will try to crash it this way and if successful -> report to Stefan (I guess he needs a method to reproduce the error). Another idea is to write a Python script that just does connects/disconnects and then see how long ONH survives. From my perspective, a solid written software should survive forever...I wonder if setting a lower port would help
When ONH has reached this stage, there will be more frequent reconnect attempts because they will all fail. It feels like the ONH at this stage gets saturated on available ports and there is no chance to get any connection without restarting ONH it seems"tcp stream is blocked"
This could be because I think in your version there is a hard-coded 60 sec time out for this. I have now changed that so it is using the socket time out value as wellThere are false warning messages coming in here
Actually, this is what I have added in this version. But I kept the socket error monitoring as well. Maybe I shall remove that part?For my part at least an error message that doesn't look at the sockets, but at how long it's been since the last logging would be much to prefer. Is that a big problem to implement?