Closed Eddie-BS closed 3 years ago
Didn’t need any maintenance until now ;-) Two questions for you:
Hi, glad to see some response ... Your account on domoticz.com seems unused ... (some people were asking for help over there as the PWS plugin from xorfor is not maintained anymore)
My PWS is a RENKFORCE WH2600 running newer software ... it is identified as WH2602 running ambient 4.5.7 working fine for a couple of years now ...
2021-06-01 19:13:36.007 WuDirect: (WuDirect) Pushing 'onHeartbeatCallback' on to queue
2021-06-01 19:13:36.057 (WuDirect) Processing 'onHeartbeatCallback' message
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Calling message handler 'onHeartbeat'.
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Pushing 'ProtocolDirective' on to queue
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Pushing 'ConnectDirective' on to queue
2021-06-01 19:13:36.057 (WuDirect) Processing 'ProtocolDirective' message
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Protocol set to: 'HTTP'.
2021-06-01 19:13:36.057 (WuDirect) Processing 'ConnectDirective' message
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Transport set to: 'TCP/IP', 127.0.0.1:8008.
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Connect directive received, action initiated successfully.
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Pushing 'onConnectCallback' on to queue
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Pushing 'ProtocolDirective' on to queue
2021-06-01 19:13:36.057 WuDirect: (WuDirect) Pushing 'onConnectCallback' on to queue
2021-06-01 19:13:36.107 (WuDirect) Processing 'onConnectCallback' message
2021-06-01 19:13:36.107 WuDirect: (WuDirect) Calling message handler 'onConnect'.
2021-06-01 19:13:36.107 WuDirect: (WuDirect) Connected successfully to: 127.0.0.1:8008
2021-06-01 19:13:36.107 WuDirect: (WuDirect) onConnect called
2021-06-01 19:13:36.107 (WuDirect) Processing 'ProtocolDirective' message
2021-06-01 19:13:36.107 WuDirect: (WuDirect) Protocol set to: 'HTTP'.
2021-06-01 19:13:36.107 (WuDirect) Processing 'onConnectCallback' message
2021-06-01 19:13:36.108 WuDirect: (WuDirect) Calling message handler 'onConnect'.
2021-06-01 19:13:36.108 WuDirect: (WuDirect) Connected successfully to: 127.0.0.1:51742
2021-06-01 19:13:36.108 WuDirect: (WuDirect) onConnect called
2021-06-01 19:13:46.027 WuDirect: (WuDirect) Pushing 'onHeartbeatCallback' on to queue
2021-06-01 19:13:46.077 (WuDirect) Processing 'onHeartbeatCallback' message
2021-06-01 19:13:46.078 WuDirect: (WuDirect) Calling message handler 'onHeartbeat'.
2021-06-01 19:13:56.049 WuDirect: (WuDirect) Pushing 'onHeartbeatCallback' on to queue
2021-06-01 19:13:56.099 (WuDirect) Processing 'onHeartbeatCallback' message
2021-06-01 19:13:56.099 WuDirect: (WuDirect) Calling message handler 'onHeartbeat'.
2021-06-01 19:14:06.022 WuDirect: (WuDirect) Pushing 'onHeartbeatCallback' on to queue
2021-06-01 19:14:06.072 (WuDirect) Processing 'onHeartbeatCallback' message
2021-06-01 19:14:06.072 WuDirect: (WuDirect) Calling message handler 'onHeartbeat'.
2021-06-01 19:14:14.837 WuDirect: (WuDirect) Pushing 'ProtocolDirective' on to queue
2021-06-01 19:14:14.837 WuDirect: (WuDirect) Pushing 'onConnectCallback' on to queue
2021-06-01 19:14:14.837 WuDirect: (WuDirect) Pushing 'ReadEvent' on to queue
2021-06-01 19:14:14.845 (WuDirect) Processing 'ProtocolDirective' message
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Protocol set to: 'HTTP'.
2021-06-01 19:14:14.845 (WuDirect) Processing 'onConnectCallback' message
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Calling message handler 'onConnect'.
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Connected successfully to: 172.17.0.1:48438
2021-06-01 19:14:14.845 WuDirect: (WuDirect) onConnect called
2021-06-01 19:14:14.845 (WuDirect) Processing 'ReadEvent' message
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Received 481 bytes of data
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 47 45 54 20 2f 77 65 61 74 68 65 72 73 74 61 74 69 6f 6e 2f GET./weatherstation/
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 75 70 64 61 74 65 77 65 61 74 68 65 72 73 74 61 74 69 6f 6e updateweatherstation
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 2e 70 68 70 3f 49 44 3d 69 62 75 73 73 75 6d 31 38 26 50 41 .php?ID=xxxxxxxx&PA
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 53 53 57 4f 52 44 3d 6c 62 68 36 38 66 32 74 26 74 65 6d 70 SSWORD=xxxxxxxx&temp
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 66 3d 38 31 2e 33 26 68 75 6d 69 64 69 74 79 3d 32 39 26 64 f=81.3&humidity=29&d
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 65 77 70 74 66 3d 34 36 2e 30 26 77 69 6e 64 63 68 69 6c 6c ewptf=46.0&windchill
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 66 3d 38 31 2e 33 26 77 69 6e 64 64 69 72 3d 33 30 30 26 77 f=81.3&winddir=300&w
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 69 6e 64 73 70 65 65 64 6d 70 68 3d 33 2e 31 33 26 77 69 6e indspeedmph=3.13&win
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 64 67 75 73 74 6d 70 68 3d 34 2e 39 32 26 72 61 69 6e 69 6e dgustmph=4.92&rainin
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 3d 30 2e 30 30 26 64 61 69 6c 79 72 61 69 6e 69 6e 3d 30 2e =0.00&dailyrainin=0.
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 30 30 26 77 65 65 6b 6c 79 72 61 69 6e 69 6e 3d 30 2e 30 30 00&weeklyrainin=0.00
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 26 6d 6f 6e 74 68 6c 79 72 61 69 6e 69 6e 3d 30 2e 30 30 26 &monthlyrainin=0.00&
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 79 65 61 72 6c 79 72 61 69 6e 69 6e 3d 31 33 2e 38 30 26 73 yearlyrainin=13.80&s
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 6f 6c 61 72 72 61 64 69 61 74 69 6f 6e 3d 34 31 38 2e 33 37 olarradiation=418.37
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 26 55 56 3d 31 26 69 6e 64 6f 6f 72 74 65 6d 70 66 3d 37 31 &UV=1&indoortempf=71
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 2e 36 26 69 6e 64 6f 6f 72 68 75 6d 69 64 69 74 79 3d 35 36 .6&indoorhumidity=56
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 26 62 61 72 6f 6d 69 6e 3d 32 39 2e 38 39 26 6c 6f 77 62 61 &baromin=29.89&lowba
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 74 74 3d 30 26 64 61 74 65 75 74 63 3d 6e 6f 77 26 73 6f 66 tt=0&dateutc=now&sof
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 74 77 61 72 65 74 79 70 65 3d 57 48 32 36 30 32 25 32 30 56 twaretype=WH2602%20V
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 34 2e 35 2e 37 26 61 63 74 69 6f 6e 3d 75 70 64 61 74 65 72 4.5.7&action=updater
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 61 77 26 72 65 61 6c 74 69 6d 65 3d 31 26 72 74 66 72 65 71 aw&realtime=1&rtfreq
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 3d 35 20 48 54 54 50 2f 31 2e 30 0d 0a 48 6f 73 74 3a 20 31 =5.HTTP/1.0..Host:.1
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 39 32 2e 31 36 38 2e 32 36 2e 32 35 32 3a 38 30 30 38 0d 0a 92.168.26.252:8008..
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 43 6f 6e 6e 65 63 74 69 6f 6e 3a 20 63 6c 6f 73 65 0d 0a 0d Connection:.close...
2021-06-01 19:14:14.845 WuDirect: (WuDirect) 0a .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .. .
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Pushing 'onMessageCallback' on to queue
2021-06-01 19:14:14.845 (WuDirect) Processing 'onMessageCallback' message
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Calling message handler 'onMessage'.
2021-06-01 19:14:14.845 WuDirect: (WuDirect) onMessage called for connection: 172.17.0.1:48438
2021-06-01 19:14:14.845 WuDirect: (WuDirect) URL CALLED: /weatherstation/updateweatherstation.php?ID=xxxxxxxxxxx&PASSWORD=xxxxxxxxx&tempf=81.3&humidity=29&dewptf=46.0&windchillf=81.3&winddir=300&windspeedmph=3.13&windgustmph=4.92&rainin=0.00&dailyrainin=0.00&weeklyrainin=0.00&monthlyrainin=0.00&yearlyrainin=13.80&solarradiation=418.37&UV=1&indoortempf=71.6&indoorhumidity=56&baromin=29.89&lowbatt=0&dateutc=now&softwaretype=WH2602%20V4.5.7&action=updateraw&realtime=1&rtfreq=5
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Sensor NOT handled in code: ID
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Sensor NOT found: PASSWORD
2021-06-01 19:14:14.845 WuDirect: (WuDirect) Updating sensor: 7 (Scale 0.556, offset -17.778
2021-06-01 19:14:14.845 (WuDirect - Temperature Outdoor) Updating device from 0:'27.5' to have values 0:'27.4'.
2021-06-01 19:14:14.864 WuDirect: (WuDirect) Updating sensor: 1 (Scale 1.000, offset 0.000
2021-06-01 19:14:14.864 WuDirect: (WuDirect) Updating sensor: 5 (Scale 0.556, offset -17.778
2021-06-01 19:14:14.864 (WuDirect - Dewpoint) Updating device from 0:'7.9' to have values 0:'7.8'.
2021-06-01 19:14:14.866 WuDirect: (WuDirect) Updating sensor: 9 (Scale 0.556, offset -17.778
2021-06-01 19:14:14.866 (WuDirect - Wind Chill) Updating device from 0:'27.5' to have values 0:'27.4'.
2021-06-01 19:14:14.867 WuDirect: (WuDirect) Updating sensor: 16 (Scale 1.000, offset 0.000
2021-06-01 19:14:14.867 (WuDirect - Wind Direction) Updating device from 0:'286.0' to have values 0:'300.0'.
2021-06-01 19:14:14.869 WuDirect: (WuDirect) Updating sensor: 8 (Scale 1.609, offset 0.000
2021-06-01 19:14:14.869 (WuDirect - Wind Speed) Updating device from 0:'0.4' to have values 0:'5.0'.
2021-06-01 19:14:14.871 WuDirect: (WuDirect) Updating sensor: 18 (Scale 1.609, offset 0.000
2021-06-01 19:14:14.871 (WuDirect - Wind Gust) Updating device from 0:'4.0' to have values 0:'7.9'.
2021-06-01 19:14:14.872 WuDirect: (WuDirect) Updating sensor: 11 (Scale 25.400, offset 0.000
2021-06-01 19:14:14.872 WuDirect: (WuDirect) Updating sensor: 19 (Scale 25.400, offset 0.000
2021-06-01 19:14:14.872 WuDirect: (WuDirect) Sensor NOT found: weeklyrainin
2021-06-01 19:14:14.872 WuDirect: (WuDirect) Sensor NOT handled in code: monthlyrainin
2021-06-01 19:14:14.872 WuDirect: (WuDirect) Sensor NOT found: yearlyrainin
2021-06-01 19:14:14.872 WuDirect: (WuDirect) Updating sensor: 3 (Scale 1.000, offset 0.000
2021-06-01 19:14:14.872 (WuDirect - Solar) Updating device from 0:'419.3' to have values 0:'418.4'.
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Updating sensor: 14 (Scale 1.000, offset 0.000
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Updating sensor: 15 (Scale 0.556, offset -17.778
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Updating sensor: 10 (Scale 1.000, offset 0.000
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Updating sensor: 6 (Scale 33.860, offset 0.000
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Sensor NOT found: lowbatt
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Sensor NOT handled in code: dateutc
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Sensor NOT found: softwaretype
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Sensor NOT found: action
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Sensor NOT found: realtime
2021-06-01 19:14:14.874 WuDirect: (WuDirect) Sensor NOT handled in code: rtfreq
2021-06-01 19:14:14.874 (WuDirect - THB) Updating device from 0:'27.5;29.0;2;1012.1;3' to have values 0:'27.4;29.0;2;1012.1;3'.
2021-06-01 19:14:14.882 (WuDirect - WTC) Updating device from 0:'286.0;WNW;1.0;11.0;27.5;27.5' to have values 0:'300.0;WNW;14.0;22.0;27.4;27.4'.
2021-06-01 19:14:14.884 (WuDirect - UV) Updating device from 0:'1.0;27.5' to have values 0:'1.0;27.4'.
2021-06-01 19:14:14.885 WuDirect: (WuDirect) GET request received.
2021-06-01 19:14:14.885 WuDirect: (WuDirect) Pushing 'WriteDirective' on to queue
2021-06-01 19:14:14.885 WuDirect: (WuDirect) onMessage called
2021-06-01 19:14:14.885 (WuDirect) Processing 'WriteDirective' message
2021-06-01 19:14:14.885 WuDirect: (WuDirect) Sending 250 bytes of data
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d 0a 44 61 74 HTTP/1.1.200.OK..Dat
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 65 3a 20 54 75 65 2c 20 30 31 20 4a 75 6e 20 32 30 32 31 20 e:.Tue,.01.Jun.2021.
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 31 37 3a 31 34 3a 31 34 20 47 4d 54 0d 0a 53 65 72 76 65 72 17:14:14.GMT..Server
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 3a 20 44 6f 6d 6f 74 69 63 7a 2f 31 2e 30 0d 0a 43 6f 6e 6e :.Domoticz/1.0..Conn
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 65 63 74 69 6f 6e 3a 20 6b 65 65 70 2d 61 6c 69 76 65 0d 0a ection:.keep-alive..
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 41 63 63 65 70 74 3a 20 43 6f 6e 74 65 6e 74 2d 54 79 70 65 Accept:.Content-Type
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 3a 20 74 65 78 74 2f 68 74 6d 6c 3b 20 63 68 61 72 73 65 74 :.text/html;.charset
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 3d 55 54 46 2d 38 0d 0a 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 =UTF-8..Content-Leng
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 74 68 3a 20 38 30 0d 0a 0d 0a 3c 21 64 6f 63 74 79 70 65 20 th:.80....<!doctype.
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 68 74 6d 6c 3e 3c 68 74 6d 6c 3e 3c 68 65 61 64 3e 3c 2f 68 html><html><head></h
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 65 61 64 3e 3c 62 6f 64 79 3e 3c 68 31 3e 53 75 63 63 65 73 ead><body><h1>Succes
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 73 66 75 6c 20 47 45 54 21 21 21 3c 2f 68 31 3e 3c 2f 62 6f sful.GET!!!</h1></bo
2021-06-01 19:14:14.885 WuDirect: (WuDirect) 64 79 3e 3c 2f 68 74 6d 6c 3e .. .. .. .. .. .. .. .. .. .. dy></html>
2021-06-01 19:14:16.038 WuDirect: (WuDirect) Pushing 'onHeartbeatCallback' on to queue
2021-06-01 19:14:16.088 (WuDirect) Processing 'onHeartbeatCallback' message
2021-06-01 19:14:16.088 WuDirect: (WuDirect) Calling message handler 'onHeartbeat'.
2021-06-01 19:14:26.010 WuDirect: (WuDirect) Pushing 'onHeartbeatCallback' on to queue
Hi,
uploading screenshot here ... The THB sensor shows 46% in the header and draws a nice graph when I click on it ...
You say "working fine for a couple of years now" - do you mean that the Humidity values used to be updated, but now they stopped? What Domoticz version are you using? I'm still running the last Jadahl version (2020.1), but consider migrating to a more recent docker-based version to test it there.
Ah, my "prod" domoticz runs on RPI latest beta ... no problems on that. Runs for years and probes the PWS with other software .. my "test" domoticz runs on Synology DSM920+ in docker and latest beta too ... I left jabdahl about 2 years ago because of compatibility problems Started using docker a couple of months ago just to have a test system
Hmm, device seems to get updated ...
2021-06-02 08:02:06.247 (WuDirect - Humidity Outdoor) Updating device from 0:'74.0' to have values 0:'73.0'.
As the THB sensor displays the humidity, perhaps both humidity sensors are of the wrong type so they don't display any ?
It's possible that the Humidity type has changed in the latest Domoticz version. Before I can test that, I first need my new docker instance to detect any python plugins...
I run the official domoticz (latest) image in docker I exported the following path outside the image
in /volume1/docker/domoticz/userdata/plugins are the plugins ...
values ARE in the database...
I notice in the database that other Humidity sensors have there value in nValue ...
That must be the reason! It seems that svalue is used for a status string now.
Hmm, I can see where it is going wrong, It is updating all devicetypes the same way. I am not a python programmer, I tried to hack something in there but did not succeed. Hope you have your new env up and running soon
dirty hack ...
if ((unitnr == 1) or (unitnr == 10)):
UpdateDevice(unitnr,int(value),1)
else:
UpdateDevice(unitnr,0,svalue)
waiting for a "decent" solution ...
I fixed the problem with the Humidity sensors by making them Custom sensors. That was the reason it was working on my own instance where the humidity devices were actually of the Custom type. Making them of the Humidity type (and handling the nvalue/svalue thing) does not have any added value in the current state.
If you update the plugin, remove the2 humidity devices, disable WuDirect and finally re-enable WuDirect, it recreates the missing 2 devices as Custom sensors.
Ok, I will try that tomorrow ... Do you have your new docker up and running ?
Yes, I did a full migration this evening - thanks for your tips! It turned out that I put them in the wrong plugins folder... doh!
On 2 Jun 2021, at 22:23, vaneeten @.***> wrote:
Yes, I did a full migration this evening - thanks for your tips! It turned out that I put them in the wrong plugins folder... doh!
Nice, besides domoticz am I running “portainer” and “watchtower” in my docker env… makes life a lot easier …
are you still maintaining this plugin ? I tried it and it seems to work. The "humidity" sensors are not showing any values ...