OW-SERVER: 1-Wire to Ethernet Server - MSR Functionality
-
@a-lurker Next instalment (sorry!). I re-downloaded the files from Github following the link you kindly provided in your previous post. There were three files plus a number of other files in a separate folder. I copied all the files from the .zip file into a folder on my desktop and uploaded them to my vera plus and tried a number of luup reloads. Was that correct - i.e. should I have uploaded all files (including the ones in the folder) as separate files and not in the actual folder?
Anyhow, something happened because now I get the following (note I have 14 devices:
and in 'Add Devices'
So I did not see the previous result before. But you can see that my devices are not being found. I have looked in the luup logs and there are no errors I can see. I also cannot see the device number listed in the log. I don't know if that means that anything.
Thanks.
-
Not quite right. You only need the files in the folder called "Luup_device". When uploaded they should not be uploaded as a folder. Here is the list of files that need to be directly uploaded:
S_OWServer.xml D_OWPressureSensor.json D_OWPressureSensor.xml D_OWServer.json D_OWServer.xml I_OWServer.xml J_OWServer.js L_OWServer.lua S_OWPressureSensor.xml
Did you check for a json library using AltUI? Because you will need one of some description.
-
Taliskerreplied to a-lurker on Jan 22, 2022, 10:04 AM last edited by Talisker Jan 22, 2022, 5:06 AM
@a-lurker I meticulously installed all the files in the folder only as you stated. I trawled the luup log and found the following. It appears that the plugin does see my 14 one wire temperature devices, but for some reason will not let me set them up as devices:
Could this be a fundamental problem with my particular vera plus, because I have to install the device manually. It will not install via ALTUI?
-
Looks promising - hopefully you should see under the AltUI variables tab "DebugEnabled". You can set it to one and restart the Luup engine and get more log info. You should also see "PluginVersion", which should probably be 0.52? No mention on whether AltUI detected a json library?
"Could this be a fundamental problem with my particular vera plus, because I have to install the device manually. It will not install via ALTUI?" No don't think so.
-
Taliskerreplied to a-lurker on Jan 22, 2022, 1:10 PM last edited by Talisker Jan 22, 2022, 8:23 AM
@a-lurker Sorry, yes the AltUI did detect a json library (or at least I think so):
Yes, it looks like the PluginVersion os 0.52:
One Log:
50 01/22/22 13:06:03.101 luup_log:1028: OWServer debug: OWserver poll start: device: 1028 <0x7155a520>
50 01/22/22 13:06:03.399 luup_log:1028: OWServer debug: 14 --> Devices <0x7155a520>
50 01/22/22 13:06:03.400 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel1 <0x7155a520>
50 01/22/22 13:06:03.400 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel2 <0x7155a520>
50 01/22/22 13:06:03.400 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel3 <0x7155a520>
50 01/22/22 13:06:03.400 luup_log:1028: OWServer debug: New device found F0000801B4209010 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.401 luup_log:1028: OWServer debug: New device found A7000801B4562810 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.401 luup_log:1028: OWServer debug: New device found 88000801B4467410 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.401 luup_log:1028: OWServer debug: New device found 2E000801B423AC10 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.402 luup_log:1028: OWServer debug: New device found 03000801B43A3210 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.402 luup_log:1028: OWServer debug: New device found 84000801B4368A10 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.402 luup_log:1028: OWServer debug: New device found 2E000801B44B7910 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.402 luup_log:1028: OWServer debug: New device found C8000801B45C5510 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.402 luup_log:1028: OWServer debug: New device found 12000801B43A2F10 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.403 luup_log:1028: OWServer debug: New device found 33000801B442DF10 DS18S20 <0x7155a520>
50 01/22/22 13:06:03.403 luup_log:1028: OWServer debug: New device found B50000021D3DE028 DS18B20 <0x7155a520>
50 01/22/22 13:06:03.403 luup_log:1028: OWServer debug: New device found 3E0000021D47F028 DS18B20 <0x7155a520>
50 01/22/22 13:06:03.403 luup_log:1028: OWServer debug: New device found FB0000021D4C4628 DS18B20 <0x7155a520>
50 01/22/22 13:06:03.403 luup_log:1028: OWServer debug: New device found 080000021D6EAE28 DS18B20 <0x7155a520>
50 01/22/22 13:06:03.404 luup_log:1028: OWServer debug: Set timer 3 <0x7155a520>
50 01/22/22 13:06:03.404 luup_log:1028: OWServer debug: OWserver poll end: device: 1028 <0x7155a520>
06 01/22/22 13:06:04.100 Device_Variable::m_szValue_set device: 911 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: LastTrip was: 1642856762 now: 1642856764 #hooks: 0 upnp: 0 skip: 0 v:0x154d730/NONE duplicate:0 <0x7695a520>
06 01/22/22 13:06:04.101 Device_Variable::m_szValue_set device: 911 service: urn:micasaverde-com:serviceId:SecuritySensor1 variable: Tripped was: 1 now: 0 #hooks: 1 upnp: 0 skip: 0 v:0x154d600/NONE duplicate:0 <0x7695a520>
50 01/22/22 13:06:06.100 luup_log:1028: OWServer debug: OWserver poll start: device: 1028 <0x7155a520>
01 01/22/22 13:06:06.342 IOPort::Connect connect -1 192.168.68.111:60128 <0x6de60520>
50 01/22/22 13:06:06.399 luup_log:1028: OWServer debug: 14 --> Devices <0x7155a520>
50 01/22/22 13:06:06.399 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel1 <0x7155a520>
50 01/22/22 13:06:06.399 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel2 <0x7155a520>
50 01/22/22 13:06:06.399 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel3 <0x7155a520>
50 01/22/22 13:06:06.400 luup_log:1028: OWServer debug: Set timer 3 <0x7155a520>
50 01/22/22 13:06:06.400 luup_log:1028: OWServer debug: OWserver poll end: device: 1028 <0x7155a520>
50 01/22/22 13:06:09.100 luup_log:1028: OWServer debug: OWserver poll start: device: 1028 <0x7155a520>
50 01/22/22 13:06:09.398 luup_log:1028: OWServer debug: 14 --> Devices <0x7155a520>
50 01/22/22 13:06:09.398 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel1 <0x7155a520>
50 01/22/22 13:06:09.399 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel2 <0x7155a520>
50 01/22/22 13:06:09.399 luup_log:1028: OWServer debug: 0 --> DataErrorsChannel3 <0x7155a520>
50 01/22/22 13:06:09.399 luup_log:1028: OWServer debug: Set timer 3 <0x7155a520>
50 01/22/22 13:06:09.399 luup_log:1028: OWServer debug: OWserver poll end: device: 1028 <0x7155a520Any clues there?
-
All looks fine to me. It's now got a json library and it's reading from the one wire server and finding all the devices. It's also the correct plugin version number. Have you checked the "No room" for see if the child temperature sensors have turned up. If none - need to do a luup engine restart. It can take a while before actual temperatures are displayed ( I think it works out to 45 seconds). They then update at the default rate of every 20 seconds.
-
Taliskerreplied to a-lurker on Jan 24, 2022, 4:51 PM last edited by Talisker Jan 24, 2022, 11:57 AM
@a-lurker So I think we proved that I have the correct plugin version, the plugin is correctly set up as the one wire devices IDs are listed in the logs. What is not happening is the devices (14 No. in my case) are not showing up in add devices (similar in ALTUI):
I have tried multiple luup re-loads and vera restarts, but the devices just aren't showing. I feel I am so close, yet not quite at the finish line! Is there anything else I can do or try? Thanks.
-
OK I've figured out what's going wrong (till proved otherwise!). I need to rehash some code, test and post to GitHub - give it a day or so.
-
a-lurkerreplied to a-lurker on Jan 26, 2022, 3:51 AM last edited by a-lurker Jan 26, 2022, 6:00 AM
I have done the mods and retested. Hopefully they will work. When the plugin is updated it will show the "PluginVersion" as 0.53 rather than the current 0.52
The github page has been updated to improve upon the previous paltry documentation - have a read of it. You only need to upload two files to Vera, as all the others are unchanged:
J_OWServer.js
L_OWServer.luaMake sure both are uploaded via the Vera UI. Be careful to uncheck the "Restart Luup after upload" checkbox situated below the "Upload" button - so you don't go through two loads. ie uncheck for the first file you upload and then recheck before you upload the second.
There were a few changes needed - the plugin was originally written over ten years ago and things have moved on a little since then.
Note that there is no "Automatic" creation of the child devices. You select which sensors you want in the Vera UI and then hit the "Add" button. The system then restarts and the child devices will became available.
Let me know how it goes.
30/33